Skip to main content

normalize_crate_name

Function normalize_crate_name 

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

Normalizes a crate name by trimming, ASCII-lowercasing, replacing spaces or underscores with hyphens, collapsing repeated hyphens, and trimming edges.