-
Notifications
You must be signed in to change notification settings - Fork 124
/
Copy pathCargo.toml
59 lines (52 loc) · 2.12 KB
/
Cargo.toml
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
[package]
name = "s2n-quic-qns"
# this in an unpublished internal crate so the version should not be changed
version = "0.1.0"
authors = ["AWS s2n"]
edition = "2021"
rust-version = "1.71"
license = "Apache-2.0"
publish = false
[features]
default = []
trace = ["s2n-quic-core/branch-tracing", "s2n-quic-core/probe-tracing", "s2n-quic-core/usdt"]
xdp = ["s2n-quic/unstable-provider-io-xdp", "aya", "aya-log"]
[dependencies]
aya = { version = "0.13", optional = true }
aya-log = { version = "0.2.1", optional = true }
bytes = { version = "1", default-features = false }
cfg-if = "1"
futures = "0.3"
http = "1.0"
humansize = "2"
litemap = "=0.7.4" # newer versions require rust 1.81
lru = "0.13"
rand = "0.9"
s2n-codec = { path = "../../common/s2n-codec" }
s2n-quic-core = { path = "../s2n-quic-core", features = ["testing"] }
s2n-quic-h3 = { path = "../s2n-quic-h3" }
structopt = "0.3"
tokio = { version = "1", features = ["full"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
url = "2"
zerofrom = "=0.1.6" # newer versions require rust 1.81
[target.'cfg(unix)'.dependencies]
s2n-quic = { path = "../s2n-quic", features = ["provider-event-console-perf", "provider-event-tracing", "provider-tls-rustls", "provider-tls-s2n"] }
[target.'cfg(not(unix))'.dependencies]
s2n-quic = { path = "../s2n-quic", features = ["provider-event-console-perf", "provider-event-tracing", "provider-tls-rustls"] }
# the mimalloc build is currently broken on android
[target.'cfg(not(target_os = "android"))'.dependencies]
mimalloc = { version = "0.1", default-features = false }
# Use unstable s2n-quic features
# unstable_client_hello and unstable_resumption use s2n-tls, and thus are only enabled for unix platforms
[target.'cfg(all(s2n_internal_dev, unix))'.dependencies]
s2n-quic = { path = "../s2n-quic", features = ["unstable_client_hello", "unstable_resumption"] }
[target.'cfg(s2n_internal_dev)'.dependencies]
s2n-quic = { path = "../s2n-quic", features = ["unstable-provider-packet-interceptor"] }
[lints.rust.unexpected_cfgs]
level = "warn"
check-cfg = [
'cfg(s2n_internal_dev)',
'cfg(feature, values("unstable_client_hello"))',
]