📇 tame-index
Small crate for interacting with cargo registry indices
You probably want to use crates-index
This crate is a hard fork of crates-index to fit the use cases of cargo-deny and cargo-fetcher, if you are looking for a crate to access a cargo registry index, you would be well served by using crates-index instead.
Differences from crates-index
If you still want to use this crate instead, there are some differences to be aware of. Though note any of these may change in the future as crates-index and this crate evolve.
- Git registry support is optional, gated behind the
gitfeature flag. - Git functionality is provided by
gixinstead ofgit2 - The API exposes enough pieces where an alternative git implementation can be used if
gixis not to your liking. - Sparse index support is optional, gated behind the
sparsefeature flag. - Sparse HTTP functionality is provided by the
reqwestcrate - Support for creating HTTP requests and parsing HTTP responses is still available when the
sparsefeature is not enabled if you want to use a different HTTP client thanreqwest - Local cache files are always supported regardless of features enabled
- Functionality for determining the local index location for a remote registry URL is exposed in the public API
- Functionality for writing cache entries to the local index cache is exposed in the public API
Local Registrysupport is available behind thelocalfeature flag- Building of local registries is available behind the
local-builderfeature flag
Contributing
We welcome community contributions to this project.
Please read our Contributor Guide for more information on how to get started. Please also read our 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 or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
For clarity, "your" refers to Embark or any other licensee/user of the contribution.