summaryrefslogtreecommitdiff
path: root/crates/tor-guardmgr/Cargo.toml
blob: 28fe5017a7b56c54edd2a87fa8402d5cd49a57b3 (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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[package]
name = "tor-guardmgr"
version = "0.38.0"
authors = ["The Tor Project, Inc.", "Nick Mathewson <[email protected]>"]
edition = "2024"
rust-version = "1.86"
license = "MIT OR Apache-2.0"
homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home"
description = "Manage a set of guard relays for Tor network"
keywords = ["tor", "arti", "async"]
categories = ["network-programming", "cryptography"]
repository = "https://gitlab.torproject.org/tpo/core/arti.git/"

[features]
default = []
full = [
    "bridge-client",
    "pt-client",
    "vanguards",
    "safelog/full",
    "tor-basic-utils/full",
    "tor-config/full",
    "tor-error/full",
    "tor-linkspec/full",
    "tor-llcrypto/full",
    "tor-netdir/full",
    "tor-netdoc/full",
    "tor-persist/full",
    "tor-proto/full",
    "tor-protover?/full",
    "tor-rtcompat/full",
    "tor-units/full",
    "tor-async-utils/full",
    "tor-relay-selection/full",
    "tor-rtmock?/full",
    "oneshot-fused-workaround/full",
    "tor-dircommon/full",
]
experimental = ["testing"]

# Support for using bridges as a client. Note that this is not the same as
# the pt-client feature, since here we are not concerned with
# pluggable transports necessarily.
bridge-client = ["tor-netdoc/routerdesc", "tor-protover"]
# Support for pluggable transports.
pt-client = ["bridge-client", "tor-linkspec/pt-client"]
# Vanguards support
vanguards = ["tor-relay-selection/vanguards"]

# Enable testing-only APIs.  APIs under this feature are not
# covered by semver.
testing = [
    "tor-netdir/testing",
    "tor-persist/testing",
    "tor-rtmock",
    "__is_experimental",
]

__is_experimental = []

[dependencies]
amplify = { version = "4", default-features = false, features = ["derive"] }
base64ct = "1.5.1"
derive-deftly = { version = "~1.6.0", features = ["full", "beta"] }
derive_builder = { version = "0.11", package = "derive_builder_fork_arti" }
derive_more = { version = "2.0.1", features = ["full"] }
dyn-clone = "1.0.4"
educe = "0.4.22"
futures = "0.3.14"
humantime = "2"
humantime-serde = "1.1.1"
itertools = "0.14.0"
num_enum = "0.7"
oneshot-fused-workaround = { path = "../oneshot-fused-workaround", version = "0.5.0" }
pin-project = "1"
postage = { version = "0.5.0", default-features = false, features = ["futures-traits"] }
rand = "0.9.1"
safelog = { path = "../safelog", version = "0.7.0" }
serde = { version = "1.0.103", features = ["derive"] }
strum = { version = "0.27.1", features = ["derive"] }
thiserror = "2"
tor-async-utils = { version = "0.38.0", path = "../tor-async-utils" }
tor-basic-utils = { path = "../tor-basic-utils", version = "0.38.0" }
tor-config = { path = "../tor-config", version = "0.38.0" }
tor-dircommon = { path = "../tor-dircommon", version = "0.38.0" }
tor-error = { path = "../tor-error", version = "0.38.0" }
tor-linkspec = { path = "../tor-linkspec", version = "0.38.0" }
tor-llcrypto = { path = "../tor-llcrypto", version = "0.38.0" }
tor-netdir = { path = "../tor-netdir", version = "0.38.0" }
tor-netdoc = { path = "../tor-netdoc", version = "0.38.0" }                              # for address pattern
tor-persist = { path = "../tor-persist", version = "0.38.0" }
tor-proto = { path = "../tor-proto", version = "0.38.0" }
tor-protover = { path = "../tor-protover", version = "0.38.0", optional = true }
tor-relay-selection = { path = "../tor-relay-selection", version = "0.38.0" }
tor-rtcompat = { path = "../tor-rtcompat", version = "0.38.0" }
tor-rtmock = { path = "../tor-rtmock", version = "0.38.0", optional = true }
tor-units = { path = "../tor-units", version = "0.38.0" }
tracing = "0.1.36"

[dev-dependencies]
float_eq = "1.0.0"
fs-mistrust = { path = "../fs-mistrust", version = "0.13.1" }
serde_json = "1.0.50"
tempfile = "3"
toml = "0.9.5"
tor-netdir = { path = "../tor-netdir", version = "0.38.0", features = ["testing"] }
tor-netdoc = { path = "../tor-netdoc", version = "0.38.0" }
tor-persist = { path = "../tor-persist", version = "0.38.0", features = ["testing"] }
tor-rtcompat = { path = "../tor-rtcompat", version = "0.38.0", features = ["tokio", "native-tls"] }
tor-rtmock = { path = "../tor-rtmock", version = "0.38.0" }

[package.metadata.docs.rs]
all-features = true