Function list_enabled_as_string_with_path

Source
pub fn list_enabled_as_string_with_path(
    const_name: &str,
    cargo_toml_path: &str,
) -> String
Expand description

Generates a constant declaration containing enabled Cargo features.

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

§Panics

Panics if the specified file cannot be read.

§Arguments

  • const_name - Name of the constant to generate
  • cargo_toml_path - Path to the Cargo.toml file