[][src]Function cargo_free::check_availability

pub fn check_availability(name: impl AsRef<str>) -> Result<Availability, ()>

Checks the availability for a given crate name.

Arguments

  • name: The crate name to check

Returns

Ok(Availability) if the name could be resolved, an error otherwise.

Note

The needed network request will timeout after five seconds.