mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
net: fix dependency resolution for socket2 (#5000)
This commit is contained in:
+3
-2
@@ -51,6 +51,7 @@ net = [
|
|||||||
"mio/os-poll",
|
"mio/os-poll",
|
||||||
"mio/os-ext",
|
"mio/os-ext",
|
||||||
"mio/net",
|
"mio/net",
|
||||||
|
"socket2",
|
||||||
"winapi/fileapi",
|
"winapi/fileapi",
|
||||||
"winapi/handleapi",
|
"winapi/handleapi",
|
||||||
"winapi/namedpipeapi",
|
"winapi/namedpipeapi",
|
||||||
@@ -58,7 +59,7 @@ net = [
|
|||||||
"winapi/winnt",
|
"winapi/winnt",
|
||||||
"winapi/minwindef",
|
"winapi/minwindef",
|
||||||
"winapi/accctrl",
|
"winapi/accctrl",
|
||||||
"winapi/aclapi"
|
"winapi/aclapi",
|
||||||
]
|
]
|
||||||
process = [
|
process = [
|
||||||
"bytes",
|
"bytes",
|
||||||
@@ -118,7 +119,7 @@ num_cpus = { version = "1.8.0", optional = true }
|
|||||||
parking_lot = { version = "0.12.0", optional = true }
|
parking_lot = { version = "0.12.0", optional = true }
|
||||||
|
|
||||||
[target.'cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))'.dependencies]
|
[target.'cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))'.dependencies]
|
||||||
socket2 = { version = "0.4.4", features = [ "all" ] }
|
socket2 = { version = "0.4.4", optional = true, features = [ "all" ] }
|
||||||
|
|
||||||
# Currently unstable. The API exposed by these features may be broken at any time.
|
# Currently unstable. The API exposed by these features may be broken at any time.
|
||||||
# Requires `--cfg tokio_unstable` to enable.
|
# Requires `--cfg tokio_unstable` to enable.
|
||||||
|
|||||||
Reference in New Issue
Block a user