Skip to content

Commit 52ef1e3

Browse files
committed
Add 'version' field to generated Cargo.toml file
1 parent b23e482 commit 52ef1e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/tools/qltest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ QLTEST_LOG="$CODEQL_EXTRACTOR_RUST_LOG_DIR"/qltest.log
88

99
EXTRACTOR="$CODEQL_EXTRACTOR_RUST_ROOT/tools/$CODEQL_PLATFORM/extractor"
1010
for src in *.rs; do
11-
echo -e "[package]\nname = \"test\"\n[lib]\npath=\"$src\"\n" > Cargo.toml
11+
echo -e "[package]\nname = \"test\"\nversion=\"0.0.1\"\n[lib]\npath=\"$src\"\n" > Cargo.toml
1212
env=()
1313
opts=("$src")
1414
opts+=($(sed -n '1 s=//codeql-extractor-options:==p' $src))

0 commit comments

Comments
 (0)