-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathCargo.toml
More file actions
62 lines (54 loc) · 1.79 KB
/
Cargo.toml
File metadata and controls
62 lines (54 loc) · 1.79 KB
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
[package]
name = "foyer-common"
description = "common components for foyer - Hybrid cache for Rust"
version = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }
repository = { workspace = true }
homepage = { workspace = true }
keywords = { workspace = true }
authors = { workspace = true }
license = { workspace = true }
readme = { workspace = true }
exclude.workspace = true
[package.metadata.cargo-udeps.ignore]
# Only used in benches and with `serde` feature enabled.
development = ["criterion", "serde_bytes"]
[features]
default = ["executor-tokio"]
serde = ["dep:serde", "dep:bincode"]
strict_assertions = []
tracing = ["dep:fastrace"]
executor-tokio = ["dep:tokio", "tokio/rt", "tokio/rt-multi-thread"]
[dependencies]
bincode = { workspace = true, optional = true }
bytes = { workspace = true }
cfg-if = { workspace = true }
fastrace = { workspace = true, optional = true }
futures-core = { workspace = true }
futures-util = { workspace = true }
itertools = { workspace = true }
mixtrics = { workspace = true }
parking_lot = { workspace = true }
pin-project = { workspace = true }
serde = { workspace = true, optional = true }
smol = { workspace = true, optional = true }
thiserror = { workspace = true }
twox-hash = { workspace = true }
[target.'cfg(madsim)'.dependencies]
tokio = { package = "madsim-tokio", version = "0.2", optional = true }
[target.'cfg(not(madsim))'.dependencies]
tokio = { workspace = true, optional = true }
[dev-dependencies]
bytes = { workspace = true, features = ["serde"] }
criterion = { workspace = true }
mixtrics = { workspace = true, features = ["test-utils"] }
paste = { workspace = true }
rand = { workspace = true }
serde = { workspace = true }
serde_bytes = { workspace = true }
[lints]
workspace = true
[[bench]]
name = "bench_serde"
harness = false