From: olegkubrakov Date: Wed, 13 Dec 2023 18:37:58 +0000 (-0800) Subject: Update tokio version to the latest to avoid tokio versions with security bugs. X-Git-Tag: v0.0.119~8^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=348db3baf7687081c43276566982c6fbc0019651;p=rust-lightning Update tokio version to the latest to avoid tokio versions with security bugs. This commit will set tokio version requirement to >=1.35.0, <2.0.0 to avoid versions with security issues (https://rustsec.org/packages/tokio.html). --- diff --git a/lightning-background-processor/Cargo.toml b/lightning-background-processor/Cargo.toml index 53358d43c..904c821fd 100644 --- a/lightning-background-processor/Cargo.toml +++ b/lightning-background-processor/Cargo.toml @@ -26,7 +26,7 @@ lightning = { version = "0.0.118", path = "../lightning", default-features = fal lightning-rapid-gossip-sync = { version = "0.0.118", path = "../lightning-rapid-gossip-sync", default-features = false } [dev-dependencies] -tokio = { version = "1.14", features = [ "macros", "rt", "rt-multi-thread", "sync", "time" ] } +tokio = { version = "1.35", features = [ "macros", "rt", "rt-multi-thread", "sync", "time" ] } lightning = { version = "0.0.118", path = "../lightning", features = ["_test_utils"] } lightning-invoice = { version = "0.26.0", path = "../lightning-invoice" } lightning-persister = { version = "0.0.118", path = "../lightning-persister" } diff --git a/lightning-block-sync/Cargo.toml b/lightning-block-sync/Cargo.toml index c7f7191ed..895847440 100644 --- a/lightning-block-sync/Cargo.toml +++ b/lightning-block-sync/Cargo.toml @@ -21,10 +21,10 @@ rpc-client = [ "serde_json", "chunked_transfer" ] bitcoin = "0.30.2" hex = { package = "hex-conservative", version = "0.1.1", default-features = false } lightning = { version = "0.0.118", path = "../lightning" } -tokio = { version = "1.0", features = [ "io-util", "net", "time", "rt" ], optional = true } +tokio = { version = "1.35", features = [ "io-util", "net", "time", "rt" ], optional = true } serde_json = { version = "1.0", optional = true } chunked_transfer = { version = "1.4", optional = true } [dev-dependencies] lightning = { version = "0.0.118", path = "../lightning", features = ["_test_utils"] } -tokio = { version = "1.14", features = [ "macros", "rt" ] } +tokio = { version = "1.35", features = [ "macros", "rt" ] } diff --git a/lightning-net-tokio/Cargo.toml b/lightning-net-tokio/Cargo.toml index e491dec5d..05c048d51 100644 --- a/lightning-net-tokio/Cargo.toml +++ b/lightning-net-tokio/Cargo.toml @@ -17,8 +17,8 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] bitcoin = "0.30.2" lightning = { version = "0.0.118", path = "../lightning" } -tokio = { version = "1.0", features = [ "rt", "sync", "net", "time" ] } +tokio = { version = "1.35", features = [ "rt", "sync", "net", "time" ] } [dev-dependencies] -tokio = { version = "1.14", features = [ "macros", "rt", "rt-multi-thread", "sync", "net", "time" ] } +tokio = { version = "1.35", features = [ "macros", "rt", "rt-multi-thread", "sync", "net", "time" ] } lightning = { version = "0.0.118", path = "../lightning", features = ["_test_utils"] } diff --git a/lightning-transaction-sync/Cargo.toml b/lightning-transaction-sync/Cargo.toml index d712229b0..65f44ed3a 100644 --- a/lightning-transaction-sync/Cargo.toml +++ b/lightning-transaction-sync/Cargo.toml @@ -31,7 +31,7 @@ electrum-client = { version = "0.18.0", optional = true } [dev-dependencies] lightning = { version = "0.0.118", path = "../lightning", default-features = false, features = ["std", "_test_utils"] } -tokio = { version = "1.14.0", features = ["full"] } +tokio = { version = "1.35.0", features = ["full"] } [target.'cfg(not(no_download))'.dev-dependencies] electrsd = { version = "0.26.0", default-features = false, features = ["legacy", "esplora_a33e97e1", "bitcoind_25_0"] }