Crate cfg

Source
Expand description

cfg defines conditional compiling options, cfg attribute parser and evaluator

Structs§

  • Configuration options used for conditional compilation on items with cfg attributes. We have two kind of options in different namespaces: atomic options like unix, and key-value options like target_arch="x86".
  • A #[cfg] directive in Disjunctive Normal Form (DNF).
  • A CfgOptions that implements Hash, for the sake of hashing only.

Enums§

  • A simple configuration value passed in from the outside.