[package] name = "ctrlc-async" version = "3.2.2" authors = ["Antti Keränen ", "John Sharratt "] description = "Easy asynchronous Ctrl-C handler for Rust projects" documentation = "http://detegr.github.io/doc/ctrlc" homepage = "https://github.com/Detegr/rust-ctrlc" keywords = ["ctrlc", "signal", "SIGINT"] categories = ["os"] license = "MIT/Apache-2.0" repository = "https://github.com/Detegr/rust-ctrlc.git" exclude = ["/.travis.yml", "/appveyor.yml"] edition = "2018" readme = "README.md" [features] default = [ "tokio" ] termination = [] [dependencies] tokio = { version = "^1", features = [ "macros", "rt", "sync", "time" ], optional = true } async-std = { version = "^1", features = [ "alloc", "attributes", "default" ], default-features = false, optional = true } [target.'cfg(unix)'.dependencies] nix = "0.23" [target.'cfg(windows)'.dependencies] winapi = { version = "0.3", features = ["consoleapi", "handleapi", "synchapi", "winbase"] } [target.'cfg(windows)'.dev-dependencies] winapi = { version = "0.3", features = ["fileapi", "processenv", "winnt"] } [[test]] harness = false name = "tests" path = "src/tests.rs"