Skip to main content

split_pkg_spec

Function split_pkg_spec 

Source
pub fn split_pkg_spec(spec: &str) -> Option<(&str, &str)>
Expand description

Split a <pkg>@<rest> spec into (name, rest), handling scoped names (@scope/pkg). Returns None if there is no @ separator.