Skip to content

Commit 2ab8e35

Browse files
authored
Merge pull request #20 from rustaceanrob/workspace-dep-7-28
Add `bitcoin` as a workspace dependency
2 parents 5a63c35 + 69ee981 commit 2ab8e35

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
[workspace]
22
members = ["accumulator", "p2p", "peers", "utxo_verifier"]
3-
default-members = ["accumulator"]
3+
default-members = ["accumulator", "p2p", "peers", "utxo_verifier"]
44
resolver = "3"
5+
6+
[workspace.dependencies]
7+
bitcoin = { git = "https://github.com/rust-bitcoin/rust-bitcoin", default-features = false, rev = "2bb9bb6bc99ba07ed3d543a512ec3d2a9462770d" }

accumulator/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ version = "0.1.0"
44
edition = "2024"
55

66
[dependencies]
7-
bitcoin = { git = "https://github.com/rust-bitcoin/rust-bitcoin", default-features = false, rev = "2bb9bb6bc99ba07ed3d543a512ec3d2a9462770d" }
7+
bitcoin = { workspace = true }
88

99
[dev-dependencies]
10-
bitcoin = { git = "https://github.com/rust-bitcoin/rust-bitcoin", default-features = true, rev = "2bb9bb6bc99ba07ed3d543a512ec3d2a9462770d" }
1110
rusqlite = { version = "0.36.0", features = ["bundled"] }

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
devShells.default = with pkgs; mkShell {
2020
buildInputs = [
2121
pkg-config
22-
rust-bin.beta.latest.default
22+
rust-bin.nightly.latest.default
2323
];
2424
};
2525
}

p2p/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ categories = ["cryptography::cryptocurrencies"]
99
rust-version = "1.75.0"
1010

1111
[dependencies]
12-
bitcoin = { git = "https://github.com/rust-bitcoin/rust-bitcoin", default-features = true, rev = "2bb9bb6bc99ba07ed3d543a512ec3d2a9462770d" }
12+
bitcoin = { workspace = true, features = ["rand-std"] }
1313
p2p = { package = "bitcoin-p2p-messages", git = "https://github.com/rust-bitcoin/rust-bitcoin", rev = "2bb9bb6bc99ba07ed3d543a512ec3d2a9462770d" }
1414
tokio = { version = "1", default-features = false, optional = true, features = [
1515
"sync",

p2p/src/tokio_ext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub trait TokioConnectionExt {
3838
tcp_stream: TcpStream,
3939
) -> Result<(TcpStream, ConnectionContext), Self::Error>;
4040

41-
///
41+
/// Open a feeler to test a node's liveliness
4242
#[allow(async_fn_in_trait)]
4343
async fn open_feeler(self, to: impl Into<SocketAddr>) -> Result<Feeler, Self::Error>;
4444
}

peers/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
edition = "2024"
55

66
[dependencies]
7-
bitcoin = { git = "https://github.com/rust-bitcoin/rust-bitcoin", default-features = true, rev = "2bb9bb6bc99ba07ed3d543a512ec3d2a9462770d" }
7+
bitcoin = { workspace = true, features = ["rand-std"] }
88
tokio = { version = "1", default-features = false, optional = true, features = [
99
"io-util",
1010
"net",

utxo_verifier/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2024"
55

66
[dependencies]
77
accumulator = { path = "../accumulator/" }
8-
bitcoin = { git = "https://github.com/rust-bitcoin/rust-bitcoin", default-features = true, rev = "2bb9bb6bc99ba07ed3d543a512ec3d2a9462770d" }
8+
bitcoin = { workspace = true, features = ["rand-std"] }
99
peers = { path = "../peers/", default-features = false }
1010
p2p = { path = "../p2p/", package = "swiftsync-p2p", default-features = false }
1111
p2p-messages = { package = "bitcoin-p2p-messages", git = "https://github.com/rust-bitcoin/rust-bitcoin", rev = "2bb9bb6bc99ba07ed3d543a512ec3d2a9462770d" }

0 commit comments

Comments
 (0)