-
Notifications
You must be signed in to change notification settings - Fork 125
Expand file tree
/
Copy pathCargo.toml
More file actions
98 lines (84 loc) · 2.77 KB
/
Copy pathCargo.toml
File metadata and controls
98 lines (84 loc) · 2.77 KB
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
[package]
name = "compio-quic"
version = "0.8.1"
description = "QUIC for compio"
categories = ["asynchronous", "network-programming"]
keywords = ["async", "net", "quic"]
readme = "README.md"
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
"aarch64-apple-darwin",
]
[dependencies]
# Workspace dependencies
compio-io = { workspace = true, features = ["ancillary", "bytemuck"] }
compio-buf = { workspace = true, features = ["bytes"] }
compio-log = { workspace = true }
compio-net = { workspace = true }
compio-runtime = { workspace = true, features = ["time"] }
quinn-proto = { version = "0.11.13", default-features = false }
rustls = { workspace = true }
rustls-platform-verifier = { workspace = true, optional = true }
rustls-native-certs = { workspace = true, optional = true }
webpki-roots = { workspace = true, optional = true }
h3 = { version = "0.0.8", optional = true }
h3-datagram = { version = "0.0.2", optional = true }
# Utils
flume = { workspace = true, default-features = false, features = ["async"] }
futures-util = { workspace = true }
thiserror = { workspace = true }
rustc-hash = "2.0.0"
synchrony = { workspace = true }
# Windows specific dependencies
[target.'cfg(windows)'.dependencies]
windows-sys = { workspace = true, features = ["Win32_Networking_WinSock"] }
[target.'cfg(unix)'.dependencies]
libc = { workspace = true }
[build-dependencies]
cfg_aliases = { workspace = true }
[dev-dependencies]
compio-dispatcher = { workspace = true }
compio-driver = { workspace = true }
compio-fs = { workspace = true }
compio-macros = { workspace = true }
synchrony = { workspace = true, features = ["async_flag"] }
compio-runtime = { workspace = true, features = ["criterion"] }
criterion = { workspace = true, features = ["async_tokio"] }
http = "1.1.0"
quinn = "0.11.9"
rand = { workspace = true }
rcgen = { workspace = true }
socket2 = { workspace = true, features = ["all"] }
tokio = { workspace = true, features = ["macros", "rt"] }
tracing-subscriber = { workspace = true, features = ["env-filter"] }
[features]
default = ["ring"]
io-compat = ["futures-util/io"]
platform-verifier = ["dep:rustls-platform-verifier"]
native-certs = ["dep:rustls-native-certs"]
webpki-roots = ["dep:webpki-roots"]
qlog = ["quinn-proto/qlog"]
h3 = ["dep:h3", "dep:h3-datagram"]
ring = ["quinn-proto/rustls-ring"]
windows-gro = []
sync = []
[[example]]
name = "http3-client"
required-features = ["h3"]
[[example]]
name = "http3-server"
required-features = ["h3"]
[[example]]
name = "quic-dispatcher"
required-features = ["compio-driver/sync"]
[[bench]]
name = "quic"
harness = false
required-features = ["io-compat"]