Function tame_index::index::local::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