Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions rust/codeql-extractor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >
Expand Down
2 changes: 0 additions & 2 deletions rust/extractor/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ use crate::toolchain::select_toolchain;
#[clap(rename_all = "lowercase")]
pub enum Compression {
None,
Gzip,
#[default]
Zstd,
}
Expand All @@ -40,7 +39,6 @@ impl From<Compression> for trap::Compression {
fn from(val: Compression) -> Self {
match val {
Compression::None => Self::None,
Compression::Gzip => Self::Gzip,
Compression::Zstd => Self::Zstd,
}
}
Expand Down
1 change: 0 additions & 1 deletion rust/ql/integration-tests/hello-project/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Loading