Skip to main content

valid_name

Function valid_name 

Source
pub fn valid_name(name: &str) -> bool
Expand description

Is this a usable PackageInfo::name: /-separated segments, none empty, none . or .., and no \ or control character anywhere?

Both sides call it, because a manifest can come from a server the user does not run.