Skip to main content

parse_spec_set_id

Function parse_spec_set_id 

Source
pub fn parse_spec_set_id(s: &str) -> Result<String, Error>
Expand description

Validate and normalize a spec set identifier (a workspace spec name).

Trims whitespace and rejects empty input, embedded whitespace, and the version sigils ~ / ^ (which once denoted revisions and are now reserved). Evaluation entry points use the workspace main base only, so temporal or version sigils on the spec set name are not accepted here.