Skip to content

Commit 97e981e

Browse files
authored
net: fix dependency resolution for socket2 (#5000)
1 parent 50795e6 commit 97e981e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tokio/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,15 @@ net = [
5151
"mio/os-poll",
5252
"mio/os-ext",
5353
"mio/net",
54+
"socket2",
5455
"winapi/fileapi",
5556
"winapi/handleapi",
5657
"winapi/namedpipeapi",
5758
"winapi/winbase",
5859
"winapi/winnt",
5960
"winapi/minwindef",
6061
"winapi/accctrl",
61-
"winapi/aclapi"
62+
"winapi/aclapi",
6263
]
6364
process = [
6465
"bytes",
@@ -118,7 +119,7 @@ num_cpus = { version = "1.8.0", optional = true }
118119
parking_lot = { version = "0.12.0", optional = true }
119120

120121
[target.'cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))'.dependencies]
121-
socket2 = { version = "0.4.4", features = [ "all" ] }
122+
socket2 = { version = "0.4.4", optional = true, features = [ "all" ] }
122123

123124
# Currently unstable. The API exposed by these features may be broken at any time.
124125
# Requires `--cfg tokio_unstable` to enable.

0 commit comments

Comments
 (0)