Download prebuilt binaries of some crate.io crates.
See supported targets and a list of prebuilt crates here.
(Some targets may not be prebuilt for some crates)
Request a crate to be added here.
Cargo prebuilt overwrites existing binaries by default. To stop this use the -s
flag, --safe
flag, or add safe = true
to your config file.
To download a crate: cargo prebuilt CRATE_NAME
To download multiple crates: cargo prebuilt CRATE_1,CRATE_2,CRATE_3,...
To download a version of a crate: cargo prebuilt CRATE_NAME@VERSION
To download multiple crates with versions: cargo prebuilt CRATE_1@V1,CRATE_2,CRATE_3@V3,...
Need help? Try: cargo prebuilt --help
or see Config Info
cargo install cargo-prebuilt
or cargo install cargo-prebuilt --profile=quick-build
cargo prebuilt cargo-prebuilt
cargo binstall cargo-prebuilt --no-confirm
cargo quickinstall cargo-prebuilt
brew install crow-rest/harmless/cargo-prebuilt
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-prebuilt/cargo-prebuilt/main/scripts/install-cargo-prebuilt.sh | bash
(Cargo prebuilt requires a tls feature)
cargo install cargo-prebuilt
cargo install cargo-prebuilt --no-default-features --features default-native
cargo install cargo-prebuilt --no-default-features --features default-rustls
cargo install cargo-prebuilt --no-default-features --features default-rustls,rustls-native-certs
(Cargo prebuilt is tested with default features and may break without the security
feature)
Remove security
feature included by default, then add the features you want below:
- sha2
: Sha2 hashing
- sha3
: Sha3 hashing
- sig
: Minisign signatures
(Cargo prebuilt is tested with default features and may break without the indexes
feature)
Remove indexes
feature included by default, then add the features you want below:
- github-public
- github-private (Not supported yet)
- gitlab-public (Not supported yet)
- gitlab-private (Not supported yet)
- forgejo-public (Not supported yet)
- forgejo-private (Not supported yet)
- gitea-public (Not supported yet)
- gitea-private (Not supported yet)
- custom-http-public (Not supported yet)
- custom-http-private (Not supported yet)
(Cargo prebuilt is tested with default features and may break without the color
feature)
color
feature (enabled by default)--no-color
, NO_COLOR=true
env var, or color = false
in the config file.cargo install cargo-prebuilt --features mimalloc
To output events use --out
.
See Events.
Reports are generated when a crate is built in the index.
They are stored under $DATA/cargo-prebuilt/reports/$CRATE/$VERSION
by default.
See Data Dirs.
Use --report-path
to change where they are stored.
Report types (--reports): - license: Download license and put it under the prebuilt folder in the installation dir. (Default on) - deps: Download deps tree and put it under the prebuilt folder in the installation dir. - audit: Download audit and put it under the prebuilt folder in the installation dir.
Your url should be formatted like github.com/cargo-prebuilt/index
. cargo-prebuilt requires https.
export PREBUILT_INDEX=gh-pub:$URL
cargo prebuilt --index=gh-pub:$URL CRATES
toml
[key.index]
index = "gh-pub:$URL"
Under development