Skip to content

Cargo (Rust Crates)

mise-server proxies the Cargo sparse registry index and crate downloads.

Endpoints

GET /cargo/{path}       # sparse registry index
GET /cargo/dl/{path}    # crate download

Client Configuration

Add to .cargo/config.toml:

toml
[source.crates-io]
replace-with = "mise-server"

[source.mise-server]
registry = "sparse+http://your-server:3000/cargo/"

Upstream Override

The registry index and download URLs can be configured independently:

toml
[settings.piers.cargo]
upstream = "https://index.crates.io"

[settings]
cargo_download_upstream = "https://static.crates.io/crates"
bash
export MISE_SERVER_CARGO_UPSTREAM=https://index.crates.io
export MISE_SERVER_CARGO_DOWNLOAD_UPSTREAM=https://static.crates.io/crates

Licensed under FSL-1.1-ALv2. Maintained by @jdx.