Skip to content

Commit

Permalink
Add automatic creation of lib.rs in entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yiwiy9 committed Sep 23, 2023
1 parent b25f0c7 commit 4982cbb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .devcontainer/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ if [ ! -f "$settings_json" ]; then
cp "$example_json" "$settings_json"
fi

# Define the path for lib.rs and check its existence
lib_rs_path="$WORKSPACE_FOLDER/src/lib/src/lib.rs"
if [ ! -f "$lib_rs_path" ]; then
touch "$lib_rs_path"
fi

# Generate Rust code snippets
cargo_snippet.sh

Expand Down

0 comments on commit 4982cbb

Please sign in to comment.