Crates.io | cargo-prebuilt |
lib.rs | cargo-prebuilt |
version | |
source | src |
created_at | 2022-10-16 04:20:57.932992 |
updated_at | 2024-12-01 00:13:38.87414 |
description | Download prebuilt crate binaries for many different platforms |
homepage | https://github.com/cargo-prebuilt/cargo-prebuilt |
repository | https://github.com/cargo-prebuilt/cargo-prebuilt |
max_upload_size | |
id | 689320 |
Cargo.toml error: | TOML parse error at line 28, column 1 | 28 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Download prebuilt binaries of some crate.io crates.
See supported targets, a list of prebuilt crates, and the official index here.
(Some targets may not be prebuilt for some crates).
Request a crate to be added to the official index here.
See the currently supported versions 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
More ways and how to verify your download here.
cargo install cargo-prebuilt
cargo prebuilt cargo-prebuilt
cargo binstall cargo-prebuilt --no-confirm
cargo quickinstall cargo-prebuilt
bash -c "$(curl -fsSL --tlsv1.2 https://raw.githubusercontent.com/cargo-prebuilt/cargo-prebuilt/main/scripts/install-cargo-prebuilt.sh)"
(Cargo prebuilt requires either the native or rustls feature)
cargo build
or for a release version
cargo build --release
To output events use --out
.
See Events.
Reports are generated during crate build time in the index.
They are stored under $REPORTS/$CRATE/$VERSION
by default.
See Report Directory ($REPORTS).
Use --report-path
to change where they are stored.
Template (Usually out of date compared to the main index)
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
[key.index]
index = "gh-pub:$URL"
pub_key = []
Beta Feature.
Your URL should be formatted like github.com/cargo-prebuilt/index
.
Cargo-prebuilt requires HTTPS.
This index requires an auth token with: Repository permission -> Contents -> Read-only. Generate a token
export PREBUILT_INDEX=gh-pri:$URL
cargo prebuilt --index=gh-pri:$URL CRATES
[key.index]
index = "gh-pri:$URL"
pub_key = []
auth = ""