summaryrefslogtreecommitdiff
path: root/crates/arti-client/Cargo.toml
blob: f188e2e49919c6d2275bf113a021c16f3753ff89 (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
[package]
name = "arti-client"
version = "0.5.0"
authors = ["The Tor Project, Inc.", "Nick Mathewson <[email protected]>"]
edition = "2021"
rust-version = "1.56"
license = "MIT OR Apache-2.0"
homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home"
description = "Library for connecting to the Tor network as an anonymous client"
keywords = ["tor", "arti", "privacy", "anonymity", "networking"]
categories = ["network-programming", "cryptography"]
repository = "https://gitlab.torproject.org/tpo/core/arti.git/"

[features]
default = ["tokio", "native-tls"]
# "full" is a top-level selector that turns on every feature, _EXCEPT FOR_:
#   * Features that are experimental or unstable
#   * Features that are testing-only
#   * Features which are select a particular implementation or build flag and
#     which therefore are not strictly additive.
#   * Features which may introduce unnecessary licensing restrictions.
full = ["tokio", "async-std", "native-tls", "tor-rtcompat/full", "tor-proto/full", "tor-netdoc/full", "tor-dirmgr/full"]

async-std = ["tor-rtcompat/async-std"]
tokio = ["tor-rtcompat/tokio", "tor-proto/tokio"]
native-tls = ["tor-rtcompat/native-tls"]
rustls = ["tor-rtcompat/rustls"]

static = ["static-sqlite", "static-native-tls"]
static-sqlite = ["tor-dirmgr/static"]
static-native-tls = ["tor-rtcompat/static", "native-tls"]

accel-sha1-asm = ["tor-llcrypto/with-sha1-asm"]
accel-openssl = ["tor-llcrypto/with-openssl"]

# 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 = [
    "dirfilter",
    "experimental-api",
    "error_detail",
    "tor-proto/experimental",
    "tor-cell/experimental",
    "tor-checkable/experimental",
    "tor-netdoc/experimental",
    "tor-dirmgr/experimental",
    "tor-circmgr/experimental",
]
experimental-api = []
dirfilter = ["tor-dirmgr/dirfilter"]
error_detail = []

[dependencies]
derive_builder = { version = "0.11.2", package = "derive_builder_fork_arti" }
derive_more = "0.99"
directories = "4"
educe = "0.4.6"
fs-mistrust = { path = "../fs-mistrust", version = "0.4.0", features = ["serde"] }
futures = "0.3.14"
humantime-serde = "1.1.1"
pin-project = "1"
postage = { version = "0.5.0", default-features = false, features = ["futures-traits"] }
safelog = { path = "../safelog", version = "0.1.0" }
serde = { version = "1.0.103", features = ["derive"] }
thiserror = "1"
tor-basic-utils = { path = "../tor-basic-utils", version = "0.3.3" }
tor-cell = { path = "../tor-cell", version = "0.5.0" }
tor-chanmgr = { path = "../tor-chanmgr", version = "0.5.0" }
tor-checkable = { path = "../tor-checkable", version = "0.3.0" }
tor-circmgr = { path = "../tor-circmgr", version = "0.4.0" }
tor-config = { path = "../tor-config", version = "0.5.0" }
tor-dirmgr = { path = "../tor-dirmgr", version = "0.6.0" }
tor-error = { path = "../tor-error", version = "0.3.2" }
tor-guardmgr = { path = "../tor-guardmgr", version = "0.5.0" }
tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.3" }
tor-netdir = { path = "../tor-netdir", version = "0.5.0" }
tor-netdoc = { path = "../tor-netdoc", version = "0.5.0" }
tor-persist = { path = "../tor-persist", version = "0.5.0" }
tor-proto = { path = "../tor-proto", version = "0.5.0" }
tor-rtcompat = { path = "../tor-rtcompat", version = "0.5.0" }
tracing = "0.1.18"

[dev-dependencies]
anyhow = "1.0.23"
once_cell = "1.9"
pin-project = "1"
tempfile = "3.3"
tokio-crate = { package = "tokio", version = "1.7", features = [
    "rt",
    "rt-multi-thread",
    "io-util",
    "net",
    "time",
    "macros",
] }
tokio-util = { version = "0.7.0", features = ["compat"] }
tor-rtcompat = { path = "../tor-rtcompat", version = "0.5.0", features = ["tokio", "native-tls"] }
tracing-subscriber = "0.3.0"