tame_index::index::local

Function crate_file_components

Source
pub fn crate_file_components(name: &str) -> Option<(&str, &str)>
Available on crate feature local only.
Expand description

Splits a crate package name into its component parts

<crate-name>-<semver>.crate

The naming is a bit annoying for these since the separator between the crate name and version is a - which can be present in both the crate name as well as the semver, so we have to take those into account