refactor(client): switch from net2 to socket2 (#2206)

net2 was recently deprecated; socket2 is the recommended alternative

Closes #2205
This commit is contained in:
Joshua Nelson
2020-05-18 20:19:38 -04:00
committed by GitHub
parent 6fbb6db876
commit d5b0ee5672
2 changed files with 11 additions and 10 deletions

View File

@@ -38,7 +38,7 @@ want = "0.3"
# Optional
net2 = { version = "0.2.32", optional = true }
socket2 = { version = "0.3", optional = true }
[dev-dependencies]
futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
@@ -65,7 +65,7 @@ runtime = [
"tokio/rt-core",
]
tcp = [
"net2",
"socket2",
"tokio/blocking",
"tokio/tcp",
"tokio/time",