Skip to main content

rust_module_name

Function rust_module_name 

Source
pub fn rust_module_name(value: &str) -> String
Expand description

Derive a valid Rust module name from an arbitrary alias or file stem (lowercased, non-alphanumerics collapsed to _, keywords and leading digits escaped). Shared with the CLI so staged devex extension files wire up under the same stems the composition generator would use.