[package]
name = "tame-index"
version = "0.13.2"
edition = "2021"
rust-version = "1.67.0"
description = "Provides access to local and remote cargo registry indices"
license = "Apache-2.0 OR MIT"
documentation = "https://docs.rs/tame-index"
homepage = "https://github.com/EmbarkStudios/tame-index"
repository = "https://github.com/EmbarkStudios/tame-index"
[features]
default = ["reqwest?/rustls-tls-webpki-roots"]
git = ["gix-reqwest"]
gix-reqwest = ["gix/blocking-http-transport-reqwest", "dep:reqwest", "__git"]
gix-curl = ["gix/blocking-http-transport-curl", "__git"]
__git = []
sparse = ["dep:reqwest", "dep:tokio", "dep:rayon", "dep:crossbeam-channel"]
local = ["dep:sha2", "dep:bytes"]
local-builder = ["local", "dep:reqwest"]
native-certs = ["reqwest?/rustls-tls-native-roots"]
__internal_all = ["git", "sparse", "local-builder"]
[dependencies]
bytes = { version = "1.7", optional = true }
camino = "1.1"
crossbeam-channel = { version = "0.5", optional = true }
home = "0.5"
http = "1.1"
memchr = "2.5"
rayon = { version = "1.7", optional = true }
semver = { version = "1.0", features = ["serde"] }
serde = { version = "1.0", features = ["derive", "rc"] }
serde_json = "1.0"
sha2 = { version = "0.10", optional = true, default-features = false, features = [
"std",
] }
smol_str = { version = "0.2.0", features = ["serde"] }
thiserror = "1.0"
tokio = { version = "1.39", default-features = false, features = [
"rt-multi-thread",
"time",
], optional = true }
toml-span = "0.3"
twox-hash = { version = "1.6", default-features = false }
[dependencies.gix]
optional = true
version = "0.64"
default-features = false
features = []
[dependencies.reqwest]
optional = true
version = "0.12.7"
default-features = false
features = ["blocking", "gzip", "http2"]
[target.'cfg(unix)'.dependencies]
libc = "0.2"
[dev-dependencies]
cargo_metadata = "0.18"
rayon = "1.7"
tempfile = "3.12"
tiny-bench = "0.3"
[package.metadata.docs.rs]
features = ["__internal_all"]
rustdoc-args = ["--cfg", "docsrs"]
[profile.dev.package.sha2]
opt-level = 3
[[bench]]
name = "sparse"
harness = false
required-features = ["sparse"]