# 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 = "expire_cache"
version = "0.1.14"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Efficient double-buffered expiration cache / 高效双缓冲过期缓存"
homepage = "https://github.com/js0-site/rust/tree/main/expire_cache"
readme = "README.md"
keywords = [
    "cache",
    "expire",
    "concurrent",
    "async",
    "buffer",
]
license = "MulanPSL-2.0"
repository = "https://github.com/js0-site/rust.git"
resolver = "2"

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

[features]
dashmap = ["dep:dashmap"]
dashset = ["dep:dashmap"]
default = []
get_or_init = []
get_or_init_async = []

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

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

[dependencies.aok]
version = "0.1.18"

[dependencies.boxleak]
version = "0.1.2"

[dependencies.dashmap]
version = "6.1.0"
optional = true

[dependencies.defer-lite]
version = "1.0.0"

[dependencies.sendptr]
version = "0.1.2"

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

[dev-dependencies.aok]
version = "0.1.18"

[dev-dependencies.log]
version = "0.4.29"

[dev-dependencies.log_init]
version = "0.1.28"

[dev-dependencies.static_init]
version = "1.0.4"
