signal: move into tokio-net (#1463)

This commit is contained in:
Carl Lerche
2019-08-17 13:43:55 -07:00
committed by Ivan Petkov
parent a83f5e4ba6
commit c187cd75b6
28 changed files with 109 additions and 383 deletions
+14 -1
View File
@@ -22,6 +22,13 @@ categories = ["asynchronous", "network-programming"]
[features]
async-traits = []
signal = [
"futures-util-preview",
"mio-uds",
"libc",
"signal-hook-registry",
"winapi",
]
tcp = [
"bytes",
"futures-util-preview",
@@ -62,10 +69,16 @@ futures-sink-preview = { version = "=0.3.0-alpha.18", optional = true }
futures-util-preview = { version = "=0.3.0-alpha.18", optional = true }
iovec = { version = "0.1", optional = true }
# UDS
[target.'cfg(unix)'.dependencies]
# UDS / Signal
mio-uds = { version = "0.6.5", optional = true }
libc = { version = "0.2.42", optional = true }
signal-hook-registry = { version = "~1", optional = true }
[target.'cfg(windows)'.dependencies.winapi]
version = "0.3"
features = ["consoleapi", "minwindef", "wincon"]
optional = true
[dev-dependencies]
tokio = { version = "=0.2.0-alpha.1", path = "../tokio" }