Cargo Features
tame-index has no features set by default.
[dependencies]
tame-index = { version = "0.16.0", features = ["git", "gix-reqwest", "gix-curl", "sparse", "local", "local-builder", "native-certs"] }
- default
-
These default features are set whenever
tame-index
is added without
somewhere in the dependency tree.default-features = false Enables rustls-tls-webpki-roots of optional reqwest
- git = gix-reqwest
-
Enables the built-in support for fetching and reading a git registry index
- gix-reqwest git? = __git
-
The default is reqwest since that doesn't pull in (a ton of) C code
Enables reqwest, blocking-http-transport-reqwest of gix
- gix-curl = __git
-
Unfortunately need to support curl as well, though we don't test or care about it, in addition to having 2 HTTP client implementations if sparse is also enabled
Enables blocking-http-transport-curl of gix
- __git gix-curl? gix-reqwest?
-
"private" feature flag which is the one actually used in code
Affects
utils::git
… - sparse
-
Enables the built-in support for requesting index entries from a HTTP sparse registry index
Enables crossbeam-channel, rayon, reqwest, and tokio
crossbeam-channel:
Better channels, already a dep if rayon is pulled in
- local local-builder?
-
Enables local registry support
Affects
index::local
… - local-builder = local
-
Enables helpers for building a local registry
Enables reqwest
Affects
local::builder
… - native-certs
-
Enables the use of OS native certificate store. Should be used with
default-features = false
to also disable webpki-roots, which is activated by default.Enables rustls-tls-native-roots of optional reqwest
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.