Function list_all

Source
pub fn list_all<S: AsRef<str>>(
    cargo_toml_path: S,
) -> Result<HashSet<String>, Error>
Expand description

Parses a Cargo.toml file and returns the set of declared feature names.

Only the [features] section is considered. While it should be able handle reasonable edge cases, this function also tries to keep things simple and is not a replacement for a full parser such as the toml crate.

§Arguments

  • cargo_toml_path - Path to the Cargo.toml file used as the source for the available features list.

§Returns

A HashSet<String> containing the names of the declared features.