From bcb7fc84b6ca1e781390b27c1688f6f5fc217d4c Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Sat, 16 Nov 2024 20:13:26 +1300 Subject: [PATCH] Depend on bitcoin_hashes, tokio-util, tokio-stream --- Cargo.lock | 34 ++++++++++++++++++++++++++++++++++ Cargo.toml | 3 +++ 2 files changed, 37 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index a5f6d14..281716f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -179,6 +179,12 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9425c3bf7089c983facbae04de54513cce73b41c7f9ff8c845b54e7bc64ebbfb" +[[package]] +name = "bitcoin-io" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b47c4ab7a93edb0c7198c5535ed9b52b63095f4e9b45279c6736cec4b856baf" + [[package]] name = "bitcoin_hashes" version = "0.13.0" @@ -195,6 +201,7 @@ version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bb18c03d0db0247e147a21a6faafd5a7eb851c743db062de72018b6b7e8e4d16" dependencies = [ + "bitcoin-io", "hex-conservative 0.2.1", ] @@ -259,6 +266,7 @@ name = "chorus" version = "1.5.3" dependencies = [ "base64 0.22.1", + "bitcoin_hashes 0.14.0", "dashmap", "env_logger", "futures", @@ -283,6 +291,8 @@ dependencies = [ "textnonce", "tokio", "tokio-rustls", + "tokio-stream", + "tokio-util", "toml", "url", ] @@ -1827,6 +1837,17 @@ dependencies = [ "tokio", ] +[[package]] +name = "tokio-stream" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f4e6ce100d0eb49a2734f8c0812bcd324cf357d21810932c5df6b96ef2b86f1" +dependencies = [ + "futures-core", + "pin-project-lite", + "tokio", +] + [[package]] name = "tokio-tungstenite" version = "0.24.0" @@ -1839,6 +1860,19 @@ dependencies = [ "tungstenite", ] +[[package]] +name = "tokio-util" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61e7c3654c13bcd040d4a03abee2c75b1d14a37b423cf5a813ceae1cc903ec6a" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + [[package]] name = "toml" version = "0.8.19" diff --git a/Cargo.toml b/Cargo.toml index 67d22d3..39281ff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,7 @@ edition = "2021" [dependencies] base64 = "0.22" +bitcoin_hashes = { version = "0.14", features = [ "bitcoin-io" ] } dashmap = "6" env_logger = "0.11" futures = "0.3" @@ -32,6 +33,8 @@ speedy = "0.8" textnonce = "1" tokio = { version = "1", features = [ "full" ] } tokio-rustls = "0.26" +tokio-util = { version = "0.7", features = [ "io" ] } +tokio-stream = "0.1" toml = "0.8" url = "2.5"