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