aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-units/Cargo.toml
blob: 7aa51b0945303e8ce920a93f0a26ac05f02a2c6e (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
[package]
name = "tor-units"
version = "0.45.0"
authors = ["Dennis 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 = "Provides macros for types which are constrained within a range, ensuring invalid values are unrepresentable."
keywords = ["tor", "arti"]
repository = "https://gitlab.torproject.org/tpo/core/arti.git/"
categories = ["rust-patterns"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
derive-deftly = { version = "~1.11.4", optional = true }
derive_more = { version = "2.0.1", features = ["full"] }
serde = { version = "1.0.103", features = ["derive"] }
thiserror = "2"
tor-memquota = { version = "0.45.0", path = "../tor-memquota", default-features = false, optional = true }

[dev-dependencies]
float-cmp = "0.10.0"

[features]
full = ["memquota-memcost", "tor-memquota?/full"]
memquota-memcost = ["derive-deftly", "tor-memquota"]

# [derive_more]
# default-features = false
# features = ["from"]
[package.metadata.docs.rs]
all-features = true