mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
udp: remove io_uring version, it is slower than mio version
This commit is contained in:
parent
99632d4be5
commit
138ae710ef
7 changed files with 10 additions and 551 deletions
|
|
@ -15,10 +15,7 @@ path = "src/lib/lib.rs"
|
|||
name = "aquatic_udp"
|
||||
|
||||
[features]
|
||||
default = ["with-mio"]
|
||||
cpu-pinning = ["aquatic_common/cpu-pinning"]
|
||||
with-mio = ["mio"]
|
||||
with-io-uring = ["io-uring", "libc", "bytemuck"]
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1"
|
||||
|
|
@ -30,6 +27,7 @@ crossbeam-channel = "0.5"
|
|||
hex = "0.4"
|
||||
log = "0.4"
|
||||
mimalloc = { version = "0.1", default-features = false }
|
||||
mio = { version = "0.7", features = ["udp", "os-poll", "os-util"] }
|
||||
parking_lot = "0.11"
|
||||
rand = { version = "0.8", features = ["small_rng"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
|
|
@ -37,14 +35,6 @@ slab = "0.4"
|
|||
signal-hook = { version = "0.3" }
|
||||
socket2 = { version = "0.4.1", features = ["all"] }
|
||||
|
||||
# mio
|
||||
mio = { version = "0.7", features = ["udp", "os-poll", "os-util"], optional = true }
|
||||
|
||||
# io-uring
|
||||
io-uring = { version = "0.5", optional = true }
|
||||
libc = { version = "0.2", optional = true }
|
||||
bytemuck = { version = "1", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
quickcheck = "1.0"
|
||||
quickcheck_macros = "1.0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue