# 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.95"
name = "kache"
version = "0.7.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zero-copy, content-addressed build cache for Rust, C/C++ and more. No copies, no wasted disk — just hardlinks locally and S3 for sharing."
homepage = "https://kunobi.ninja/docs/kache"
readme = "README.md"
keywords = [
    "build-cache",
    "rustc-wrapper",
    "blake3",
    "cargo",
]
categories = [
    "development-tools::build-utils",
    "caching",
]
license = "Apache-2.0"
repository = "https://github.com/kunobi-ninja/kache"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }{ archive-suffix }"
pkg-fmt = "tgz"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"

[package.metadata.binstall.overrides.aarch64-pc-windows-msvc]
pkg-fmt = "zip"

[package.metadata.deb]
maintainer = "Kunobi Ninja <feedback@kunobi.ninja>"
copyright = "2026, Zondax AG"
license-file = [
    "LICENSE",
    "0",
]
extended-description = "kache is a zero-copy, content-addressed build cache for Rust, C/C++ and more. It avoids file copies and wasted disk by hardlinking artifacts locally and sharing them via S3-compatible object storage."
section = "utils"
priority = "optional"
depends = ""
assets = [
    [
    "target/release/kache",
    "usr/bin/kache",
    "755",
],
    [
    "README.md",
    "usr/share/doc/kache/README",
    "644",
],
]

[[bin]]
name = "kache"
path = "src/main.rs"

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.async-trait]
version = "0.1"

[dependencies.aws-config]
version = "1"
features = [
    "rt-tokio",
    "credentials-process",
    "sso",
]
default-features = false

[dependencies.aws-sdk-s3]
version = "1"
features = [
    "sigv4a",
    "http-1x",
    "rt-tokio",
]
default-features = false

[dependencies.aws-smithy-http-client]
version = "1"
features = ["rustls-ring"]

[dependencies.blake3]
version = "1"

[dependencies.bytesize]
version = "2"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.crossterm]
version = "0.29"

[dependencies.dirs]
version = "6"

[dependencies.filetime]
version = "0.2"

[dependencies.futures]
version = "0.3"

[dependencies.glob]
version = "0.3"

[dependencies.guppy]
version = "0.17"

[dependencies.interprocess]
version = "2.4.2"
features = ["tokio"]

[dependencies.kache-core]
version = "0.7.0"
features = ["planning"]
default-features = false

[dependencies.libc]
version = "0.2"

[dependencies.ratatui]
version = "0.30"

[dependencies.regex]
version = "1"
features = [
    "std",
    "perf",
]
default-features = false

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

[dependencies.rusqlite]
version = "0.39"
features = ["bundled"]

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

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.tar]
version = "0.4"

[dependencies.tempfile]
version = "3"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "rt-multi-thread",
    "macros",
    "process",
    "fs",
    "io-util",
    "net",
    "time",
    "signal",
    "sync",
]

[dependencies.toml]
version = "1"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
    "registry",
]

[dependencies.unicode-normalization]
version = "0.1"

[dependencies.zstd]
version = "0.13"

[dev-dependencies.assert_cmd]
version = "2"

[dev-dependencies.aws-smithy-http-client]
version = "1"
features = [
    "test-util",
    "wire-mock",
]

[dev-dependencies.bytes]
version = "1"

[dev-dependencies.predicates]
version = "3"

[dev-dependencies.serde_json]
version = "1"

[target."cfg(windows)".dependencies.blake3]
version = "1"
features = ["pure"]

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
    "Win32_Foundation",
    "Win32_System_Threading",
    "Win32_Storage_FileSystem",
]

[lints.clippy]
permissions_set_readonly_false = "allow"
too_many_arguments = "allow"

[lints.rust]
warnings = "deny"

[profile.release]
lto = "fat"
codegen-units = 1
strip = "symbols"
