Crates.io | zerus |
lib.rs | zerus |
version | |
source | src |
created_at | 2022-08-07 15:14:28.97045 |
updated_at | 2024-10-25 03:25:36.603979 |
description | Lightweight binary to download only project required crates for offline crates.io mirror |
homepage | https://github.com/wcampbell0x2a/zerus |
repository | https://github.com/wcampbell0x2a/zerus |
max_upload_size | |
id | 640248 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | 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 |
Lightweight binary to download only project required crates for offline crates.io mirror
Either build from published source in crates.io.
$ cargo install zerus --locked
Or download from github releases.
Usage: zerus [OPTIONS] <MIRROR_PATH> [WORKSPACES]...
Arguments:
<MIRROR_PATH> new directory to contain offline mirror crate files
[WORKSPACES]... list of Cargo.toml files to vendor depends
Options:
--build-std <VERSION> Cache build-std depends for nightly version
--git-index-url <GIT_INDEX_URL> hostname for git index crates.io
--skip-git-index Skip download of git index crates.io
-h, --help Print help
Example:
$ zerus new-mirror ../deku/Cargo.toml ../adsb_deku/Cargo.toml --git-index-url http://127.0.0.1
Use any http(s)
server.
Add the following to the .cargo/config
file(replacing IP with your ip).
[source.zerus]
registry = "sparse+http://[IP]/crates.io-index/"
[source.crates-io]
replace-with = "zerus"
Through the use of margo, you can make a alternate Cargo registry without
downloading the entire crates.io
git index.
$ zerus mirror ../deku/Cargo.toml --build-std nightly --skip-git-index
$ margo add --registry my-registry-directory mirror/*/*/*/*/*/*.crate