Crates.io | zerus |
lib.rs | zerus |
version | 0.8.1 |
source | src |
created_at | 2022-08-07 15:14:28.97045 |
updated_at | 2024-05-30 21:29:21.939114 |
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 |
size | 72,641 |
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
-h, --help Print help
Example:
$ zerus new-mirror ../deku/Cargo.toml ../adsb_deku/Cargo.toml
# configure crates.io-index to point to our host
$ cat crates.io-index/config.json
{
"dl": "http://[IP]/crates/{prefix}/{crate}/{version}/{crate}-{version}.crate",
"api": "http://[IP]/crates"
}
Use miniserve.
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"