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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
[package]
name = "tor-dirmgr"
version = "0.43.0"
authors = ["The Tor Project, Inc.", "Nick Mathewson <[email protected]>"]
edition = "2024"
rust-version = "1.89"
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/"
[package.metadata.docs.rs]
all-features = true
[features]
default = ["mmap", "compression"]
full = [
"routerdesc",
"bridge-client",
"default",
"fs-mistrust/full",
"safelog/full",
"tor-basic-utils/full",
"tor-checkable/full",
"tor-circmgr/full",
"tor-config/full",
"tor-consdiff/full",
"tor-dirclient/full",
"tor-error/full",
"tor-guardmgr/full",
"tor-llcrypto/full",
"tor-netdir/full",
"tor-netdoc/full",
"tor-proto/full",
"tor-rtcompat/full",
"tor-geoip?/full",
"tor-async-utils/full",
"tor-persist/full",
"oneshot-fused-workaround/full",
"tor-protover/full",
"tor-dircommon/full",
"web-time-compat/full",
"fslock-guard/full",
]
experimental = ["experimental-api", "dirfilter", "geoip"]
bridge-client = ["tor-circmgr/specific-relay", "tor-guardmgr/bridge-client", "routerdesc"]
mmap = ["memmap2"]
static = ["rusqlite/bundled", "__is_nonadditive"]
compression = ["tor-dirclient/xz", "tor-dirclient/zstd"]
# (Incomplete) support for downloading and storing router descriptors
routerdesc = ["tor-dirclient/routerdesc"]
dirfilter = ["__is_experimental"]
geoip = ["tor-netdir/geoip", "tor-geoip", "__is_experimental"]
# 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 = ["__is_experimental"]
__is_nonadditive = []
__is_experimental = []
[dependencies]
async-trait = "0.1.54"
base64ct = "1.5.1"
derive_builder = { version = "0.11.2", package = "derive_builder_fork_arti" }
derive_more = { version = "2.0.1", features = ["full"] }
digest = "0.10.0"
educe = "0.4.22"
event-listener = "5"
fs-mistrust = { path = "../fs-mistrust", version = "0.14.2" }
fslock-guard = { path = "../fslock-guard", version = "0.7.0" }
futures = "0.3.14"
hex = "0.4"
humantime = "2"
humantime-serde = "1.1.1"
itertools = "0.14.0"
memmap2 = { version = "0.9.0", optional = true }
oneshot-fused-workaround = { path = "../oneshot-fused-workaround", version = "0.6.0" }
paste = "1.0.3"
postage = { version = "0.5.0", default-features = false, features = ["futures-traits"] }
rand = "0.10.1"
# NOTE: Indirectly relax `libsqlite3-sys` version to a range because only one version can appear in a dependent
# project's tree due to linking the native SQLite 3 library. This gives Cargo a wider set of compatible versions to
# choose from for projects that directly or indirectly require different `libsqlite3-sys` versions.
# When updating the minimum, consult the Arti Team before merging.
rusqlite = { version = ">=0.36.0, <0.40.0", features = ["time"] }
safelog = { path = "../safelog", version = "0.8.2" }
scopeguard = "1"
serde = { version = "1.0.103", features = ["derive"] }
serde_json = "1.0.50"
signature = "2"
static_assertions = "1"
strum = { version = "0.28.0", features = ["derive"] }
thiserror = "2"
time = { version = "0.3.47", features = ["formatting", "parsing"] }
tor-async-utils = { version = "0.43.0", path = "../tor-async-utils" }
tor-basic-utils = { path = "../tor-basic-utils", version = "0.43.0" }
tor-checkable = { path = "../tor-checkable", version = "0.43.0" }
tor-circmgr = { path = "../tor-circmgr", version = "0.43.0" }
tor-config = { path = "../tor-config", version = "0.43.0" }
tor-consdiff = { path = "../tor-consdiff", version = "0.43.0" }
tor-dirclient = { path = "../tor-dirclient", version = "0.43.0", default-features = false }
tor-dircommon = { path = "../tor-dircommon", version = "0.43.0" }
tor-error = { path = "../tor-error", version = "0.43.0", features = ["tracing"] }
tor-geoip = { path = "../tor-geoip", version = "0.43.0", optional = true }
tor-guardmgr = { path = "../tor-guardmgr", version = "0.43.0" }
tor-llcrypto = { path = "../tor-llcrypto", version = "0.43.0" }
tor-netdir = { path = "../tor-netdir", version = "0.43.0" }
tor-netdoc = { path = "../tor-netdoc", version = "0.43.0" }
tor-persist = { path = "../tor-persist", version = "0.43.0" }
tor-proto = { path = "../tor-proto", version = "0.43.0" }
tor-protover = { path = "../tor-protover", version = "0.43.0", features = ["serde"] }
tor-rtcompat = { path = "../tor-rtcompat", version = "0.43.0" }
tracing = "0.1.36"
void = "1"
web-time-compat = { path = "../web-time-compat", version = "0.1.0" }
[dev-dependencies]
anyhow = "1.0.23"
filetime = "0.2"
float_eq = "1.0.0"
hex-literal = "1.0"
tempfile = "3"
tor-linkspec = { path = "../tor-linkspec", version = "0.43.0" }
tor-rtcompat = { path = "../tor-rtcompat", version = "0.43.0", features = ["tokio", "native-tls"] }
tor-rtmock = { path = "../tor-rtmock", version = "0.43.0" }
tracing-test = "0.2.4"
|