-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Cargo.toml
68 lines (61 loc) · 1.85 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[package]
name = "stretto"
version = "0.8.4"
authors = ["Al Liu <[email protected]>"]
description = "Stretto is a high performance thread-safe memory-bound Rust cache."
homepage = "https://github.com/al8n/stretto"
repository = "https://github.com/al8n/stretto.git"
documentation = "https://docs.rs/stretto/"
readme = "README.md"
license = "MIT OR Apache-2.0"
keywords = ["cache", "caching", "concurrent", "tinylfu", "async"]
categories = ["caching", "concurrency", "asynchronous", "data-structures"]
exclude = [
"**/*.json",
"**/*.go",
"**/*.mod",
"**/*.sum",
"benches/*"
]
edition = "2021"
[[example]]
path = "examples/async_example.rs"
name = "async_example"
required-features = ["async"]
edition = "2021"
[[example]]
path = "examples/sync_example.rs"
name = "sync_example"
required-features = ["sync"]
edition = "2021"
[target.'cfg(target_family = "wasm")'.dependencies]
getrandom = { version = "0.2", features = ["js"] }
[features]
default = ["sync"]
full = ["sync", "async", "serde"]
async = ["async-channel", "async-io", "futures/default", "wg/future"]
sync = ["crossbeam-channel"]
serde = ["dep:serde", "dep:serde_json"]
[dependencies]
atomic = "0.6"
async-channel = { version = "2", optional = true }
async-io = { version = "2.3", optional = true }
crossbeam-channel = { version = "0.5", optional = true }
futures = { version = "0.3", optional = true }
parking_lot = "0.12"
rand = "0.8"
serde = { version = "1", optional = true, features = ["derive"] }
serde_json = { version = "1", optional = true }
seahash = "4.1"
wg = "0.9"
thiserror = "1"
tracing = "0.1"
xxhash-rust = { version = "0.8", features = ["xxh64"] }
[dev-dependencies]
serde = {version = "1", features = ["derive"] }
serde_json = "1"
tokio = {version = "1", features = ["full"] }
async-std = { version = "1.12" }
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]