Expand description
Token resolution: CARGO_REGISTRY_TOKEN → CARGO_REGISTRIES_<NAME>_TOKEN
→ $CARGO_HOME/credentials.toml.
Facade re-exporting the crate-private ops::auth module so external
consumers keep using shipper::auth::* after the shipper-auth
microcrate absorption.
Structs§
- Auth
Info - Result of token resolution for a single registry.
Enums§
- Token
Source - Where the authentication token was resolved from.
Constants§
- CARGO_
HOME_ ENV - Environment variable for
CARGO_HOME. - CARGO_
REGISTRIES_ TOKEN_ PREFIX - Environment variable prefix for registry-specific tokens.
- CARGO_
REGISTRY_ TOKEN_ ENV - Environment variable for the default registry token.
- CRATES_
IO_ REGISTRY - Default registry name for crates.io.
- CREDENTIALS_
FILE - Default credentials filename inside
$CARGO_HOME.
Functions§
- cargo_
home_ path - Resolve the
CARGO_HOMEdirectory path. - detect_
auth_ type - Detect the best-known authentication mode for publish/preflight diagnostics.
- has_
token - Check whether any token is available for the given registry.
- is_
trusted_ publishing_ available - Detect whether trusted publishing (GitHub Actions OIDC) is available.
- list_
configured_ registries - List all registry names found in a
credentials.tomlfile. - mask_
token - Mask a token for safe display.
- resolve_
auth_ info - Resolve the authentication token for a registry.
- resolve_
token - Resolve the authentication token for a registry.