From bf6558621620585aa8226aa48aa8d8709e036650 Mon Sep 17 00:00:00 2001 From: Tyera Date: Thu, 13 Jul 2023 22:53:48 +0300 Subject: [PATCH] v1.16: Bump and unpin tokio (backport of #32430) * Bump tokio to current, and unpin * Remove patch since ntapi is not longer in tree (cherry picked from commit c02021173db45aa9bc5ce64af0ee50097318913a) --- Cargo.toml | 6 +----- programs/sbf/Cargo.toml | 4 ---- scripts/cargo-install-all.sh | 5 +---- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0ef7ad7ebbde36..742918fb70ca35 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -380,7 +380,7 @@ tempfile = "3.5.0" test-case = "2.2.2" thiserror = "1.0.40" tiny-bip39 = "0.8.2" -tokio = "~1.14.1" +tokio = "1.29.1" tokio-serde = "0.8" tokio-stream = "0.1.12" tokio-tungstenite = "0.17.2" @@ -404,10 +404,6 @@ zstd = "0.11.2" # for details, see https://github.com/solana-labs/crossbeam/commit/fd279d707025f0e60951e429bf778b4813d1b6bf crossbeam-epoch = { git = "https://github.com/solana-labs/crossbeam", rev = "fd279d707025f0e60951e429bf778b4813d1b6bf" } -# Rust 1.69+ broke ntapi v0.3.x, which doesn't contain proper fix: -# https://github.com/MSxDOS/ntapi/pull/12 -ntapi = { git = "https://github.com/solana-labs/ntapi", rev = "97ede981a1777883ff86d142b75024b023f04fad" } - # We include the following crates as our dependencies above from crates.io: # # * spl-associated-token-account diff --git a/programs/sbf/Cargo.toml b/programs/sbf/Cargo.toml index 5c3fb6790fcc60..f002c2ff83fe6f 100644 --- a/programs/sbf/Cargo.toml +++ b/programs/sbf/Cargo.toml @@ -160,10 +160,6 @@ members = [ targets = ["x86_64-unknown-linux-gnu"] [patch.crates-io] -# Rust 1.69+ broke ntapi v0.3.x, which doesn't contain proper fix: -# https://github.com/MSxDOS/ntapi/pull/12 -ntapi = { git = "https://github.com/solana-labs/ntapi", rev = "97ede981a1777883ff86d142b75024b023f04fad" } - # We include the following crates as our dependencies from crates.io: # # * spl-associated-token-account diff --git a/scripts/cargo-install-all.sh b/scripts/cargo-install-all.sh index a71a480657aafe..67ca1665a14411 100755 --- a/scripts/cargo-install-all.sh +++ b/scripts/cargo-install-all.sh @@ -144,10 +144,7 @@ mkdir -p "$installDir/bin" if [[ -z "$validatorOnly" ]]; then # the patch-related configs are needed for rust 1.69+ on Windows; see Cargo.toml # shellcheck disable=SC2086 # Don't want to double quote $rust_version - "$cargo" $maybeRustVersion \ - --config 'patch.crates-io.ntapi.git="https://github.com/solana-labs/ntapi"' \ - --config 'patch.crates-io.ntapi.rev="97ede981a1777883ff86d142b75024b023f04fad"' \ - install --locked spl-token-cli --root "$installDir" + "$cargo" $maybeRustVersion install --locked spl-token-cli --root "$installDir" fi )