mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-27 00:00:12 +02:00
Windows guarantees handler routines are always invoked in a new thread (https://docs.microsoft.com/en-us/windows/console/handlerroutine), so we don't need to use the handler-wake-another-driver technique used in the Unix implementation By broadcasting the event notifications from the handler, we no longer need the Driver task to be spawned, which fixes the starvation issue if the executor which runs the Driver task goes away Also changed the behavior so that the default event handler runs if all listeners for CTRL_{C, BREAK} events go away.
44 lines
1.4 KiB
TOML
44 lines
1.4 KiB
TOML
[package]
|
|
name = "tokio-signal"
|
|
# When releasing to crates.io:
|
|
# - Remove path dependencies
|
|
# - Update html_root_url.
|
|
# - Update doc url
|
|
# - Cargo.toml
|
|
# - Update CHANGELOG.md.
|
|
# - Create "v0.3.x" git tag.
|
|
version = "0.3.0-alpha.1"
|
|
edition = "2018"
|
|
authors = ["Tokio Contributors <[email protected]>"]
|
|
license = "MIT"
|
|
repository = "https://github.com/tokio-rs/tokio"
|
|
homepage = "https://github.com/tokio-rs/tokio"
|
|
documentation = "https://docs.rs/tokio-signal/0.3.0-alpha.1/tokio_signal"
|
|
description = """
|
|
An implementation of an asynchronous Unix signal handling backed futures.
|
|
"""
|
|
categories = ["asynchronous"]
|
|
|
|
[dependencies]
|
|
futures-core-preview = "=0.3.0-alpha.18"
|
|
futures-util-preview = "=0.3.0-alpha.18"
|
|
lazy_static = "1"
|
|
tokio-reactor = { version = "=0.2.0-alpha.1", path = "../tokio-reactor" }
|
|
tokio-io = { version = "=0.2.0-alpha.1", path = "../tokio-io" }
|
|
tokio-sync = { version = "=0.2.0-alpha.1", path = "../tokio-sync" }
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
mio = "0.6.14"
|
|
mio-uds = "0.6"
|
|
signal-hook-registry = "~1"
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "=0.2.0-alpha.1", path = "../tokio" }
|
|
tokio-timer = { version = "=0.3.0-alpha.1", path = "../tokio-timer" }
|
|
tokio-sync = { version = "=0.2.0-alpha.1", path = "../tokio-sync", features = ["async-traits"]}
|
|
|
|
[target.'cfg(windows)'.dependencies.winapi]
|
|
version = "0.3"
|
|
features = ["consoleapi", "minwindef", "wincon"]
|