Skip to content

Commit 2771320

Browse files
committed
Pin git deps for dependencies that have Instant workarounds
tokio & tower have been patched to avoid issues described in linkerd/linkerd2#7748, but they have not yet been released. This change pins these dependencies to Git to pickup the workarounds. Signed-off-by: Oliver Gould <[email protected]>
1 parent 0ee6846 commit 2771320

File tree

3 files changed

+17
-18
lines changed

3 files changed

+17
-18
lines changed

Cargo.lock

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1775,9 +1775,9 @@ dependencies = [
17751775

17761776
[[package]]
17771777
name = "mio"
1778-
version = "0.7.14"
1778+
version = "0.8.0"
17791779
source = "registry+https://github.com/rust-lang/crates.io-index"
1780-
checksum = "8067b404fe97c70829f082dec8bcf4f71225d7eaea1d8645349cb76fa06205cc"
1780+
checksum = "ba272f85fa0b41fc91872be579b3bbe0f56b792aa361a380eb669469f68dafb2"
17811781
dependencies = [
17821782
"libc",
17831783
"log",
@@ -2382,18 +2382,18 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
23822382
[[package]]
23832383
name = "tokio"
23842384
version = "1.16.1"
2385-
source = "registry+https://github.com/rust-lang/crates.io-index"
2386-
checksum = "0c27a64b625de6d309e8c57716ba93021dccf1b3b5c97edd6d3dd2d2135afc0a"
2385+
source = "git+https://github.com/tokio-rs/tokio#8fb15da8f83278a51deb5514f998062dd3d21afe"
23872386
dependencies = [
23882387
"bytes",
23892388
"libc",
23902389
"memchr",
23912390
"mio",
23922391
"num_cpus",
23932392
"once_cell",
2394-
"parking_lot 0.11.2",
2393+
"parking_lot 0.12.0",
23952394
"pin-project-lite",
23962395
"signal-hook-registry",
2396+
"socket2",
23972397
"tokio-macros",
23982398
"winapi",
23992399
]
@@ -2422,8 +2422,7 @@ dependencies = [
24222422
[[package]]
24232423
name = "tokio-macros"
24242424
version = "1.7.0"
2425-
source = "registry+https://github.com/rust-lang/crates.io-index"
2426-
checksum = "b557f72f448c511a979e2564e55d74e6c4432fc96ff4f6241bc6bded342643b7"
2425+
source = "git+https://github.com/tokio-rs/tokio#8fb15da8f83278a51deb5514f998062dd3d21afe"
24272426
dependencies = [
24282427
"proc-macro2",
24292428
"quote",
@@ -2540,8 +2539,7 @@ dependencies = [
25402539
[[package]]
25412540
name = "tower"
25422541
version = "0.4.11"
2543-
source = "registry+https://github.com/rust-lang/crates.io-index"
2544-
checksum = "5651b5f6860a99bd1adb59dbfe1db8beb433e73709d9032b413a77e2fb7c066a"
2542+
source = "git+https://github.com/tower-rs/tower#386de64ab4deb23d7d38c359edf8875cf551b697"
25452543
dependencies = [
25462544
"futures-core",
25472545
"futures-util",
@@ -2551,8 +2549,7 @@ dependencies = [
25512549
"rand",
25522550
"slab",
25532551
"tokio",
2554-
"tokio-stream",
2555-
"tokio-util 0.6.9",
2552+
"tokio-util 0.7.0",
25562553
"tower-layer",
25572554
"tower-service",
25582555
"tracing",
@@ -2561,14 +2558,12 @@ dependencies = [
25612558
[[package]]
25622559
name = "tower-layer"
25632560
version = "0.3.1"
2564-
source = "registry+https://github.com/rust-lang/crates.io-index"
2565-
checksum = "343bc9466d3fe6b0f960ef45960509f84480bf4fd96f92901afe7ff3df9d3a62"
2561+
source = "git+https://github.com/tower-rs/tower#386de64ab4deb23d7d38c359edf8875cf551b697"
25662562

25672563
[[package]]
25682564
name = "tower-service"
25692565
version = "0.3.1"
2570-
source = "registry+https://github.com/rust-lang/crates.io-index"
2571-
checksum = "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6"
2566+
source = "git+https://github.com/tower-rs/tower#386de64ab4deb23d7d38c359edf8875cf551b697"
25722567

25732568
[[package]]
25742569
name = "tower-test"

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,7 @@ lto = true
7878

7979
[patch.crates-io]
8080
webpki = { git = "https://github.com/linkerd/webpki", branch = "cert-dns-names-0.22" }
81+
tokio = { git = "https://github.com/tokio-rs/tokio" }
82+
tower = { git = "https://github.com/tower-rs/tower" }
83+
tower-layer = { git = "https://github.com/tower-rs/tower" }
84+
tower-service = { git = "https://github.com/tower-rs/tower" }

deny.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,11 @@ deny = [
4848
{ name = "rustls", wrappers = ["tokio-rustls"] },
4949
]
5050
skip = [
51-
# Waiting on a hyper release that updates itoa to v1.
52-
{ name = "itoa", version = "0.4" },
5351
# Waiting on a tokio release that updates parking_lot to v0.12.
5452
{ name = "parking_lot", version = "0.11" },
5553
{ name = "parking_lot_core", version = "0.8" },
5654
# waiting on `h2` and `tower` releases that update h2 to v0.7
57-
{ name = "tokio-util", version = "0.6" }
55+
{ name = "tokio-util", version = "0.6" },
5856
]
5957
skip-tree = [
6058
# Hasn't seen a new release since 2017. Pulls in an older version of nom.
@@ -69,4 +67,6 @@ allow-registry = ["https://github.com/rust-lang/crates.io-index"]
6967
[sources.allow-org]
7068
github = [
7169
"linkerd",
70+
"tokio-rs",
71+
"tower-rs",
7272
]

0 commit comments

Comments
 (0)