Function list_enabled_with_path

Source
pub fn list_enabled_with_path(cargo_toml_path: &str) -> Vec<String>
Expand description

Returns the list of enabled features as a Vec<String>.

Same as list_enabled but allows specifying a custom path to Cargo.toml.

§Panics

Panics if the specified file cannot be read.

§Arguments

  • cargo_toml_path - Path to the Cargo.toml file

§Returns

A Vec<String> containing the names of the enabled features, ordered with default first and then sorted alphabetically.