summaryrefslogtreecommitdiff
path: root/crates/tor-memquota/Cargo.toml
blob: 6cf56c0f4b92d62c0234fb1d159ba9c86ad86f3d (plain)
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
69
[package]
name = "tor-memquota"
version = "0.45.0"
authors = ["The Tor Project, Inc.", "Ian Jackson <[email protected]>"]
edition = "2024"
rust-version = "1.91"
license = "MIT OR Apache-2.0"
homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home"
description = "Memory use tracking and quota utilities, used by Tor software"
keywords = ["tor", "arti"]
categories = ["memory-management"]
repository = "https://gitlab.torproject.org/tpo/core/arti.git/"

[dependencies]
cfg-if = "1.0.0"
derive-deftly = { version = "~1.11.4", features = ["full", "beta"] }
derive_more = { version = "2.0.1", features = ["full"] }
dyn-clone = "1.0.17"
educe = "0.4.22"
extend = "1.2.0"
futures = "0.3.14"
itertools = "0.15.0"
paste = "1.0.3"
pin-project = "1"
serde = { version = "1.0.103", features = ["derive"] }
slotmap-careful = { path = "../slotmap-careful", version = "0.8.0" }
static_assertions = "1"
sysinfo = { version = "0.38.3", default-features = false, features = ["system"] }
thiserror = "2"
tor-async-utils = { path = "../tor-async-utils", version = "0.45.0" }
tor-basic-utils = { path = "../tor-basic-utils", version = "0.45.0", features = ["serde"] }
tor-config = { path = "../tor-config", version = "0.45.0" }
tor-error = { path = "../tor-error", version = "0.45.0", features = ["tracing"] }
tor-log-ratelim = { path = "../tor-log-ratelim", version = "0.45.0" }
tor-memquota-cost = { path = "../tor-memquota-cost", version = "0.45.0" }
tor-rtcompat = { version = "0.45.0", path = "../tor-rtcompat" }
tracing = "0.1.36"
visibility = { version = "0.1.0", optional = true }
void = "1"

[dev-dependencies]
rand = "0.10.1"
safelog = { path = "../safelog", version = "0.9.0" }
serde_json = "1.0.50"
tor-basic-utils = { path = "../tor-basic-utils", version = "0.45.0" }
tor-rtcompat = { version = "0.45.0", path = "../tor-rtcompat", features = ["tokio", "native-tls"] }
tor-rtmock = { path = "../tor-rtmock", version = "0.45.0" }
tracing-test = "0.2.4"

[features]
full = [
    "memquota",
    "tor-config/full",
    "tor-error/full",
    "tor-log-ratelim/full",
    "tor-rtcompat/full",
    "tor-async-utils/full",
    "tor-basic-utils/full",
    "tor-memquota-cost/full",
    "slotmap-careful/full",
]
default = ["memquota"]
memquota = ["tor-memquota-cost/memquota"]
testing = ["__is_experimental", "visibility"]
experimental = ["testing"]
__is_experimental = []

[package.metadata.docs.rs]
all-features = true