Skip to main content

parse_spec

Function parse_spec 

Source
pub fn parse_spec(spec: &str) -> ParsedSpec
Expand description

Parse a spec string into its ecosystem-tagged form.

Mirrors parseSpec in spec.ts: the ecosystem is everything before the first :; a spec with no : is unknown with an empty ecosystem.