Registry / build-tool / rustc-cfg

rustc-cfg

JSON →
library0.5.0rscratesunverified

Runs `rustc --print cfg` and parses the output.

# Cargo.toml [dependencies] rustc-cfg = "0.5.0"
INSTALL
IMPORT
SIG · RUSTC-CFG
R
rustc-cfg
build-toolrustv0.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Cfg
✓ use rustc_cfg::Cfg;

Parse rustc configuration.

use rustc_cfg::Cfg; fn main() { let cfg = Cfg::new(); println!("{:?}", cfg); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
rustc-cfg — cargo add rustc-cfg · libregistry