Skip to main content

resolve_version

Function resolve_version 

Source
pub async fn resolve_version(
    store: &TemplateStore,
    id: &str,
    selector: VersionSelector,
) -> CliResult<u32>
Available on crate feature templates only.
Expand description

Resolve a VersionSelector to the exact version to act on.

Every channel — derived or assigned — is looked up here; nothing falls back to “the newest build”. A selector that names an unset channel is an error listing what is set, because silently substituting another version is how a caller ends up running code they did not ask for.