Registry / utility / cfg-expr

cfg-expr

JSON →
library0.20.7rscratesunverified

A parser and evaluator for Rust `cfg()` expressions.

# Cargo.toml [dependencies] cfg-expr = "0.20.7"
INSTALL
IMPORT
SIG · CFG-EXPR
C
cfg-expr
utilityrustv0.20.7
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.

Expression
use cfg_expr::Expression;

Parses a cfg expression string into an Expression object.

use cfg_expr::Expression; fn main() { let expr = Expression::parse("cfg(unix)").unwrap(); println!("{:?}", expr); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.20.7latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
cfg-expr — cargo add cfg-expr · libregistry