From 52ef1e382a11f81b1190cb809dfea763aca2118f Mon Sep 17 00:00:00 2001 From: Arthur Baars Date: Mon, 2 Sep 2024 15:27:04 +0200 Subject: [PATCH] Add 'version' field to generated Cargo.toml file --- rust/tools/qltest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/tools/qltest.sh b/rust/tools/qltest.sh index d50b34573a8..2d52cbfdc90 100755 --- a/rust/tools/qltest.sh +++ b/rust/tools/qltest.sh @@ -8,7 +8,7 @@ QLTEST_LOG="$CODEQL_EXTRACTOR_RUST_LOG_DIR"/qltest.log EXTRACTOR="$CODEQL_EXTRACTOR_RUST_ROOT/tools/$CODEQL_PLATFORM/extractor" for src in *.rs; do - echo -e "[package]\nname = \"test\"\n[lib]\npath=\"$src\"\n" > Cargo.toml + echo -e "[package]\nname = \"test\"\nversion=\"0.0.1\"\n[lib]\npath=\"$src\"\n" > Cargo.toml env=() opts=("$src") opts+=($(sed -n '1 s=//codeql-extractor-options:==p' $src))