[package]
name = "tame-index"
version = "0.9.7"
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 = ["dep:gix", "dep:reqwest"]
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"]
[dependencies]
bytes = { version = "1.4", optional = true }
camino = "1.1"
crossbeam-channel = { version = "0.5", optional = true }
home = "0.5"
http = "0.2"
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.0", default-features = false, features = [
"rt-multi-thread",
"time",
], optional = true }
toml-span = "0.2"
twox-hash = { version = "1.6", default-features = false }
[dependencies.gix]
optional = true
version = "0.58"
default-features = false
features = ["blocking-http-transport-reqwest"]
[dependencies.reqwest]
optional = true
version = "0.11"
default-features = false
features = ["blocking", "gzip"]
[target.'cfg(unix)'.dependencies]
libc = "0.2"
[dev-dependencies]
cargo_metadata = "0.18"
rayon = "1.7"
tempfile = "3.6"
tiny-bench = "0.3"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[profile.dev.package.sha2]
opt-level = 3
[[bench]]
name = "sparse"
harness = false
required-features = ["sparse"]