Skip to content

Commit a02d3c8

Browse files
committed
chore: add print_stdout/print_stderr lints to workspace level
1 parent 2703cc6 commit a02d3c8

File tree

11 files changed

+32
-0
lines changed

11 files changed

+32
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ members = [
2424

2525
[workspace.package]
2626
authors = ["Bitcoin Dev Kit Developers"]
27+
28+
[workspace.lints.clippy]
29+
print_stdout = "forbid"
30+
print_stderr = "forbid"

clippy.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
msrv="1.63.0"
2+
allow-print-in-tests = true

crates/bdk/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ authors = ["Bitcoin Dev Kit Developers"]
1212
edition = "2021"
1313
rust-version = "1.63"
1414

15+
[lints]
16+
workspace = true
17+
1518
[dependencies]
1619
anyhow = { version = "1", default-features = false }
1720
rand = "^0.8"

crates/bitcoind_rpc/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ readme = "README.md"
1212

1313
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1414

15+
[lints]
16+
workspace = true
17+
1518
[dependencies]
1619
# For no-std, remember to enable the bitcoin/no-std feature
1720
bitcoin = { version = "0.31", default-features = false }

crates/chain/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ readme = "README.md"
1212

1313
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1414

15+
[lints]
16+
workspace = true
17+
1518
[dependencies]
1619
# For no-std, remember to enable the bitcoin/no-std feature
1720
bitcoin = { version = "0.31.0", default-features = false }

crates/electrum/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ readme = "README.md"
1111

1212
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1313

14+
[lints]
15+
workspace = true
16+
1417
[dependencies]
1518
bdk_chain = { path = "../chain", version = "0.13.0", default-features = false }
1619
electrum-client = { version = "0.19" }

crates/esplora/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ readme = "README.md"
1111

1212
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1313

14+
[lints]
15+
workspace = true
16+
1417
[dependencies]
1518
bdk_chain = { path = "../chain", version = "0.13.0", default-features = false }
1619
esplora-client = { version = "0.7.0", default-features = false }

crates/file_store/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ keywords = ["bitcoin", "persist", "persistence", "bdk", "file"]
1010
authors = ["Bitcoin Dev Kit Developers"]
1111
readme = "README.md"
1212

13+
[lints]
14+
workspace = true
15+
1316
[dependencies]
1417
anyhow = { version = "1", default-features = false }
1518
bdk_chain = { path = "../chain", version = "0.13.0", features = [ "serde", "miniscript" ] }

crates/hwi/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ description = "Utilities to use bdk with hardware wallets"
88
license = "MIT OR Apache-2.0"
99
readme = "README.md"
1010

11+
[lints]
12+
workspace = true
13+
1114
[dependencies]
1215
bdk = { path = "../bdk" }
1316
hwi = { version = "0.8.0", features = [ "miniscript"] }

crates/persist/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ authors = ["Bitcoin Dev Kit Developers"]
1212
edition = "2021"
1313
rust-version = "1.63"
1414

15+
[lints]
16+
workspace = true
17+
1518
[dependencies]
1619
anyhow = { version = "1", default-features = false }
1720
bdk_chain = { path = "../chain", version = "0.13.0", default-features = false }

0 commit comments

Comments
 (0)