proc_macro_crate

Function sanitize_crate_name

source
pub(crate) fn sanitize_crate_name<S: AsRef<str>>(name: S) -> String
Expand description

Make sure that the given crate name is a valid rust identifier.