mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-09 00:00:08 +02:00
net: be more specific about winapi features (#4764)
This commit is contained in:
+13
-1
@@ -52,7 +52,12 @@ net = [
|
|||||||
"mio/os-ext",
|
"mio/os-ext",
|
||||||
"mio/net",
|
"mio/net",
|
||||||
"socket2",
|
"socket2",
|
||||||
|
"winapi/fileapi",
|
||||||
|
"winapi/handleapi",
|
||||||
"winapi/namedpipeapi",
|
"winapi/namedpipeapi",
|
||||||
|
"winapi/winbase",
|
||||||
|
"winapi/winnt",
|
||||||
|
"winapi/minwindef",
|
||||||
]
|
]
|
||||||
process = [
|
process = [
|
||||||
"bytes",
|
"bytes",
|
||||||
@@ -62,7 +67,12 @@ process = [
|
|||||||
"mio/os-ext",
|
"mio/os-ext",
|
||||||
"mio/net",
|
"mio/net",
|
||||||
"signal-hook-registry",
|
"signal-hook-registry",
|
||||||
|
"winapi/handleapi",
|
||||||
|
"winapi/processthreadsapi",
|
||||||
"winapi/threadpoollegacyapiset",
|
"winapi/threadpoollegacyapiset",
|
||||||
|
"winapi/winbase",
|
||||||
|
"winapi/winnt",
|
||||||
|
"winapi/minwindef",
|
||||||
]
|
]
|
||||||
# Includes basic task execution capabilities
|
# Includes basic task execution capabilities
|
||||||
rt = ["once_cell"]
|
rt = ["once_cell"]
|
||||||
@@ -78,6 +88,8 @@ signal = [
|
|||||||
"mio/os-ext",
|
"mio/os-ext",
|
||||||
"signal-hook-registry",
|
"signal-hook-registry",
|
||||||
"winapi/consoleapi",
|
"winapi/consoleapi",
|
||||||
|
"winapi/wincon",
|
||||||
|
"winapi/minwindef",
|
||||||
]
|
]
|
||||||
sync = []
|
sync = []
|
||||||
test-util = ["rt", "sync", "time"]
|
test-util = ["rt", "sync", "time"]
|
||||||
@@ -118,7 +130,7 @@ nix = { version = "0.24", default-features = false, features = ["fs", "socket"]
|
|||||||
[target.'cfg(windows)'.dependencies.winapi]
|
[target.'cfg(windows)'.dependencies.winapi]
|
||||||
version = "0.3.8"
|
version = "0.3.8"
|
||||||
default-features = false
|
default-features = false
|
||||||
features = ["std", "winsock2", "mswsock", "handleapi", "ws2ipdef", "ws2tcpip"]
|
features = ["std"]
|
||||||
optional = true
|
optional = true
|
||||||
|
|
||||||
[target.'cfg(windows)'.dev-dependencies.ntapi]
|
[target.'cfg(windows)'.dev-dependencies.ntapi]
|
||||||
|
|||||||
Reference in New Issue
Block a user