Skip to main content

parse_ref

Function parse_ref 

Source
pub fn parse_ref(raw: &str) -> Option<(String, String)>
Expand description

Parse a registry ref <scope>/<name> in one of the three scope forms (github:<handle>/<name>, <domain>:<handle>/<name>, or a bare <handle>/<name>). The legacy @scope/name syntax is rejected by the caller before this is reached. Returns None for anything that is not a valid registry ref (e.g. a local file path), so install can fall back to a local install.