Expand description
This crate is maintained by the Cargo team for use by the wider ecosystem. This crate follows semver compatibility for its APIs.
Re-exportsΒ§
pub(crate) use std::collections::BTreeMap;πpub(crate) use std::fs::File;πpub(crate) use Cursor;πpub(crate) use SeekFrom;πpub(crate) use std::time::Instant;πpub(crate) use Method;πpub(crate) use Request;πpub(crate) use Response;πpub(crate) use StatusCode;πpub(crate) use NON_ALPHANUMERIC;πpub(crate) use percent_encode;πpub(crate) use Deserialize;πpub(crate) use Deserialize;πpub(crate) use Serialize;πpub(crate) use Serialize;πpub(crate) use url::Url;πpub(crate) use std::io::prelude::*;π
StructsΒ§
- ApiError π
- ApiError
List π - Crate
- Crates π
- NewCrate
- This struct is serialized as JSON and sent as metadata ahead of the crate tarball when publishing crates to a crate registry like crates.io.
- NewCrate
Dependency - Owner
Response π - Owners
Req π - R π
- Registry
- Total
Crates π - User
- Users π
- Warnings
EnumsΒ§
- Auth
- Error
- Error returned when interacting with a registry.
- Token
Error
TraitsΒ§
- Http
Client - Perform an HTTP request and return the response.
FunctionsΒ§
- check_
token - Checks if a token is valid or malformed.
- is_
url_ crates_ io - Returns
trueif the host of the given URL is βcrates.ioβ. - status π
Type AliasesΒ§
- Registry
Result π