From d7f227d70991f71c308811398edd847777431858 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Sun, 8 May 2022 19:36:26 +0200 Subject: [PATCH 1/3] windows: add feature lsit for winapi --- tokio/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml index 1b628e84f04..4163c51ca4f 100644 --- a/tokio/Cargo.toml +++ b/tokio/Cargo.toml @@ -118,6 +118,7 @@ nix = { version = "0.24", default-features = false, features = ["fs", "socket"] [target.'cfg(windows)'.dependencies.winapi] version = "0.3.8" default-features = false +features = [] optional = true [target.'cfg(windows)'.dev-dependencies.ntapi] From 570c2f06552704eadbc701e0cfe97d1143d213af Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Sun, 8 May 2022 19:43:06 +0200 Subject: [PATCH 2/3] Add std feature --- tokio/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml index 4163c51ca4f..ba45e72b0aa 100644 --- a/tokio/Cargo.toml +++ b/tokio/Cargo.toml @@ -118,7 +118,7 @@ nix = { version = "0.24", default-features = false, features = ["fs", "socket"] [target.'cfg(windows)'.dependencies.winapi] version = "0.3.8" default-features = false -features = [] +features = ["std"] optional = true [target.'cfg(windows)'.dev-dependencies.ntapi] From 1a43547fa617fb516471e642e2e85ff07e74d021 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Sun, 8 May 2022 19:48:12 +0200 Subject: [PATCH 3/3] Add all features that mio or socket2 enabled --- tokio/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml index ba45e72b0aa..24c4a83ec55 100644 --- a/tokio/Cargo.toml +++ b/tokio/Cargo.toml @@ -118,7 +118,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"] +features = ["std", "winsock2", "mswsock", "handleapi", "ws2ipdef", "ws2tcpip"] optional = true [target.'cfg(windows)'.dev-dependencies.ntapi]