pub fn validate_crate_name(name: &str) -> Result<(), String>Expand description
Validate a project name for ecat new.
Rejects path separators (/, \), quotes, newlines and any character
outside ^[a-z][a-z0-9_-]*$, so the name can be safely used as a
directory and embedded in a generated Cargo.toml.