Shipyard.rs requires authorization for all crate downloads, unlike how crates.io works.
This page contains instructions for configuring
~/.cargo/config.toml. For additional discussion about
cargo authentication, see the Authentication secion.
If you are using nightly, the unstable
registry-auth feature is available, which prompts
cargo to pass an auth token via the "Authorization" header in HTTP download requests.
# ~/.cargo/config.toml [unstable] registry-auth = true
Additional details: Authenticated Downloads Via
Example of using
cargo's "user-agent" setting to pass an auth token (see Temporary Fix) -
would be written to
$CARGO_HOME/config.toml or other configuration path:
# set a custom user-agent header value for cargo requests: [http] user-agent = "shipyard AxzHJS6gWK=" # this setting, while facially unrelated and not strictly required for performing # authentication # via the "user-agent" header, seems to mitigate various problems # that arise from using the "user-agent" # header in a ... non-traditional way [net] git-fetch-with-cli = true