Skip to content

Commit

Permalink
feat(quic): basic endpoint & connection
Browse files Browse the repository at this point in the history
  • Loading branch information
AsakuraMizu committed Jul 31, 2024
1 parent b200fc1 commit 0a9313c
Show file tree
Hide file tree
Showing 7 changed files with 1,532 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ members = [
"compio-tls",
"compio-log",
"compio-process",
"compio-quic",
]
resolver = "2"

Expand Down Expand Up @@ -49,6 +50,7 @@ nix = "0.29.0"
once_cell = "1.18.0"
os_pipe = "1.1.4"
paste = "1.0.14"
rustls = { version = "0.23.1", default-features = false }
slab = "0.4.9"
socket2 = "0.5.6"
tempfile = "3.8.1"
Expand Down
51 changes: 51 additions & 0 deletions compio-quic/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[package]
name = "compio-quic"
version = "0.1.0"
description = "QUIC for compio"
categories = ["asynchronous", "network-programming"]
keywords = ["async", "net", "quic"]
edition = { workspace = true }
authors = { workspace = true }
readme = { workspace = true }
license = { workspace = true }
repository = { workspace = true }

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
# Workspace dependencies
compio-buf = { workspace = true, features = ["bytes"] }
compio-net = { workspace = true, features = ["io-uring"] }
compio-runtime = { workspace = true, features = ["event", "time"] }

rustls = { workspace = true, default-features = false, features = [
"std",
"logging",
"ring",
] }
quinn-proto = "0.11.3"

# Utils
flume = { workspace = true }
futures-util = { workspace = true }

# Windows specific dependencies
[target.'cfg(windows)'.dependencies]
windows-sys = { workspace = true, features = ["Win32_Networking_WinSock"] }

# Linux specific dependencies
[target.'cfg(target_os = "linux")'.dependencies]

[target.'cfg(unix)'.dependencies]
libc = { workspace = true }

[dev-dependencies]
compio-driver = { workspace = true }
compio-macros = { workspace = true }
socket2 = { workspace = true, features = ["all"] }
tracing-subscriber = "0.3.18"

[features]
default = []
Loading

0 comments on commit 0a9313c

Please sign in to comment.