summaryrefslogtreecommitdiff
path: root/crates/tor-rtcompat/Cargo.toml
blob: 2c235fa39b22595d1ff1009414d537fe03f44767 (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
[package]
name = "tor-rtcompat"
version = "0.22.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 = "Compatibility layer for asynchronous runtimes, used by Tor"
keywords = ["tor", "arti", "async"]
categories = ["asynchronous"]
repository = "https://gitlab.torproject.org/tpo/core/arti.git/"

[features]

default = []
full = ["async-std", "tokio", "native-tls", "tor-error/full"]

async-std = ["async-std-crate", "async-io", "async_executors/async_std"]
tokio = [
    "tokio-crate",
    "tokio-util",
    "async_executors/tokio_tp",
    "async_executors/tokio_timer",
    "async_executors/tokio_io",
]
static = ["native-tls-crate?/vendored", "__is_nonadditive"]
native-tls = ["native-tls-crate", "async-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 = ["futures-rustls", "rustls-pki-types", "x509-signature", "__is_nonadditive"]

__is_nonadditive = []

[dependencies]
async-io = { version = "2.2.1", optional = true }
async-native-tls = { version = "0.5.0", optional = true }
async-std-crate = { package = "async-std", version = "1.7.0", optional = true }
async-trait = "0.1.54"
async_executors = { version = "0.7.0", default-features = false }
coarsetime = "0.1.20"
derive_more = { version = "1.0.0", features = ["full"] }
educe = "0.4.6"
futures = "0.3.14"
futures-rustls = { version = "0.26.0", optional = true, default-features = false, features = [
    "tls12",
    "logging",
    "ring",
] }
native-tls-crate = { package = "native-tls", version = "0.2", optional = true }
paste = "1"
pin-project = "1"
rustls-pki-types = { version = "1", optional = true }
thiserror = "1"
tokio-crate = { package = "tokio", version = "1.7", optional = true, features = [
    "rt",
    "rt-multi-thread",
    "io-util",
    "net",
    "time",
] }
tokio-util = { version = "0.7.0", features = ["compat"], optional = true }
tor-error = { version = "0.22.0", path = "../tor-error" }
tracing = "0.1.36"
void = "1"
x509-signature = { version = "0.5.0", optional = true }

[dev-dependencies]
# Used for testing our TLS implementation.
native-tls-crate = { package = "native-tls", version = "0.2" }
[package.metadata.docs.rs]
all-features = true