diff --git a/rust/codeql-extractor.yml b/rust/codeql-extractor.yml index 819793ec26cc..5f36ceaa8cd9 100644 --- a/rust/codeql-extractor.yml +++ b/rust/codeql-extractor.yml @@ -25,11 +25,10 @@ options: title: Controls compression for the TRAP files written by the extractor. description: > This option is only intended for use in debugging the extractor. Accepted - values are 'gzip' (to write gzip-compressed TRAP) 'zstd' (the default, - to write Zstandard-compressed TRAP) and 'none' (to write uncompressed - TRAP). + values are 'zstd' (the default, to write Zstandard-compressed TRAP) and + 'none' (to write uncompressed TRAP). type: string - pattern: "^(none|gzip|zstd)$" + pattern: "^(none|zstd)$" cargo_target_dir: title: Directory to use for cargo output files. description: > diff --git a/rust/extractor/src/config.rs b/rust/extractor/src/config.rs index aa1d2421de6c..473ef5a6a301 100644 --- a/rust/extractor/src/config.rs +++ b/rust/extractor/src/config.rs @@ -31,7 +31,6 @@ use crate::toolchain::select_toolchain; #[clap(rename_all = "lowercase")] pub enum Compression { None, - Gzip, #[default] Zstd, } @@ -40,7 +39,6 @@ impl From for trap::Compression { fn from(val: Compression) -> Self { match val { Compression::None => Self::None, - Compression::Gzip => Self::Gzip, Compression::Zstd => Self::Zstd, } } diff --git a/rust/ql/integration-tests/hello-project/test_project.py b/rust/ql/integration-tests/hello-project/test_project.py index 7f53e78f7d49..45e01a5d1852 100644 --- a/rust/ql/integration-tests/hello-project/test_project.py +++ b/rust/ql/integration-tests/hello-project/test_project.py @@ -20,7 +20,6 @@ def test_do_not_print_env(codeql, rust, rust_edition, cargo, check_env_not_dumpe @pytest.mark.ql_test("steps.ql", expected=".cargo.expected") @pytest.mark.parametrize(("rust_edition", "compression", "suffix"), [ pytest.param(2024, "none", [], id="none"), - pytest.param(2024, "gzip", [".gz"], id="gzip"), pytest.param(2024, "zstd", [".zst"], id="zstd"), ]) def test_compression(codeql, rust, rust_edition, compression, suffix, cargo, rust_check_diagnostics, cwd): diff --git a/rust/ql/lib/change-notes/2026-11-27-remove-gzip-trap-compression.md b/rust/ql/lib/change-notes/2026-11-27-remove-gzip-trap-compression.md new file mode 100644 index 000000000000..cf168ab29e25 --- /dev/null +++ b/rust/ql/lib/change-notes/2026-11-27-remove-gzip-trap-compression.md @@ -0,0 +1,4 @@ +--- +category: breaking +--- +* The Rust extractor no longer supports `gzip` as a value for the `trap.compression` option. Use `zstd` (the default) or `none` instead.