Skip to content

Commit c2d3bea

Browse files
hawkwolix0r
authored andcommitted
deps: update to tokio 1.17.0 and tower 0.4.12, and unpatch (#1503)
This branch updates the proxy's dependencies on Tokio and Tower to 1.17.0 and 0.4.12, respectively. These releases contain fixes for panics when `std::time::Instant` fails to be properly monotonic. Previously, we were using Git dependencies to ensure we got these fixes. Now, we can remove those patches, as the released versions of these crates have the necessary changes. (cherry picked from commit c876fe1) Signed-off-by: Oliver Gould <ver@buoyant.io>
1 parent 40bad60 commit c2d3bea

File tree

27 files changed

+48
-41
lines changed

27 files changed

+48
-41
lines changed

Cargo.lock

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ checksum = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c"
326326
dependencies = [
327327
"cfg-if",
328328
"libc",
329-
"wasi",
329+
"wasi 0.10.2+wasi-snapshot-preview1",
330330
]
331331

332332
[[package]]
@@ -1562,14 +1562,15 @@ dependencies = [
15621562

15631563
[[package]]
15641564
name = "mio"
1565-
version = "0.7.14"
1565+
version = "0.8.2"
15661566
source = "registry+https://github.com/rust-lang/crates.io-index"
1567-
checksum = "8067b404fe97c70829f082dec8bcf4f71225d7eaea1d8645349cb76fa06205cc"
1567+
checksum = "52da4364ffb0e4fe33a9841a98a3f3014fb964045ce4f7a45a398243c8d6b0c9"
15681568
dependencies = [
15691569
"libc",
15701570
"log",
15711571
"miow",
15721572
"ntapi",
1573+
"wasi 0.11.0+wasi-snapshot-preview1",
15731574
"winapi",
15741575
]
15751576

@@ -2131,19 +2132,20 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
21312132

21322133
[[package]]
21332134
name = "tokio"
2134-
version = "1.16.1"
2135+
version = "1.17.0"
21352136
source = "registry+https://github.com/rust-lang/crates.io-index"
2136-
checksum = "0c27a64b625de6d309e8c57716ba93021dccf1b3b5c97edd6d3dd2d2135afc0a"
2137+
checksum = "2af73ac49756f3f7c01172e34a23e5d0216f6c32333757c2c61feb2bbff5a5ee"
21372138
dependencies = [
21382139
"bytes",
21392140
"libc",
21402141
"memchr",
21412142
"mio",
21422143
"num_cpus",
21432144
"once_cell",
2144-
"parking_lot 0.11.2",
2145+
"parking_lot 0.12.0",
21452146
"pin-project-lite",
21462147
"signal-hook-registry",
2148+
"socket2",
21472149
"tokio-macros",
21482150
"winapi",
21492151
]
@@ -2278,9 +2280,9 @@ dependencies = [
22782280

22792281
[[package]]
22802282
name = "tower"
2281-
version = "0.4.11"
2283+
version = "0.4.12"
22822284
source = "registry+https://github.com/rust-lang/crates.io-index"
2283-
checksum = "5651b5f6860a99bd1adb59dbfe1db8beb433e73709d9032b413a77e2fb7c066a"
2285+
checksum = "9a89fd63ad6adf737582df5db40d286574513c69a11dac5214dc3b5603d6713e"
22842286
dependencies = [
22852287
"futures-core",
22862288
"futures-util",
@@ -2290,8 +2292,7 @@ dependencies = [
22902292
"rand",
22912293
"slab",
22922294
"tokio",
2293-
"tokio-stream",
2294-
"tokio-util 0.6.9",
2295+
"tokio-util 0.7.0",
22952296
"tower-layer",
22962297
"tower-service",
22972298
"tracing",
@@ -2528,6 +2529,12 @@ version = "0.10.2+wasi-snapshot-preview1"
25282529
source = "registry+https://github.com/rust-lang/crates.io-index"
25292530
checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
25302531

2532+
[[package]]
2533+
name = "wasi"
2534+
version = "0.11.0+wasi-snapshot-preview1"
2535+
source = "registry+https://github.com/rust-lang/crates.io-index"
2536+
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
2537+
25312538
[[package]]
25322539
name = "wasm-bindgen"
25332540
version = "0.2.79"

hyper-balance/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ futures = { version = "0.3", default-features = false }
1111
http = "0.2"
1212
hyper = "0.14"
1313
pin-project = "1"
14-
tower = { version = "0.4.11", default-features = false, features = ["load"] }
14+
tower = { version = "0.4", default-features = false, features = ["load"] }
1515
tokio = { version = "1", features = ["macros"] }
1616

1717
[dev-dependencies]

linkerd/app/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ thiserror = "1.0"
2828
tokio = { version = "1", features = ["rt"] }
2929
tokio-stream = { version = "0.1.8", features = ["time", "sync"] }
3030
tonic = { version = "0.6", default-features = false, features = ["prost"] }
31-
tower = "0.4.11"
31+
tower = "0.4"
3232
tracing = "0.1.30"

linkerd/app/core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ linkerd-trace-context = { path = "../../trace-context" }
5959
regex = "1.5.4"
6060
serde_json = "1"
6161
thiserror = "1.0"
62-
tokio = { version = "1", features = ["macros", "sync", "parking_lot"]}
62+
tokio = { version = "1", features = ["macros", "sync", "parking_lot"] }
6363
tokio-stream = { version = "0.1.8", features = ["time"] }
6464
tonic = { version = "0.6", default-features = false, features = ["prost"] }
6565
tracing = "0.1.30"
6666
parking_lot = "0.12"
6767
pin-project = "1"
6868

6969
[dependencies.tower]
70-
version = "0.4.11"
70+
version = "0.4"
7171
default-features = false
7272
features = [
7373
"buffer",

linkerd/app/gateway/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ linkerd-app-inbound = { path = "../inbound" }
1414
linkerd-app-outbound = { path = "../outbound" }
1515
thiserror = "1.0"
1616
tokio = { version = "1", features = ["sync"] }
17-
tower = { version = "0.4.11", default-features = false }
17+
tower = { version = "0.4", default-features = false }
1818
tracing = "0.1.30"
1919

2020
[dev-dependencies]
2121
tokio = { version = "1", features = ["rt", "macros"] }
2222
tokio-test = "0.4"
23-
tower = { version = "0.4.11", default-features = false, features = ["util"] }
23+
tower = { version = "0.4", default-features = false, features = ["util"] }
2424
tower-test = "0.4"
2525
linkerd-app-test = { path = "../test" }

linkerd/app/inbound/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ parking_lot = "0.12"
2121
thiserror = "1.0"
2222
tokio = { version = "1", features = ["sync"] }
2323
tonic = { version = "0.6", default-features = false }
24-
tower = { version = "0.4.11", features = ["util"] }
24+
tower = { version = "0.4", features = ["util"] }
2525
tracing = "0.1.30"
2626

2727
[target.'cfg(fuzzing)'.dependencies]

linkerd/app/integration/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ socket2 = "0.4"
3535
tokio = { version = "1", features = ["io-util", "net", "rt", "macros"] }
3636
tokio-stream = { version = "0.1.8", features = ["sync"] }
3737
tokio-rustls = "0.22"
38-
tower = { version = "0.4.11", default-features = false }
38+
tower = { version = "0.4", default-features = false }
3939
tonic = { version = "0.6", default-features = false }
4040
tracing = "0.1"
4141
webpki = "0.21"

linkerd/app/outbound/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ linkerd-retry = { path = "../../retry" }
2626
parking_lot = "0.12"
2727
thiserror = "1.0"
2828
tokio = { version = "1", features = ["sync"] }
29-
tower = { version = "0.4.11", features = ["util"] }
29+
tower = { version = "0.4", features = ["util"] }
3030
tracing = "0.1.30"
3131
pin-project = "1"
3232

linkerd/app/test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ regex = "1"
3030
tokio = { version = "1", features = ["io-util", "net", "rt", "sync"] }
3131
tokio-test = "0.4"
3232
tokio-stream = { version = "0.1.8", features = ["sync"] }
33-
tower = { version = "0.4.11", default-features = false }
33+
tower = { version = "0.4", default-features = false }
3434
tracing = "0.1.30"
3535
thiserror = "1"
3636

linkerd/cache/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ linkerd-error = { path = "../error" }
1212
linkerd-stack = { path = "../stack" }
1313
parking_lot = "0.12"
1414
tokio = { version = "1", default-features = false, features = ["macros", "rt", "sync", "time"] }
15-
tower = { version = "0.4.11", default-features = false, features = ["util"] }
15+
tower = { version = "0.4", default-features = false, features = ["util"] }
1616
tracing = "0.1.30"
1717

1818
[dev-dependencies]

0 commit comments

Comments
 (0)