1 | [package] |
2 | name = "async-io" |
3 | # When publishing a new version: |
4 | # - Update CHANGELOG.md |
5 | # - Create "v2.x.y" git tag |
6 | version = "2.4.0" |
7 | authors = ["Stjepan Glavina <stjepang@gmail.com>" ] |
8 | edition = "2021" |
9 | rust-version = "1.63" |
10 | description = "Async I/O and timers" |
11 | license = "Apache-2.0 OR MIT" |
12 | repository = "https://github.com/smol-rs/async-io" |
13 | keywords = ["mio" , "epoll" , "kqueue" , "iocp" ] |
14 | categories = ["asynchronous" , "network-programming" , "os" ] |
15 | exclude = ["/.*" ] |
16 | |
17 | [lints.rust] |
18 | unexpected_cfgs = { level = "warn" , check-cfg = ['cfg(polling_test_poll_backend)' ] } |
19 | |
20 | [[bench]] |
21 | name = "io" |
22 | harness = false |
23 | |
24 | [[bench]] |
25 | name = "timer" |
26 | harness = false |
27 | |
28 | [dependencies] |
29 | async-lock = "3.0.0" |
30 | cfg-if = "1" |
31 | concurrent-queue = "2.2.0" |
32 | futures-io = { version = "0.3.28" , default-features = false, features = ["std" ] } |
33 | futures-lite = { version = "2.0.0" , default-features = false } |
34 | parking = "2.0.0" |
35 | polling = "3.0.0" |
36 | rustix = { version = "0.38.18" , default-features = false, features = ["fs" , "net" , "std" ] } |
37 | slab = "0.4.2" |
38 | tracing = { version = "0.1.37" , default-features = false } |
39 | |
40 | [target.'cfg(windows)'.dependencies] |
41 | windows-sys = { version = "0.59.0" , features = ["Win32_Foundation" ] } |
42 | |
43 | [dev-dependencies] |
44 | async-channel = "2.0.0" |
45 | async-net = "2.0.0" |
46 | blocking = "1" |
47 | criterion = { version = "0.4" , default-features = false, features = ["cargo_bench_support" ] } |
48 | getrandom = "0.2.7" |
49 | signal-hook = "0.3" |
50 | tempfile = "3" |
51 | |
52 | [target.'cfg(target_os = "linux")'.dev-dependencies] |
53 | inotify = { version = "0.11.0" , default-features = false } |
54 | timerfd = "1" |
55 | |
56 | [target.'cfg(windows)'.dev-dependencies] |
57 | uds_windows = "1" |
58 | |
59 | [patch.crates-io] |
60 | async-io = { path = "." } |
61 | |