Cargo Features

tame-index has no features set by default.

[dependencies]
tame-index = { version = "0.15.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 default-features = false somewhere in the dependency tree.

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

Enables bytes and sha2

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.

gix gix-curl? gix-reqwest?