Skip to main content

Crate crates_io

Crate crates_io 

Source
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 πŸ”’
ApiErrorList πŸ”’
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.
NewCrateDependency
OwnerResponse πŸ”’
OwnersReq πŸ”’
R πŸ”’
Registry
TotalCrates πŸ”’
User
Users πŸ”’
Warnings

EnumsΒ§

Auth
Error
Error returned when interacting with a registry.
TokenError

TraitsΒ§

HttpClient
Perform an HTTP request and return the response.

FunctionsΒ§

check_token
Checks if a token is valid or malformed.
is_url_crates_io
Returns true if the host of the given URL is β€œcrates.io”.
status πŸ”’

Type AliasesΒ§

RegistryResult πŸ”’