mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
91 lines
3.1 KiB
YAML
91 lines
3.1 KiB
YAML
name: "rust"
|
|
display_name: "Rust"
|
|
version: 0.1.0
|
|
column_kind: "utf8"
|
|
legacy_qltest_extraction: true
|
|
build_modes:
|
|
- none
|
|
default_queries:
|
|
- codeql/rust-queries
|
|
github_api_languages:
|
|
- Rust
|
|
scc_languages:
|
|
- Rust
|
|
file_types:
|
|
- name: rust
|
|
display_name: Rust files
|
|
extensions:
|
|
- .rs
|
|
options:
|
|
trap:
|
|
title: Options pertaining to TRAP.
|
|
type: object
|
|
properties:
|
|
compression:
|
|
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' (to write
|
|
Zstandard-compressed TRAP) and 'none' (the default, to write uncompressed
|
|
TRAP).
|
|
type: string
|
|
pattern: "^(none|gzip|zstd)$"
|
|
cargo_target_dir:
|
|
title: Directory to use for cargo output files.
|
|
description: >
|
|
This value is an optional path to use as `CARGO_TARGET_DIR` for the internal
|
|
cargo commands the extractor uses. Pointing it to a persistent directory may
|
|
reduce execution time of consecutive extractor runs. By default, a new scratch
|
|
directory is used for each run.
|
|
type: string
|
|
cargo_target:
|
|
title: Target architecture
|
|
description: >
|
|
Target architecture to use for analysis, analogous to `cargo --target`. By
|
|
default the host architecture is used.
|
|
type: string
|
|
cargo_features:
|
|
title: Cargo features to turn on
|
|
description: >
|
|
Comma-separated list of features to turn on. By default all features are enabled.
|
|
If any features are specified, then only those features are enabled. The `default`
|
|
feature must be explicitly specified if only default features are desired.
|
|
Can be repeated.
|
|
type: array
|
|
cargo_cfg_overrides:
|
|
title: Cargo cfg overrides
|
|
description: >
|
|
Comma-separated list of cfg settings to enable, or disable if prefixed with `-`.
|
|
Can be repeated.
|
|
type: array
|
|
logging:
|
|
title: Options pertaining to logging.
|
|
type: object
|
|
properties:
|
|
verbosity:
|
|
title: Extractor logging verbosity level.
|
|
description: >
|
|
Controls the level of verbosity of the extractor.
|
|
The supported levels are (in order of increasing verbosity):
|
|
- off
|
|
- errors
|
|
- warnings
|
|
- info or progress
|
|
- debug or progress+
|
|
- trace or progress++
|
|
- progress+++
|
|
type: string
|
|
pattern: "^(off|errors|warnings|(info|progress)|(debug|progress\\+)|(trace|progress\\+\\+)|progress\\+\\+\\+)$"
|
|
flamegraph:
|
|
title: "[Experimental] File path for write flame graph log"
|
|
description: >
|
|
Collect flame graph data using the `tracing-flame` crate. To render a flame graph
|
|
or chart, run the `inferno-flamegraph` command. See also: https://crates.io/crates/tracing-flame
|
|
type: string
|
|
extract_dependencies_as_source:
|
|
title: Extract dependencies as source code
|
|
description: >
|
|
Extract the full source code of dependencies instead of only extracting signatures.
|
|
type: string
|
|
pattern: "^(false|true)$"
|