-
Notifications
You must be signed in to change notification settings - Fork 124
/
Copy pathCargo.toml
67 lines (61 loc) · 2.35 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
60
61
62
63
64
65
66
67
[package]
name = "s2n-quic-platform"
version = "0.54.0"
description = "Internal crate used by s2n-quic"
repository = "https://github.com/aws/s2n-quic"
authors = ["AWS s2n"]
edition = "2021"
rust-version = "1.71"
license = "Apache-2.0"
# Exclude corpus files when publishing to crates.io
exclude = ["corpus.tar.gz"]
[features]
default = ["std", "tokio-runtime"]
std = ["s2n-quic-core/std", "socket2", "lazy_static"]
testing = ["std", "generator", "futures/std", "io-testing"] # Testing allows to overwrite the system time
io-testing = ["bach", "tracing"]
generator = ["bolero-generator", "s2n-quic-core/generator"]
tokio-runtime = ["futures", "tokio"]
xdp = ["s2n-quic-xdp"]
[dependencies]
bach = { version = "0.0.6", optional = true }
bolero-generator = { version = "0.13", default-features = false, optional = true }
cfg-if = "1"
futures = { version = "0.3", default-features = false, features = ["async-await"], optional = true }
lazy_static = { version = "1", optional = true }
s2n-quic-core = { version = "=0.54.0", path = "../s2n-quic-core", default-features = false }
s2n-quic-xdp = { version = "=0.54.0", path = "../../tools/xdp/s2n-quic-xdp", optional = true }
socket2 = { version = "0.5", features = ["all"], optional = true }
tokio = { version = "1", default-features = false, features = ["macros", "net", "rt", "time"], optional = true }
tracing = { version = "0.1", optional = true }
turmoil = { version = "0.6.0", optional = true }
[target.'cfg(unix)'.dependencies]
libc = "0.2"
[dev-dependencies]
bach = { version = "0.0.6" }
bolero = "0.13"
bolero-generator = "0.13"
futures = { version = "0.3", features = ["std"] }
insta = { version = "1", features = ["json"] }
s2n-quic-core = { path = "../s2n-quic-core", features = ["testing"] }
tokio = { version = "1", features = ["full"] }
tracing = { version = "0.1" }
[package.metadata.kani]
flags = { tests = true }
unstable = { stubbing = true }
# Remove once MSRV is 1.80.0, see https://github.com/aws/s2n-quic/issues/2334
[lints.rust.unexpected_cfgs]
level = "warn"
check-cfg = [
'cfg(fuzz)',
'cfg(kani)',
'cfg(kani_slow)',
'cfg(s2n_quic_platform_cmsg)',
'cfg(s2n_quic_platform_socket_msg)',
'cfg(s2n_quic_platform_socket_mmsg)',
'cfg(s2n_quic_platform_mtu_disc)',
'cfg(s2n_quic_platform_gso)',
'cfg(s2n_quic_platform_gro)',
'cfg(s2n_quic_platform_pktinfo)',
'cfg(s2n_quic_platform_tos)',
]