EndpointRead / EndpointWrite examples with tokio and smol
This commit is contained in:
parent
eb12376bc2
commit
371b91c85f
4 changed files with 221 additions and 1 deletions
10
Cargo.toml
10
Cargo.toml
|
|
@ -19,6 +19,7 @@ slab = "0.4.9"
|
|||
[dev-dependencies]
|
||||
env_logger = "0.11"
|
||||
futures-lite = "2.0"
|
||||
tokio = { version = "1", features = ["rt", "macros", "io-util", "rt-multi-thread"] }
|
||||
|
||||
[target.'cfg(any(target_os="linux", target_os="android"))'.dependencies]
|
||||
rustix = { version = "1.0.1", features = ["fs", "event", "net", "time", "mm"] }
|
||||
|
|
@ -49,3 +50,12 @@ unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }
|
|||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
|
||||
[[example]]
|
||||
name = "bulk_io_smol"
|
||||
required-features = ["smol"]
|
||||
|
||||
[[example]]
|
||||
name = "bulk_io_tokio"
|
||||
required-features = ["tokio"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue