rustc-cfg

Runs rustc --print cfg and parses the output

7 releases (4 breaking)

Uses old Rust 2015

0.5.0 Jul 6, 2022
0.4.0 Oct 27, 2018
0.3.0 Dec 30, 2016
0.2.0 Oct 3, 2016
0.1.2 Sep 15, 2016

#980 in Parser implementations

Download history 12652/week @ 2024-06-18 12347/week @ 2024-06-25 11309/week @ 2024-07-02 12059/week @ 2024-07-09 11618/week @ 2024-07-16 12076/week @ 2024-07-23 11749/week @ 2024-07-30 11537/week @ 2024-08-06 10287/week @ 2024-08-13 10006/week @ 2024-08-20 8964/week @ 2024-08-27 10889/week @ 2024-09-03 11837/week @ 2024-09-10 9956/week @ 2024-09-17 12653/week @ 2024-09-24 8022/week @ 2024-10-01

44,215 downloads per month
Used in 34 crates (7 directly)

MIT/Apache

9KB
119 lines

crates.io crates.io

rustc-cfg

Runs rustc --print cfg and parses its output

NOTE: If you are in build script context you should prefer to use the CARGO_CFG_* env variables that Cargo sets over this crate.

Documentation

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~270–720KB
~17K SLoC