Skip to content

Commit d94f6ca

Browse files
authored
Update tokio, hyper, and socket2 (#1037)
This change updates `tokio`, `hyper`, and `socket2` (from v0.3 to v0.4). This has a few implications: * `tokio::select!` can now be used in place of `futures::select_biased!`; * We now only depend on the core `futures` functionality with all features disabled. * `socket2` had several small API changes that have been addressed.
1 parent 8d9c8df commit d94f6ca

File tree

52 files changed

+101
-307
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+101
-307
lines changed

Cargo.lock

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,9 @@ dependencies = [
356356

357357
[[package]]
358358
name = "h2"
359-
version = "0.3.0"
359+
version = "0.3.3"
360360
source = "registry+https://github.com/rust-lang/crates.io-index"
361-
checksum = "6b67e66362108efccd8ac053abafc8b7a8d86a37e6e48fc4f6f7485eb5e9e6a5"
361+
checksum = "825343c4eef0b63f541f8903f395dc5beb362a979b5799a84062527ef1e37726"
362362
dependencies = [
363363
"bytes",
364364
"fnv",
@@ -371,7 +371,6 @@ dependencies = [
371371
"tokio",
372372
"tokio-util",
373373
"tracing",
374-
"tracing-futures",
375374
]
376375

377376
[[package]]
@@ -457,21 +456,21 @@ dependencies = [
457456

458457
[[package]]
459458
name = "httparse"
460-
version = "1.3.5"
459+
version = "1.4.1"
461460
source = "registry+https://github.com/rust-lang/crates.io-index"
462-
checksum = "615caabe2c3160b313d52ccc905335f4ed5f10881dd63dc5699d47e90be85691"
461+
checksum = "f3a87b616e37e93c22fb19bcd386f02f3af5ea98a25670ad0fce773de23c5e68"
463462

464463
[[package]]
465464
name = "httpdate"
466-
version = "0.3.2"
465+
version = "1.0.1"
467466
source = "registry+https://github.com/rust-lang/crates.io-index"
468-
checksum = "494b4d60369511e7dea41cf646832512a94e542f68bb9c49e54518e0f468eb47"
467+
checksum = "6456b8a6c8f33fee7d958fcd1b60d55b11940a79e63ae87013e6d22e26034440"
469468

470469
[[package]]
471470
name = "hyper"
472-
version = "0.14.4"
471+
version = "0.14.9"
473472
source = "registry+https://github.com/rust-lang/crates.io-index"
474-
checksum = "e8e946c2b1349055e0b72ae281b238baf1a3ea7307c7e9f9d64673bdd9c26ac7"
473+
checksum = "07d6baa1b441335f3ce5098ac421fb6547c46dda735ca1bc6d0153c838f9dd83"
475474
dependencies = [
476475
"bytes",
477476
"futures-channel",
@@ -483,8 +482,8 @@ dependencies = [
483482
"httparse",
484483
"httpdate",
485484
"itoa",
486-
"pin-project",
487-
"socket2",
485+
"pin-project-lite",
486+
"socket2 0.4.0",
488487
"tokio",
489488
"tower-service",
490489
"tracing",
@@ -540,7 +539,7 @@ version = "0.2.2"
540539
source = "registry+https://github.com/rust-lang/crates.io-index"
541540
checksum = "f7e2f18aece9709094573a9f24f483c4f65caa4298e2f7ae1b71cc65d853fad7"
542541
dependencies = [
543-
"socket2",
542+
"socket2 0.3.19",
544543
"widestring",
545544
"winapi",
546545
"winreg",
@@ -787,7 +786,7 @@ dependencies = [
787786
"linkerd2-proxy-api",
788787
"regex",
789788
"rustls",
790-
"socket2",
789+
"socket2 0.4.0",
791790
"tokio",
792791
"tokio-rustls",
793792
"tokio-stream",
@@ -1276,7 +1275,7 @@ dependencies = [
12761275
"linkerd-metrics",
12771276
"linkerd-stack",
12781277
"pin-project",
1279-
"socket2",
1278+
"socket2 0.4.0",
12801279
"tokio",
12811280
"tokio-stream",
12821281
"tower",
@@ -1588,7 +1587,7 @@ version = "0.3.6"
15881587
source = "registry+https://github.com/rust-lang/crates.io-index"
15891588
checksum = "5a33c1b55807fbed163481b5ba66db4b2fa6cde694a5027be10fb724206c5897"
15901589
dependencies = [
1591-
"socket2",
1590+
"socket2 0.3.19",
15921591
"winapi",
15931592
]
15941593

@@ -2064,6 +2063,16 @@ dependencies = [
20642063
"winapi",
20652064
]
20662065

2066+
[[package]]
2067+
name = "socket2"
2068+
version = "0.4.0"
2069+
source = "registry+https://github.com/rust-lang/crates.io-index"
2070+
checksum = "9e3dfc207c526015c632472a77be09cf1b6e46866581aecae5cc38fb4235dea2"
2071+
dependencies = [
2072+
"libc",
2073+
"winapi",
2074+
]
2075+
20672076
[[package]]
20682077
name = "spin"
20692078
version = "0.5.2"
@@ -2141,9 +2150,9 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
21412150

21422151
[[package]]
21432152
name = "tokio"
2144-
version = "1.2.0"
2153+
version = "1.6.1"
21452154
source = "registry+https://github.com/rust-lang/crates.io-index"
2146-
checksum = "e8190d04c665ea9e6b6a0dc45523ade572c088d2e6566244c1122671dbf4ae3a"
2155+
checksum = "0a38d31d7831c6ed7aad00aa4c12d9375fd225a6dd77da1d25b707346319a975"
21472156
dependencies = [
21482157
"autocfg",
21492158
"bytes",
@@ -2348,16 +2357,6 @@ dependencies = [
23482357
"lazy_static",
23492358
]
23502359

2351-
[[package]]
2352-
name = "tracing-futures"
2353-
version = "0.2.5"
2354-
source = "registry+https://github.com/rust-lang/crates.io-index"
2355-
checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2"
2356-
dependencies = [
2357-
"pin-project",
2358-
"tracing",
2359-
]
2360-
23612360
[[package]]
23622361
name = "tracing-log"
23632362
version = "0.1.2"

hyper-balance/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ edition = "2018"
77
publish = false
88

99
[dependencies]
10-
futures = "0.3.15"
10+
futures = { version = "0.3", default-features = false }
1111
http = "0.2"
12-
hyper = "0.14.2"
12+
hyper = "0.14"
1313
pin-project = "1"
1414
tower = { version = "0.4.7", default-features = false, features = ["load"] }
1515
tokio = { version = "1", features = ["macros"] }

linkerd/addr/fuzz/Cargo.lock

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ checksum = "0e7e43a803dae2fa37c1f6a8fe121e1f7bf9548b4dfc0522a42f34145dadfc27"
7373
dependencies = [
7474
"futures-channel",
7575
"futures-core",
76-
"futures-executor",
7776
"futures-io",
7877
"futures-sink",
7978
"futures-task",
@@ -96,36 +95,12 @@ version = "0.3.15"
9695
source = "registry+https://github.com/rust-lang/crates.io-index"
9796
checksum = "0402f765d8a89a26043b889b26ce3c4679d268fa6bb22cd7c6aad98340e179d1"
9897

99-
[[package]]
100-
name = "futures-executor"
101-
version = "0.3.15"
102-
source = "registry+https://github.com/rust-lang/crates.io-index"
103-
checksum = "badaa6a909fac9e7236d0620a2f57f7664640c56575b71a7552fbd68deafab79"
104-
dependencies = [
105-
"futures-core",
106-
"futures-task",
107-
"futures-util",
108-
]
109-
11098
[[package]]
11199
name = "futures-io"
112100
version = "0.3.15"
113101
source = "registry+https://github.com/rust-lang/crates.io-index"
114102
checksum = "acc499defb3b348f8d8f3f66415835a9131856ff7714bf10dadfc4ec4bdb29a1"
115103

116-
[[package]]
117-
name = "futures-macro"
118-
version = "0.3.15"
119-
source = "registry+https://github.com/rust-lang/crates.io-index"
120-
checksum = "a4c40298486cdf52cc00cd6d6987892ba502c7656a16a4192a9992b1ccedd121"
121-
dependencies = [
122-
"autocfg",
123-
"proc-macro-hack",
124-
"proc-macro2",
125-
"quote",
126-
"syn",
127-
]
128-
129104
[[package]]
130105
name = "futures-sink"
131106
version = "0.3.15"
@@ -145,18 +120,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
145120
checksum = "feb5c238d27e2bf94ffdfd27b2c29e3df4a68c4193bb6427384259e2bf191967"
146121
dependencies = [
147122
"autocfg",
148-
"futures-channel",
149123
"futures-core",
150-
"futures-io",
151-
"futures-macro",
152124
"futures-sink",
153125
"futures-task",
154-
"memchr",
155126
"pin-project-lite",
156127
"pin-utils",
157-
"proc-macro-hack",
158-
"proc-macro-nested",
159-
"slab",
160128
]
161129

162130
[[package]]
@@ -299,12 +267,6 @@ dependencies = [
299267
"regex-automata",
300268
]
301269

302-
[[package]]
303-
name = "memchr"
304-
version = "2.4.0"
305-
source = "registry+https://github.com/rust-lang/crates.io-index"
306-
checksum = "b16bd47d9e329435e309c58469fe0791c2d0d1ba96ec0954152a5ae2b04387dc"
307-
308270
[[package]]
309271
name = "num_cpus"
310272
version = "1.13.0"
@@ -358,18 +320,6 @@ version = "0.1.0"
358320
source = "registry+https://github.com/rust-lang/crates.io-index"
359321
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
360322

361-
[[package]]
362-
name = "proc-macro-hack"
363-
version = "0.5.19"
364-
source = "registry+https://github.com/rust-lang/crates.io-index"
365-
checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5"
366-
367-
[[package]]
368-
name = "proc-macro-nested"
369-
version = "0.1.7"
370-
source = "registry+https://github.com/rust-lang/crates.io-index"
371-
checksum = "bc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086"
372-
373323
[[package]]
374324
name = "proc-macro2"
375325
version = "1.0.26"
@@ -475,12 +425,6 @@ dependencies = [
475425
"lazy_static",
476426
]
477427

478-
[[package]]
479-
name = "slab"
480-
version = "0.4.3"
481-
source = "registry+https://github.com/rust-lang/crates.io-index"
482-
checksum = "f173ac3d1a7e3b28003f40de0b5ce7fe2710f9b9dc3fc38664cebee46b3b6527"
483-
484428
[[package]]
485429
name = "smallvec"
486430
version = "1.6.1"

linkerd/app/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This is used by tests and the executable.
1515
allow-loopback = ["linkerd-app-outbound/allow-loopback"]
1616

1717
[dependencies]
18-
futures = "0.3.15"
18+
futures = { version = "0.3", default-features = false }
1919
indexmap = "1.0"
2020
ipnet = "2.0"
2121
linkerd-app-admin = { path = "./admin" }

linkerd/app/admin/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The linkerd proxy's admin server.
1313
html-escape = "0.2"
1414
http = "0.2"
1515
hyper = { version = "0.14", features = ["http1", "http2"] }
16-
futures = "0.3"
16+
futures = { version = "0.3", default-features = false }
1717
linkerd-app-core = { path = "../core" }
1818
linkerd-app-inbound = { path = "../inbound" }
1919
serde_json = "1"

linkerd/app/core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ drain = { version = "0.0.1", features = ["retain"] }
1818
http = "0.2"
1919
http-body = "0.4"
2020
hyper = { version = "0.14.2", features = ["http1", "http2"] }
21-
futures = "0.3.15"
21+
futures = { version = "0.3", default-features = false }
2222
indexmap = "1.0"
2323
ipnet = "2.0"
2424
linkerd-addr = { path = "../../addr" }

linkerd/app/gateway/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ publish = false
88

99
[dependencies]
1010
http = "0.2"
11-
futures = "0.3.15"
11+
futures = { version = "0.3", default-features = false }
1212
indexmap = "1.0"
1313
linkerd-app-core = { path = "../core" }
1414
linkerd-app-inbound = { path = "../inbound" }

linkerd/app/inbound/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Configures and runs the inbound proxy
1212
[dependencies]
1313
bytes = "1"
1414
http = "0.2"
15-
futures = "0.3.15"
15+
futures = { version = "0.3", default-features = false }
1616
indexmap = "1.0"
1717
linkerd-app-core = { path = "../core" }
1818
thiserror = "1.0"

linkerd/app/inbound/fuzz/Cargo.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ dependencies = [
11091109
"linkerd-metrics",
11101110
"linkerd-stack",
11111111
"pin-project",
1112-
"socket2 0.3.19",
1112+
"socket2 0.4.0",
11131113
"tokio",
11141114
"tokio-stream",
11151115
"tower",

linkerd/app/integration/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ flaky_tests = []
1818

1919
[dependencies]
2020
bytes = "1"
21-
futures = "0.3.15"
21+
futures = { version = "0.3", default-features = false }
2222
h2 = "0.3"
2323
http = "0.2"
2424
http-body = "0.4"
@@ -30,7 +30,7 @@ linkerd2-proxy-api = { git = "https://github.com/linkerd/linkerd2-proxy-api", br
3030
linkerd-app-test = { path = "../test" }
3131
linkerd-tracing = { path = "../../tracing" }
3232
regex = "1"
33-
socket2 = "0.3.12"
33+
socket2 = "0.4"
3434
rustls = "0.19"
3535
tokio = { version = "1", features = ["io-util", "net", "rt", "macros"] }
3636
tokio-stream = { version = "0.1.5", features = ["sync"] }

0 commit comments

Comments
 (0)