[package]
edition = "2024"
rust-version = "1.87"
name = "iqdb-cache"
version = "1.0.0"
authors = [
"James Gober <me@jamesgober.com>",
"Matt Callahan <matthewcallahan01@icloud.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "In-process vector and result caching with LRU/LFU/ARC eviction - part of the iQDB family."
homepage = "https://github.com/jamesgober/iqdb-cache"
documentation = "https://docs.rs/iqdb-cache"
readme = "README.md"
keywords = [
"cache",
"vector-database",
"eviction",
"lru",
"iqdb",
]
categories = [
"caching",
"data-structures",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/iqdb-cache"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = []
serde = ["dep:serde"]
[lib]
name = "iqdb_cache"
path = "src/lib.rs"
[[example]]
name = "policies"
path = "examples/policies.rs"
[[example]]
name = "quickstart"
path = "examples/quickstart.rs"
[[example]]
name = "tuning"
path = "examples/tuning.rs"
[[test]]
name = "concurrency"
path = "tests/concurrency.rs"
[[test]]
name = "config"
path = "tests/config.rs"
[[test]]
name = "consumer_simulation"
path = "tests/consumer_simulation.rs"
[[test]]
name = "loom_iqdb_cache"
path = "tests/loom_iqdb_cache.rs"
[[test]]
name = "policies"
path = "tests/policies.rs"
[[test]]
name = "transparency"
path = "tests/transparency.rs"
[[bench]]
name = "cache_bench"
path = "benches/cache_bench.rs"
harness = false
[dependencies.clock-lib]
version = "1.0.0"
[dependencies.iqdb-index]
version = "1.0.0"
[dependencies.iqdb-types]
version = "1.0.0"
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
default-features = false
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.proptest]
version = "1"
[target."cfg(loom)".dependencies.loom]
version = "0.7"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(loom)",
"cfg(docsrs)",
]
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"