Skip to main content

fetch

Function fetch 

Source
pub async fn fetch(base_url: &str, name: &str) -> Result<Option<RegistryServer>>
Expand description

Look one server up by its exact registry name, at its current version.

The registry has no exact-name endpoint on v0, so this searches and then matches the name exactly rather than trusting the first hit: a search for github should not silently install someone else’s fork.