summaryrefslogtreecommitdiff
path: root/crates/arti-hyper/Cargo.toml
blob: 0aeb8658cbfd24436a767ce8fc8b65e177bd0c85 (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
[package]
name = "arti-hyper"
version = "0.12.0"
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 = "Adapter for making anonymous http requests using the Tor network and hyper"
keywords = ["tor", "arti", "privacy", "anonymity", "hyper"]
categories = ["network-programming", "cryptography"]
repository = "https://gitlab.torproject.org/tpo/core/arti.git/"

[features]
default = ["native-tls"]

native-tls = ["arti-client/native-tls", "tor-rtcompat/native-tls"]

# 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", "__is_nonadditive"]

static = ["arti-client/static", "__is_nonadditive"]

experimental = ["experimental-api"]
# 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"]
full = ["native-tls", "arti-client/full", "tor-error/full", "tor-rtcompat/full"]

__is_experimental = []
__is_nonadditive = []

[dependencies]
anyhow = "1.0.23"
arti-client = { path = "../arti-client", version = "0.12.0" }
educe = "0.4.6"
hyper = { version = "0.14", features = ["http1", "client", "runtime"] }
pin-project = "1"
thiserror = "1"
tls-api = "0.9.0"
tls-api-native-tls = "0.9.0"
tokio = { package = "tokio", version = "1.7", features = ["rt", "rt-multi-thread", "io-util", "net", "time", "macros"] }
tor-error = { path = "../tor-error", version = "0.5.5" }
tor-rtcompat = { path = "../tor-rtcompat", version = "0.9.6", features = ["tokio"] }

[target.'cfg(target_vendor="apple")'.dev-dependencies]
tls-api-openssl = "0.9.0"

[dev-dependencies]
tracing-subscriber = "0.3.0"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]