Skip to content

Commit 27aa339

Browse files
authored
refactor(io,tls,ws)!: use pin-project-lite (#720)
* feat(io): use pin-project-lite * feat(tls): adopt Unpin * feat(io): split async streams * fix(tls,ws): internal mutability * refactor(io): state machines * fix(io): return WouldBlock instead of panic ...if the buffer is in use. * feat(io): support close in AsyncWriteStream * refactor(io): simplify `replace_waker`
1 parent 23a60f8 commit 27aa339

9 files changed

Lines changed: 581 additions & 108 deletions

File tree

compio-io/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ repository = { workspace = true }
1313
compio-buf = { workspace = true, features = ["arrayvec", "bytes"] }
1414
futures-util = { workspace = true, features = ["sink"] }
1515
paste = { workspace = true }
16+
pin-project-lite = { workspace = true, optional = true }
1617
synchrony = { workspace = true, features = ["bilock"] }
1718

1819
cfg-if = { workspace = true, optional = true }
@@ -36,7 +37,7 @@ futures-executor = "0.3.30"
3637

3738
[features]
3839
default = []
39-
compat = ["futures-util/io"]
40+
compat = ["futures-util/io", "dep:pin-project-lite"]
4041
sync = []
4142
ancillary = ["dep:cfg-if", "dep:libc", "dep:windows-sys"]
4243

0 commit comments

Comments
 (0)