Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: be more specific about winapi features #4764

Merged
merged 5 commits into from Jun 16, 2022
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 12 additions & 1 deletion tokio/Cargo.toml
Expand Up @@ -52,7 +52,12 @@ net = [
"mio/os-ext",
"mio/net",
"socket2",
"winapi/std",
"winapi/fileapi",
"winapi/handleapi",
"winapi/namedpipeapi",
"winapi/winbase",
"winapi/winnt",
gftea marked this conversation as resolved.
Show resolved Hide resolved
]
process = [
"bytes",
Expand All @@ -62,7 +67,12 @@ process = [
"mio/os-ext",
"mio/net",
"signal-hook-registry",
"winapi/std",
"winapi/handleapi",
"winapi/processthreadsapi",
"winapi/threadpoollegacyapiset",
"winapi/winbase",
"winapi/winnt",
gftea marked this conversation as resolved.
Show resolved Hide resolved
]
# Includes basic task execution capabilities
rt = ["once_cell"]
Expand All @@ -78,6 +88,7 @@ signal = [
"mio/os-ext",
"signal-hook-registry",
"winapi/consoleapi",
"winapi/wincon",
]
sync = []
test-util = ["rt", "sync", "time"]
Expand Down Expand Up @@ -118,7 +129,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"]
gftea marked this conversation as resolved.
Show resolved Hide resolved

optional = true

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