# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85.0"
name = "tame-index"
version = "0.26.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Provides access to local and remote cargo registry indices"
homepage = "https://github.com/EmbarkStudios/tame-index"
documentation = "https://docs.rs/tame-index"
readme = "README.md"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/EmbarkStudios/tame-index"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
local = [
    "dep:sha2",
    "dep:bytes",
]
local-builder = [
    "local",
    "dep:reqwest",
]
sparse = [
    "dep:reqwest",
    "dep:tokio",
    "dep:rayon",
    "dep:crossbeam-channel",
]

[lib]
name = "tame_index"
path = "src/lib.rs"

[[example]]
name = "tls"
path = "examples/tls.rs"

[[test]]
name = "cache"
path = "tests/cache.rs"

[[test]]
name = "flock"
path = "tests/flock.rs"

[[test]]
name = "local"
path = "tests/local.rs"

[[test]]
name = "sparse"
path = "tests/sparse.rs"

[[test]]
name = "utils"
path = "tests/utils.rs"

[[bench]]
name = "sparse"
path = "benches/sparse.rs"
harness = false
required-features = ["sparse"]

[dependencies.bytes]
version = "1.11"
optional = true

[dependencies.camino]
version = "1.1"

[dependencies.crossbeam-channel]
version = "0.5"
optional = true

[dependencies.home]
version = "0.5"

[dependencies.http]
version = "1.3"

[dependencies.memchr]
version = "2.5"

[dependencies.rayon]
version = "1.7"
optional = true

[dependencies.reqwest]
version = "0.13"
features = [
    "blocking",
    "gzip",
    "http2",
]
optional = true
default-features = false

[dependencies.rustc-stable-hash]
version = "0.1"

[dependencies.semver]
version = "1.0"
features = ["serde"]

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "rc",
]

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"
features = ["std"]
optional = true
default-features = false

[dependencies.smol_str]
version = "0.3"
features = ["serde"]

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.48"
features = [
    "rt-multi-thread",
    "time",
]
optional = true
default-features = false

[dependencies.toml-span]
version = "0.7"

[dependencies.twox-hash]
version = "2.1"
features = ["xxhash64"]
default-features = false

[dev-dependencies.cargo_metadata]
version = "0.23"

[dev-dependencies.rayon]
version = "1.7"

[dev-dependencies.reqwest]
version = "0.13"
features = ["rustls-no-provider"]
default-features = false

[dev-dependencies.rustls]
version = "0.23"
features = ["ring"]
default-features = false

[dev-dependencies.tempfile]
version = "3.15"

[dev-dependencies.tiny-bench]
version = "0.4"

[dev-dependencies.webpki-roots]
version = "1.0"

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[profile.dev.package.sha2]
opt-level = 3
