Skip to content

Commit

Permalink
net: be more specific about winapi features (#4764)
Browse files Browse the repository at this point in the history
  • Loading branch information
gftea committed Jun 16, 2022
1 parent f26ce08 commit 90bc5fa
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tokio/Cargo.toml
Expand Up @@ -52,7 +52,12 @@ net = [
"mio/os-ext",
"mio/net",
"socket2",
"winapi/fileapi",
"winapi/handleapi",
"winapi/namedpipeapi",
"winapi/winbase",
"winapi/winnt",
"winapi/minwindef",
]
process = [
"bytes",
Expand All @@ -62,7 +67,12 @@ process = [
"mio/os-ext",
"mio/net",
"signal-hook-registry",
"winapi/handleapi",
"winapi/processthreadsapi",
"winapi/threadpoollegacyapiset",
"winapi/winbase",
"winapi/winnt",
"winapi/minwindef",
]
# Includes basic task execution capabilities
rt = ["once_cell"]
Expand All @@ -78,6 +88,8 @@ signal = [
"mio/os-ext",
"signal-hook-registry",
"winapi/consoleapi",
"winapi/wincon",
"winapi/minwindef",
]
sync = []
test-util = ["rt", "sync", "time"]
Expand Down Expand Up @@ -118,7 +130,7 @@ nix = { version = "0.24", default-features = false, features = ["fs", "socket"]
[target.'cfg(windows)'.dependencies.winapi]
version = "0.3.8"
default-features = false
features = ["std", "winsock2", "mswsock", "handleapi", "ws2ipdef", "ws2tcpip"]
features = ["std"]
optional = true

[target.'cfg(windows)'.dev-dependencies.ntapi]
Expand Down

0 comments on commit 90bc5fa

Please sign in to comment.