summaryrefslogtreecommitdiff
path: root/crates/tor-dirmgr/Cargo.toml
blob: e20bb33d78316a517a571447ae242e106ff52655 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[package]
name = "tor-dirmgr"
version = "0.9.2"
authors = ["The Tor Project, Inc.", "Nick Mathewson <[email protected]>"]
edition = "2021"
rust-version = "1.60"
license = "MIT OR Apache-2.0"
homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home"
description = "Bootstrap and update an accurate Tor network directory"
keywords = ["tor", "arti", "download", "async"]
categories = ["network-programming", "cryptography"]
repository = "https://gitlab.torproject.org/tpo/core/arti.git/"

[features]
default = ["mmap", "compression"]
full = ["routerdesc", "bridge-client", "default"]
experimental = ["experimental-api", "dirfilter"]
bridge-client = ["tor-circmgr/specific-relay", "tor-guardmgr/bridge-client", "routerdesc"]

mmap = ["memmap2"]
static = ["rusqlite/bundled"]
compression = ["tor-dirclient/xz", "tor-dirclient/zstd"]
# (Incomplete) support for downloading and storing router descriptors
routerdesc = ["tor-dirclient/routerdesc"]
dirfilter = []

# Enable experimental APIs that are not yet officially supported.
#
# These APIs are not covered by semantic versioning.  Using this
# feature voids your "semver warrantee".
experimental-api = []

[dependencies]
async-trait = "0.1.2"
base64ct = "1.5.1"
derive_builder = { version = "0.11.2", package = "derive_builder_fork_arti" }
derive_more = "0.99.3"
digest = "0.10.0"
educe = "0.4.6"
event-listener = "2"
fs-mistrust = { path = "../fs-mistrust", version = "0.6.2" }
fslock = { version = "0.2.0" }
futures = "0.3.14"
hex = "0.4"
humantime = "2"
humantime-serde = "1.1.1"
itertools = "0.10.1"
memmap2 = { version = "0.5.0", optional = true }
once_cell = "1"
paste = "1"
postage = { version = "0.5.0", default-features = false, features = ["futures-traits"] }
rand = "0.8"
retry-error = { path = "../retry-error", version = "0.3.0" }
rusqlite = { version = "0.28.0", features = ["time"] }
safelog = { path = "../safelog", version = "0.2.1" }
scopeguard = "1"
serde = { version = "1.0.103", features = ["derive"] }
signature = "1"
strum = { version = "0.24", features = ["derive"] }
thiserror = "1"
time = { version = "0.3", features = ["formatting", "parsing"] }
tor-basic-utils = { path = "../tor-basic-utils", version = "0.5.0" }
tor-checkable = { path = "../tor-checkable", version = "0.4.2" }
tor-circmgr = { path = "../tor-circmgr", version = "0.7.2" }
tor-config = { path = "../tor-config", version = "0.7.2" }
tor-consdiff = { path = "../tor-consdiff", version = "0.4.2" }
tor-dirclient = { path = "../tor-dirclient", version = "0.6.2", default-features = false }
tor-error = { path = "../tor-error", version = "0.4.1" }
tor-guardmgr = { path = "../tor-guardmgr", version = "0.8.2" }
tor-llcrypto = { path = "../tor-llcrypto", version = "0.4.2" }
tor-netdir = { path = "../tor-netdir", version = "0.8.0" }
tor-netdoc = { path = "../tor-netdoc", version = "0.6.2" }
tor-proto = { path = "../tor-proto", version = "0.9.0" }
tor-rtcompat = { path = "../tor-rtcompat", version = "0.8.1" }
tracing = "0.1.18"

[dev-dependencies]
anyhow = "1.0.23"
float_eq = "1.0.0"
hex-literal = "0.3"
tempfile = "3"
tokio = { version = "1.7", features = ["full"] }
tor-linkspec = { path = "../tor-linkspec", version = "0.6.2" }
tor-rtcompat = { path = "../tor-rtcompat", version = "0.8.1", features = ["tokio", "native-tls"] }
tor-rtmock = { path = "../tor-rtmock", version = "0.7.0" }
tracing-test = "0.2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]