|
| 1 | +[package] |
| 2 | +name = "compio-quic" |
| 3 | +version = "0.1.0" |
| 4 | +description = "QUIC for compio" |
| 5 | +categories = ["asynchronous", "network-programming"] |
| 6 | +keywords = ["async", "net", "quic"] |
| 7 | +edition = { workspace = true } |
| 8 | +authors = { workspace = true } |
| 9 | +readme = { workspace = true } |
| 10 | +license = { workspace = true } |
| 11 | +repository = { workspace = true } |
| 12 | + |
| 13 | +[package.metadata.docs.rs] |
| 14 | +all-features = true |
| 15 | +rustdoc-args = ["--cfg", "docsrs"] |
| 16 | + |
| 17 | +[dependencies] |
| 18 | +# Workspace dependencies |
| 19 | +compio-io = { workspace = true } |
| 20 | +compio-buf = { workspace = true } |
| 21 | +compio-log = { workspace = true } |
| 22 | +compio-net = { workspace = true } |
| 23 | +compio-runtime = { workspace = true, features = ["time"] } |
| 24 | + |
| 25 | +quinn-proto = "0.11.3" |
| 26 | +rustls = { workspace = true } |
| 27 | +rustls-platform-verifier = { version = "0.3.3", optional = true } |
| 28 | +rustls-native-certs = { version = "0.7.1", optional = true } |
| 29 | +webpki-roots = { version = "0.26.3", optional = true } |
| 30 | +h3 = { version = "0.0.6", optional = true } |
| 31 | + |
| 32 | +# Utils |
| 33 | +bytes = { workspace = true } |
| 34 | +flume = { workspace = true } |
| 35 | +futures-util = { workspace = true } |
| 36 | +rustc-hash = "2.0.0" |
| 37 | +thiserror = "1.0.63" |
| 38 | + |
| 39 | +# Windows specific dependencies |
| 40 | +[target.'cfg(windows)'.dependencies] |
| 41 | +windows-sys = { workspace = true, features = ["Win32_Networking_WinSock"] } |
| 42 | + |
| 43 | +[target.'cfg(unix)'.dependencies] |
| 44 | +libc = { workspace = true } |
| 45 | + |
| 46 | +[dev-dependencies] |
| 47 | +compio-buf = { workspace = true, features = ["bytes"] } |
| 48 | +compio-dispatcher = { workspace = true } |
| 49 | +compio-driver = { workspace = true } |
| 50 | +compio-fs = { workspace = true } |
| 51 | +compio-macros = { workspace = true } |
| 52 | +compio-runtime = { workspace = true, features = ["criterion"] } |
| 53 | + |
| 54 | +criterion = { workspace = true, features = ["async_tokio"] } |
| 55 | +http = "1.1.0" |
| 56 | +quinn = "0.11.3" |
| 57 | +rand = { workspace = true } |
| 58 | +rcgen = "0.13.1" |
| 59 | +socket2 = { workspace = true, features = ["all"] } |
| 60 | +tokio = { workspace = true, features = ["rt", "macros"] } |
| 61 | +tracing-subscriber = { workspace = true, features = ["env-filter"] } |
| 62 | + |
| 63 | +[features] |
| 64 | +default = [] |
| 65 | +io-compat = ["futures-util/io"] |
| 66 | +platform-verifier = ["dep:rustls-platform-verifier"] |
| 67 | +native-certs = ["dep:rustls-native-certs"] |
| 68 | +webpki-roots = ["dep:webpki-roots"] |
| 69 | +h3 = ["dep:h3"] |
| 70 | +# FIXME: see https://github.com/quinn-rs/quinn/pull/1962 |
| 71 | + |
| 72 | +[[example]] |
| 73 | +name = "http3-client" |
| 74 | +required-features = ["h3"] |
| 75 | + |
| 76 | +[[example]] |
| 77 | +name = "http3-server" |
| 78 | +required-features = ["h3"] |
| 79 | + |
| 80 | +[[bench]] |
| 81 | +name = "quic" |
| 82 | +harness = false |
0 commit comments