1[package]
2name = "mini-moka"
3version = "0.10.99"
4edition = "2018"
5rust-version = "1.76"
6publish = false
7description = "A lighter edition of Moka, a fast and concurrent cache library"
8license = "MIT OR Apache-2.0"
9# homepage = "https://"
10documentation = "https://docs.rs/mini-moka/"
11repository = "https://github.com/moka-rs/mini-moka"
12keywords = ["cache", "concurrent"]
13categories = ["caching", "concurrency"]
14readme = "README.md"
15exclude = [".circleci", ".devcontainer", ".github", ".gitpod.yml", ".vscode"]
16
17[features]
18default = ["sync"]
19js = ["dep:web-time"]
20
21sync = ["dashmap"]
22
23[dependencies]
24crossbeam-channel = "0.5.5"
25crossbeam-utils = "0.8"
26smallvec = "1.8"
27tagptr = "0.2"
28web-time = { version = "1.1.0", optional = true }
29
30# Opt-out serde and stable_deref_trait features
31# https://github.com/Manishearth/triomphe/pull/5
32triomphe = { version = "0.1.13", default-features = false }
33
34# Optional dependencies (enabled by default)
35dashmap = { version = "6.1", optional = true }
36
37[dev-dependencies]
38anyhow = "1.0.19"
39getrandom = "0.2"
40once_cell = "1.7"
41wasm-bindgen-test = "0.3.50"
42
43[target.wasm32-unknown-unknown.dev-dependencies]
44getrandom = { version="0.2", features = ["js"] }
45
46[target.'cfg(trybuild)'.dev-dependencies]
47trybuild = "1.0"
48
49# https://docs.rs/about/metadata
50[package.metadata.docs.rs]
51# Build the doc with some features enabled.
52features = []
53rustdoc-args = ["--cfg", "docsrs"]
54
55[lints.rust]
56unexpected_cfgs = { level = "warn", check-cfg = [
57 "cfg(kani)",
58 "cfg(skeptic)",
59 "cfg(circleci)",
60 "cfg(trybuild)",
61 "cfg(beta_clippy)",
62] }