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
|
[package]
name = "tor-proto"
version = "0.27.0"
authors = ["The Tor Project, Inc.", "Nick Mathewson <[email protected]>"]
edition = "2021"
rust-version = "1.77"
license = "MIT OR Apache-2.0"
homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home"
description = "Asynchronous client-side implementation of the central Tor network protocols"
keywords = ["tor", "arti", "networking", "anonymity"]
categories = ["network-programming", "cryptography"]
repository = "https://gitlab.torproject.org/tpo/core/arti.git/"
[features]
default = []
full = [
"hs-client",
"hs-service",
"tokio",
"send-control-msg",
"safelog/full",
"tor-async-utils/full",
"tor-basic-utils/full",
"tor-bytes/full",
"tor-cell/full",
"tor-cert/full",
"tor-checkable/full",
"tor-config/full",
"tor-error/full",
"tor-linkspec/full",
"tor-llcrypto/full",
"tor-rtcompat/full",
"tor-rtmock/full",
"tor-units/full",
"tor-hscrypto?/full",
"tor-log-ratelim/full",
"oneshot-fused-workaround/full",
"tor-memquota/full",
"slotmap-careful/full",
"caret/full",
]
experimental = ["experimental-api", "ntor_v3", "stream-ctrl", "testing", "bench"]
ntor_v3 = ["__is_experimental"]
hs-client = ["hs-common"]
hs-service = ["hs-common"]
hs-common = ["tor-hscrypto"]
experimental-api = ["__is_experimental"]
# start_conversation etc.; TODO HS should be renamed
send-control-msg = ["visibility"]
stream-ctrl = ["__is_experimental"]
# Enable testing-only APIs. APIs under this feature are not
# covered by semver.
testing = ["__is_experimental"]
tokio = ["tokio-crate", "tokio-util"]
bench = ["__is_experimental"]
__is_experimental = []
[dependencies]
amplify = { version = "4", default-features = false, features = ["derive"] }
asynchronous-codec = "0.7.0"
bitvec = "1.0.1"
bytes = "1"
caret = { path = "../caret", version = "0.5.0" }
cipher = { version = "0.4.1", features = ["zeroize"] }
coarsetime = "0.1.20"
derive-deftly = "0.14.2"
derive_builder = { version = "0.11.2", package = "derive_builder_fork_arti" }
derive_more = { version = "1.0.0", features = ["full"] }
digest = "0.10.0"
educe = "0.4.6"
futures = "0.3.14"
hkdf = "0.12.0"
hmac = "0.12.0"
oneshot-fused-workaround = { path = "../oneshot-fused-workaround", version = "0.2.0" }
pin-project = "1"
rand = "0.8"
rand_core = "0.6.2"
safelog = { path = "../safelog", version = "0.4.2" }
slotmap-careful = { path = "../slotmap-careful", version = "0.2.1" }
subtle = "2"
thiserror = "2"
tokio-crate = { package = "tokio", version = "1.7", optional = true }
tokio-util = { version = "0.7.0", features = ["compat"], optional = true }
tor-async-utils = { path = "../tor-async-utils", version = "0.27.0" }
tor-basic-utils = { path = "../tor-basic-utils", version = "0.27.0" }
tor-bytes = { path = "../tor-bytes", version = "0.27.0" }
tor-cell = { path = "../tor-cell", version = "0.27.0" }
tor-cert = { path = "../tor-cert", version = "0.27.0" }
tor-checkable = { path = "../tor-checkable", version = "0.27.0" }
tor-config = { path = "../tor-config", version = "0.27.0" }
tor-error = { path = "../tor-error", version = "0.27.0" }
tor-hscrypto = { path = "../tor-hscrypto", version = "0.27.0", features = ["memquota-memcost"], optional = true }
tor-linkspec = { path = "../tor-linkspec", version = "0.27.0" }
tor-llcrypto = { path = "../tor-llcrypto", version = "0.27.0", features = ["memquota-memcost"] }
tor-log-ratelim = { path = "../tor-log-ratelim", version = "0.27.0" }
tor-memquota = { version = "0.27.0", path = "../tor-memquota", default-features = false }
tor-rtcompat = { path = "../tor-rtcompat", version = "0.27.0" }
tor-rtmock = { path = "../tor-rtmock", version = "0.27.0" }
tor-units = { path = "../tor-units", version = "0.27.0", features = ["memquota-memcost"] }
tracing = "0.1.36"
typenum = "1.12"
visibility = { version = "0.1.0", optional = true }
void = "1"
zeroize = "1"
[dev-dependencies]
cpu-time = "1.0.0"
criterion = "0.5.1"
hex = "0.4"
hex-literal = "0.4"
humantime = "2"
itertools = "0.14.0"
regex = { version = "1", default-features = false, features = ["std"] }
statrs = "0.18.0"
tokio-crate = { package = "tokio", version = "1.7", features = ["full"] }
tor-rtcompat = { path = "../tor-rtcompat", version = "0.27.0", features = ["tokio", "native-tls"] }
tracing-test = "0.2.4"
[package.metadata.docs.rs]
all-features = true
[[bench]]
name = "cell_decrypt"
harness = false
required-features = ["bench"]
[[bench]]
name = "cell_encrypt"
harness = false
required-features = ["bench"]
[[bench]]
name = "cell_is_recognized"
harness = false
required-features = ["bench"]
[[bench]]
name = "cell_set_digest"
harness = false
required-features = ["bench"]
|