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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
|
[package]
name = "arti"
version = "1.2.7"
authors = ["The Tor Project, Inc.", "Nick Mathewson <[email protected]>"]
edition = "2021"
rust-version = "1.70"
license = "MIT OR Apache-2.0"
homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home"
description = "A rust implementation of the Tor privacy tools."
keywords = ["tor", "arti", "privacy", "anonymity"]
categories = ["command-line-utilities", "cryptography"]
repository = "https://gitlab.torproject.org/tpo/core/arti.git/"
#
# We need a runtime
# @@ test-all-crates ignore
[features]
default = [
"tokio",
"native-tls",
"dns-proxy",
"harden",
"compression",
"bridge-client",
"pt-client",
"onion-service-client",
"vanguards",
]
full = [
"onion-service-client",
"onion-service-service",
"vanguards",
"async-std",
"tokio",
"native-tls",
"journald",
"arti-client/full",
"dns-proxy",
"harden",
"compression",
"bridge-client",
"pt-client",
"arti-rpcserver?/full",
"fs-mistrust/full",
"safelog/full",
"tor-config/full",
"tor-error/full",
"tor-rtcompat/full",
"tor-socksproto/full",
"tor-rpcbase?/full",
"tor-hsrproxy?/full",
"tor-hsservice?/full",
"arti-relay?/full",
"tor-async-utils/full",
]
async-std = ["arti-client/async-std", "tor-rtcompat/async-std", "async-ctrlc", "signal-hook", "signal-hook-async-std"]
bridge-client = ["arti-client/bridge-client"]
dns-proxy = ["hickory-proto"]
experimental-api = ["arti-client/experimental-api", "visibility", "__is_experimental"]
harden = ["secmem-proc"]
keymgr = ["arti-client/keymgr", "__is_experimental"]
tokio = ["tokio-crate", "arti-client/tokio", "tor-rtcompat/tokio", "tokio-util"]
native-tls = ["arti-client/native-tls", "tor-rtcompat/native-tls"]
onion-service-client = ["arti-client/onion-service-client"]
onion-service-service = ["arti-client/onion-service-service", "tor-hsrproxy", "tor-hsservice"]
vanguards = ["arti-client/vanguards"]
pt-client = ["bridge-client", "arti-client/pt-client"]
relay = ["arti-relay", "__is_experimental"]
# This is not nonadditive from a software POV, but we mark it as such because it
# includes code licensed under the old OpenSSL license (which was 4-clause BSD),
# which in turn introduces a GPL-incompatibility.
rustls = ["arti-client/rustls", "tor-rtcompat/rustls", "rustls-crate", "__is_nonadditive"]
# depends directly on arti-client/static so native-tls doesn't get automatically included
static = ["arti-client/static", "__is_nonadditive"]
static-sqlite = ["arti-client/static-sqlite", "__is_nonadditive"]
static-native-tls = ["arti-client/static-native-tls", "native-tls", "__is_nonadditive"]
journald = ["tracing-journald"]
accel-sha1-asm = ["arti-client/accel-sha1-asm", "__is_nonadditive"]
accel-openssl = ["arti-client/accel-openssl", "__is_nonadditive"]
__is_nonadditive = []
compression = ["arti-client/compression"]
# This feature flag enables experimental features that are not supported. Turning it on may
# void your API.
experimental = [
"arti-client/experimental",
"tor-hsservice/experimental",
"experimental-api",
"rpc",
"relay",
"keymgr",
"restricted-discovery",
]
rpc = ["arti-rpcserver", "tor-rpcbase", "derive-deftly", "__is_experimental"]
restricted-discovery = ["tor-hsservice/restricted-discovery", "__is_experimental"]
__is_experimental = []
[dependencies]
anyhow = "1.0.23"
arti-client = { package = "arti-client", path = "../arti-client", version = "0.22.0", default-features = false, features = [
"anyhow",
] }
arti-relay = { package = "arti-relay", path = "../arti-relay", version = "0.22.0", default-features = false, optional = true }
arti-rpcserver = { path = "../arti-rpcserver", version = "0.22.0", optional = true }
async-ctrlc = { version = "1.2.0", optional = true }
cfg-if = "1.0.0"
clap = { version = "4.3.24", features = ["string", "wrap_help", "derive"] }
derive_builder = { version = "0.11", package = "derive_builder_fork_arti" }
derive-deftly = { version = "0.14", optional = true }
fs-mistrust = { path = "../fs-mistrust", version = "0.7.9" }
futures = "0.3.14"
hickory-proto = { version = "0.24.0", optional = true }
humantime = "2"
humantime-serde = "1.1.1"
itertools = "0.13.0"
libc = "0.2"
notify = { version = "6.0", default-features = false, features = ["macos_kqueue"] }
paste = "1"
postage = { version = "0.5.0", default-features = false, features = ["futures-traits"] }
rlimit = "0.10.1"
rustls-crate = { package = "rustls", version = "0.23.5", optional = true, default-features = false, features = [
"tls12",
"logging",
"ring",
] }
safelog = { path = "../safelog", version = "0.3.6" }
secmem-proc = { version = "0.3.0", optional = true }
serde = { version = "1.0.103", features = ["derive"] }
signal-hook = { version = "0.3", optional = true }
signal-hook-async-std = { version = "0.2", optional = true }
thiserror = "1"
time = "0.3.18"
tokio-crate = { package = "tokio", version = "1.7", optional = true, features = ["signal"] }
tokio-util = { version = "0.7.0", features = ["compat"], optional = true }
toml = "0.8.8"
tor-async-utils = { path = "../tor-async-utils", version = "0.22.0" }
tor-config = { path = "../tor-config", version = "0.22.0" }
tor-error = { path = "../tor-error", version = "0.22.0", default-features = false, features = ["tracing"] }
tor-hsrproxy = { path = "../tor-hsrproxy", version = "0.22.0", optional = true }
tor-hsservice = { path = "../tor-hsservice", version = "0.22.0", optional = true }
tor-rpcbase = { path = "../tor-rpcbase", version = "0.22.0", optional = true }
tor-rtcompat = { path = "../tor-rtcompat", version = "0.22.0", default-features = false }
tor-socksproto = { path = "../tor-socksproto", version = "0.22.0" }
tracing = "0.1.36"
tracing-appender = "0.2.0"
tracing-journald = { version = "0.3.0", optional = true }
tracing-subscriber = { version = "0.3.0", features = ["env-filter"] }
visibility = { version = "0.1.0", optional = true }
[dev-dependencies]
derive_more = "0.99.3"
itertools = "0.13.0"
postage = { version = "0.5.0", default-features = false, features = ["futures-traits"] }
regex = { version = "1", default-features = false, features = ["std"] }
serde_json = "1.0.50"
tempfile = "3"
test-temp-dir = { version = "0.2.1", path = "../test-temp-dir" }
tor-async-utils = { version = "0.22.0", path = "../tor-async-utils" }
tor-rtmock = { path = "../tor-rtmock", version = "0.22.0" }
trycmd = "0.15.4"
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3.8", features = ["winerror"] }
[package.metadata.docs.rs]
all-features = true
|