| 1 | [package] |
| 2 | name = "calloop" |
| 3 | version = "0.14.2" |
| 4 | authors = ["Elinor Berger <elinor@safaradeg.net>" ] |
| 5 | documentation = "https://docs.rs/calloop/" |
| 6 | repository = "https://github.com/Smithay/calloop" |
| 7 | license = "MIT" |
| 8 | description = "A callback-based event loop" |
| 9 | keywords = [ "events" , "loop" , "callback" , "eventloop" , "unix" ] |
| 10 | autotests = false |
| 11 | edition = "2018" |
| 12 | readme = "README.md" |
| 13 | rust-version = "1.63.0" |
| 14 | |
| 15 | [workspace] |
| 16 | members = [ "doc" ] |
| 17 | |
| 18 | [badges] |
| 19 | codecov = { repository = "Smithay/calloop" } |
| 20 | |
| 21 | [dependencies] |
| 22 | async-task = { version = "4.4.0" , optional = true } |
| 23 | bitflags = "2.4" |
| 24 | futures-io = { version = "0.3.5" , optional = true } |
| 25 | pin-utils = { version = "0.1.0" , optional = true } |
| 26 | polling = "3.0.0" |
| 27 | rustix = { version = "0.38" , default-features = false, features = ["event" , "fs" , "pipe" , "std" ] } |
| 28 | slab = "0.4.8" |
| 29 | tracing = { version = "0.1.40" , default-features = false, features = ["log" ] } |
| 30 | |
| 31 | [target.'cfg(unix)'.dependencies] |
| 32 | nix = { version = "0.29" , default-features = false, features = ["signal" ], optional = true } |
| 33 | |
| 34 | [dev-dependencies] |
| 35 | futures = "0.3.5" |
| 36 | rustix = { version = "0.38" , default-features = false, features = ["net" ] } |
| 37 | criterion = { version = "0.4" } |
| 38 | |
| 39 | [features] |
| 40 | block_on = ["pin-utils" ] |
| 41 | executor = ["async-task" ] |
| 42 | nightly_coverage = [] |
| 43 | signals = ["nix" ] |
| 44 | |
| 45 | [package.metadata.docs.rs] |
| 46 | features = ["block_on" , "executor" , "signals" ] |
| 47 | rustdoc-args = ["--cfg" , "docsrs" ] |
| 48 | |
| 49 | [[test]] |
| 50 | name = "signals" |
| 51 | harness = false |
| 52 | |
| 53 | [[bench]] |
| 54 | name = "timer" |
| 55 | harness = false |
| 56 | |