{"id":16576464,"url":"https://github.com/wcampbell0x2a/zerus","last_synced_at":"2025-04-30T22:46:14.158Z","repository":{"id":48912690,"uuid":"517079077","full_name":"wcampbell0x2a/zerus","owner":"wcampbell0x2a","description":"Lightweight binary to download only project required crates for offline crates.io mirror","archived":false,"fork":false,"pushed_at":"2025-04-29T23:38:53.000Z","size":248,"stargazers_count":43,"open_issues_count":5,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T22:46:06.375Z","etag":null,"topics":["build","cargo","crates-io","mirror","offline","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wcampbell0x2a.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["wcampbell0x2a"]}},"created_at":"2022-07-23T14:26:14.000Z","updated_at":"2025-04-16T16:29:27.000Z","dependencies_parsed_at":"2023-02-18T03:00:32.013Z","dependency_job_id":"95777161-7e62-425a-8212-d0bc343c2a9d","html_url":"https://github.com/wcampbell0x2a/zerus","commit_stats":{"total_commits":38,"total_committers":1,"mean_commits":38.0,"dds":0.0,"last_synced_commit":"64ead2645f6dc132f2eee5f405c89e448144a2dd"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcampbell0x2a%2Fzerus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcampbell0x2a%2Fzerus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcampbell0x2a%2Fzerus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcampbell0x2a%2Fzerus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wcampbell0x2a","download_url":"https://codeload.github.com/wcampbell0x2a/zerus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251795389,"owners_count":21645019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build","cargo","crates-io","mirror","offline","rust"],"created_at":"2024-10-11T22:08:16.862Z","updated_at":"2025-04-30T22:46:14.151Z","avatar_url":"https://github.com/wcampbell0x2a.png","language":"Rust","funding_links":["https://github.com/sponsors/wcampbell0x2a"],"categories":[],"sub_categories":[],"readme":"zerus\n===========================\n\n[\u003cimg alt=\"github\" src=\"https://img.shields.io/badge/github-wcampbell0x2a/zerus-8da0cb?style=for-the-badge\u0026labelColor=555555\u0026logo=github\" height=\"20\"\u003e](https://github.com/wcampbell0x2a/zerus)\n[\u003cimg alt=\"crates.io\" src=\"https://img.shields.io/crates/v/zerus.svg?style=for-the-badge\u0026color=fc8d62\u0026logo=rust\" height=\"20\"\u003e](https://crates.io/crates/zerus)\n[\u003cimg alt=\"docs.rs\" src=\"https://img.shields.io/badge/docs.rs-zerus-66c2a5?style=for-the-badge\u0026labelColor=555555\u0026logo=docs.rs\" height=\"20\"\u003e](https://docs.rs/zerus)\n[\u003cimg alt=\"build status\" src=\"https://img.shields.io/github/actions/workflow/status/wcampbell0x2a/zerus/main.yml?branch=master\u0026style=for-the-badge\" height=\"20\"\u003e](https://github.com/wcampbell0x2a/zerus/actions?query=branch%3Amaster)\n\nLightweight binary to download only project required crates for offline crates.io mirror\n\n## Build zerus\nEither build from published source in crates.io.\n```\n$ cargo install zerus --locked\n```\n\nOr download from [github releases](https://github.com/wcampbell0x2a/zerus/releases).\n\n## Usage\n```console\nUsage: zerus [OPTIONS] \u003cMIRROR_PATH\u003e [WORKSPACES]...\n\nArguments:\n  \u003cMIRROR_PATH\u003e    new directory to contain offline mirror crate files\n  [WORKSPACES]...  list of Cargo.toml files to vendor depends\n\nOptions:\n      --build-std \u003cVERSION\u003e            Cache build-std depends for nightly version\n      --git-index-url \u003cGIT_INDEX_URL\u003e  Hostname for git index crates.io\n      --skip-git-index                 Skip download of git index crates.io\n  -h, --help                           Print help\n  -V, --version                        Print version\n```\n\nExample of adding dependencies of two projects, meant to be hosted on `127.0.0.1`.\n```console\n$ zerus new-mirror ../deku/Cargo.toml ../adsb_deku/Cargo.toml --git-index-url http://127.0.0.1\n```\n\nAdding the top 100 rust crates used by rust-playground is easy:\n```console\n$ git clone https://github.com/rust-lang/rust-playground\n$ zerus new-mirror rust-playground/top-crates/Cargo.toml\n```\n\n## Serve mirror\nUse any `http(s)` server.\n\n### Build with mirror\nAdd the following to the `.cargo/config` file(replacing IP with your ip).\n```toml\n[source.zerus]\nregistry = \"sparse+http://[IP]/crates.io-index/\"\n\n[source.crates-io]\nreplace-with = \"zerus\"\n```\n\n## Margo\nThrough the use of [margo](https://github.com/integer32llc/margo), you can make a alternate Cargo registry without\ndownloading the entire `crates.io` git index.\n```\n$ zerus mirror ../deku/Cargo.toml --build-std nightly --skip-git-index\n$ margo add --registry my-registry-directory mirror/*/*/*/*/*/*.crate\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwcampbell0x2a%2Fzerus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwcampbell0x2a%2Fzerus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwcampbell0x2a%2Fzerus/lists"}