pub fn list_enabled_as_string_with_path(
const_name: &str,
cargo_toml_path: &str,
) -> StringExpand 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 generatecargo_toml_path- Path to theCargo.tomlfile