Skip to main content

requires_component_is_safe

Function requires_component_is_safe 

Source
pub fn requires_component_is_safe(s: &str) -> bool
Expand description

Whether a ## Requires crate name / version / feature is safe to write into the generated Cargo.toml verbatim: strictly alphanumerics plus the characters cargo specs actually use. Anything else (quotes, newlines, brackets) could smuggle TOML structure into the manifest.