Update tokio version to the latest to avoid tokio versions with security bugs.
authorolegkubrakov <oleg@lightspark.com>
Wed, 13 Dec 2023 18:37:58 +0000 (10:37 -0800)
committerolegkubrakov <oleg@lightspark.com>
Wed, 13 Dec 2023 18:37:58 +0000 (10:37 -0800)
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).

lightning-background-processor/Cargo.toml
lightning-block-sync/Cargo.toml
lightning-net-tokio/Cargo.toml
lightning-transaction-sync/Cargo.toml

index 53358d43c9e8d8335cd2e6ecd1b6b55c83b74557..904c821fdb17929be252b95831bda1eefc7987e0 100644 (file)
@@ -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" }
index c7f7191ed55e2704b11e2be5e9e740668c42cc62..89584744047b2ea89835c641b94c67d3c4b0f531 100644 (file)
@@ -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" ] }
index e491dec5d458f413038592ff7db26e5849eb28f6..05c048d5168c5173bd73ae982d692ad390d7565a 100644 (file)
@@ -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"] }
index d712229b0a820b841579f883594dcfed7a5f44ac..65f44ed3a666424bb095e244bf2ba0a8f3acf5ca 100644 (file)
@@ -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"] }