https://github.com/embarkstudios/tame-index
Small crate for interacting with cargo registry indices
https://github.com/embarkstudios/tame-index
Last synced: 6 months ago
JSON representation
Small crate for interacting with cargo registry indices
- Host: GitHub
- URL: https://github.com/embarkstudios/tame-index
- Owner: EmbarkStudios
- License: apache-2.0
- Created: 2023-06-19T12:51:47.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-10T15:29:32.000Z (about 1 year ago)
- Last Synced: 2025-06-10T17:27:19.923Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 325 KB
- Stars: 24
- Watchers: 4
- Forks: 14
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE-APACHE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# `📇 tame-index`
**Small crate for interacting with [cargo registry indices](https://doc.rust-lang.org/nightly/cargo/reference/registry-index.html)**
[](https://embark.dev)
[](https://discord.gg/dAuKfZS)
[](https://crates.io/crates/tame-index)
[](https://docs.rs/tame-index)
[](https://deps.rs/repo/github/EmbarkStudios/tame-index)
[](https://github.com/EmbarkStudios/tame-index/actions)
## Differences from [`crates-index`][0]
1. `tame-index` as of version 0.26.0 **no longer supports fetching or accessing git registry repositories**.
1. The API exposes enough pieces where an alternative git implementation can be used if `gix` is not to your liking.
1. Sparse index support via [`reqwest`](https://crates.io/crates/reqwest) is optional, gated behind the `sparse` feature flag.
1. Local cache files are always supported regardless of features enabled
1. `ComboIndexCache` (local cache files only) and `ComboIndex` (cache + remote capabilities) are provided to wrap git indices, sparse indices, or local registries depending on the the index URL.
1. Functionality for writing cache entries to the local index cache is exposed in the public API
1. [`Local Registry`](https://doc.rust-lang.org/cargo/reference/source-replacement.html#local-registry-sources) support is available behind the `local` feature flag
1. Building of local registries is available behind the `local-builder` feature flag
1. File-based locking compatible with Cargo is available to ensure `tame-index` and Cargo can play nicely together.
## `sparse` feature
Enabling the `sparse` feature gives built-in support for fetching from HTTP sparse indices via `reqwest`. `tame-index` does not take a stance on TLS, thus it is the responsibility of the user to properly configure the client that they pass to `tame-index`. See `examples/tls.rs` for an example of how one can configure a Client using `rustls`, `ring`, and `webpki-roots`.
## Contributing
[](CODE_OF_CONDUCT.md)
We welcome community contributions to this project.
Please read our [Contributor Guide](CONTRIBUTING.md) for more information on how to get started.
Please also read our [Contributor Terms](CONTRIBUTING.md#contributor-terms) before you make any contributions.
Any contribution intentionally submitted for inclusion in an Embark Studios project, shall comply with the Rust standard licensing model (MIT OR Apache 2.0) and therefore be dual licensed as described below, without any additional terms or conditions:
### License
This contribution is dual licensed under EITHER OF
- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or )
- MIT license ([LICENSE-MIT](LICENSE-MIT) or )
at your option.
For clarity, "your" refers to Embark or any other licensee/user of the contribution.
[0]: https://crates.io/crates/crates-index