Expand description
Returns the list of enable features when building your crate.
The list_enabled_as_string function lists enabled features during the Cargo build process,
in a format that can be directly saved in build artifacts, which can be then included
elsewhere in the program and read at run time.
Other functions are made available in case you prefer obtaining intermediate data or want to provide more parameters, but they’re probably not what you’re looking for.
§Examples
See the example included with the list_enabled_as_string function and the
example crate
Functions§
- list_all 
- Parses a Cargo.tomlfile and returns the set of declared feature names.
- list_enabled 
- Returns the list of enabled features as a Vec<String>.
- list_enabled_ as_ string 
- Generates a constant declaration containing enabled Cargo features.
- list_enabled_ as_ string_ with_ path 
- Generates a constant declaration containing enabled Cargo features.
- list_enabled_ with_ path 
- Returns the list of enabled features as a Vec<String>.