ctrlc2 3.6.8

Easy Ctrl-C handler version 2 for Rust projects
Documentation
[package]
authors = ["Antti Keränen <detegr@gmail.com>", "@ssrlive"]
name = "ctrlc2"
version = "3.6.8"
description = "Easy Ctrl-C handler version 2 for Rust projects"
documentation = "https://docs.rs/ctrlc2"
homepage = "https://github.com/ssrlive/ctrlc2"
keywords = ["ctrlc", "signal", "SIGINT", "async"]
categories = ["os"]
license = "MIT/Apache-2.0"
repository = "https://github.com/ssrlive/ctrlc2.git"
exclude = ["/.travis.yml", "/appveyor.yml"]
edition = "2024"
readme = "README.md"

[package.metadata.docs.rs]
all-features = true

[features]
termination = []
tokio = ["dep:tokio"]
async = []

# default = ["termination", "tokio", "async"]

[dependencies]
log = "0.4"
tokio = { version = "1", features = [
    "macros",
    "rt",
    "sync",
    "signal",
], optional = true }

[target.'cfg(unix)'.dependencies]
nix = { version = "0.30", default-features = false, features = [
    "fs",
    "signal",
] }

[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.60", features = [
    "Win32_Foundation",
    "Win32_System_Threading",
    "Win32_Security",
    "Win32_System_Console",
] }

[dev-dependencies]
clap = { version = "4", features = ["derive"] }
futures = "0.3"
signal-hook = "0.3"

[target.'cfg(windows)'.dev-dependencies]
windows-sys = { version = "0.60", features = [
    "Win32_Storage_FileSystem",
    "Win32_System_IO",
] }

[[test]]
harness = false
name = "main"
path = "tests/main/mod.rs"

[[test]]
harness = false
name = "issue_97"
path = "tests/main/issue_97.rs"

[badges]
maintenance = { status = "passively-maintained" }