priority-lfu 0.1.0

A high-performance, concurrent, in-memory cache with W-TinyLFU eviction policy and weight-based prioritization.
Documentation
# 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"
name = "priority-lfu"
version = "0.1.0"
authors = ["Stu Schwartz <stu.schwartz@surrealdb.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance, concurrent, in-memory cache with W-TinyLFU eviction policy and weight-based prioritization."
homepage = "https://github.com/surrealdb/priority-lfu"
documentation = "https://docs.rs/priority-lfu/"
readme = "README.md"
keywords = [
    "cache",
    "weighted",
    "priority",
    "lfu",
    "eviction",
]
categories = ["caching"]
license = "Apache-2.0"
repository = "https://github.com/surrealdb/priority-lfu"

[features]
default = [
    "bytes",
    "chrono",
    "geo",
    "uuid",
    "regex",
    "rust_decimal",
]
metrics = []

[lib]
name = "priority_lfu"
path = "src/lib.rs"
bench = false

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

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

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

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

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

[[bench]]
name = "cache_benchmark"
path = "benches/cache_benchmark.rs"
harness = false

[dependencies.ahash]
version = "0.8"

[dependencies.arrayvec]
version = "0.7"
optional = true

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

[dependencies.chrono]
version = "0.4"
optional = true

[dependencies.geo]
version = "0.32"
optional = true

[dependencies.hashbrown]
version = "0.16"

[dependencies.indexmap]
version = "2"

[dependencies.parking_lot]
version = "0.12"

[dependencies.priority-lfu-derive]
version = "0.1.0"

[dependencies.regex]
version = "1"
optional = true

[dependencies.rust_decimal]
version = "1"
optional = true

[dependencies.slab]
version = "0.4"
optional = true

[dependencies.slotmap]
version = "1"
optional = true

[dependencies.smallvec]
version = "1"
optional = true

[dependencies.uuid]
version = "1.12"
optional = true

[dev-dependencies.criterion]
version = "0.8"

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

[dev-dependencies.quick_cache]
version = "0.6"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "time",
]

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

[lints.clippy]
allow_attributes = "allow"
assigning_clones = "warn"
bool_assert_comparison = "allow"
cloned_instead_of_copied = "warn"
debug_assert_with_mut_call = "warn"
disallowed_methods = "warn"
explicit_into_iter_loop = "warn"
fallible_impl_from = "warn"
get_unwrap = "warn"
implicit_clone = "warn"
inefficient_to_string = "warn"
large_types_passed_by_value = "warn"
lossy_float_literal = "warn"
option_as_ref_cloned = "warn"
redundant_clone = "warn"
set_contains_or_insert = "warn"
unnecessary_to_owned = "warn"
unused_async = "allow"
unwrap_used = "warn"