diff --git a/Cargo.toml b/Cargo.toml index 87428029af..c26c38822d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,3 +24,7 @@ members = [ [workspace.package] authors = ["Bitcoin Dev Kit Developers"] + +[workspace.lints.clippy] +print_stdout = "forbid" +print_stderr = "forbid" diff --git a/clippy.toml b/clippy.toml index 69478ceabd..97ad535ab0 100644 --- a/clippy.toml +++ b/clippy.toml @@ -1 +1,2 @@ msrv="1.63.0" +allow-print-in-tests = true diff --git a/crates/bdk/Cargo.toml b/crates/bdk/Cargo.toml index be156aa596..3e5f44242d 100644 --- a/crates/bdk/Cargo.toml +++ b/crates/bdk/Cargo.toml @@ -12,6 +12,9 @@ authors = ["Bitcoin Dev Kit Developers"] edition = "2021" rust-version = "1.63" +[lints] +workspace = true + [dependencies] anyhow = { version = "1", default-features = false } rand = "^0.8" diff --git a/crates/bitcoind_rpc/Cargo.toml b/crates/bitcoind_rpc/Cargo.toml index 98992328da..cd7dcaa1d5 100644 --- a/crates/bitcoind_rpc/Cargo.toml +++ b/crates/bitcoind_rpc/Cargo.toml @@ -12,6 +12,9 @@ readme = "README.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [dependencies] # For no-std, remember to enable the bitcoin/no-std feature bitcoin = { version = "0.31", default-features = false } diff --git a/crates/chain/Cargo.toml b/crates/chain/Cargo.toml index f66006ecb8..1c3a6c717a 100644 --- a/crates/chain/Cargo.toml +++ b/crates/chain/Cargo.toml @@ -12,6 +12,9 @@ readme = "README.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [dependencies] # For no-std, remember to enable the bitcoin/no-std feature bitcoin = { version = "0.31.0", default-features = false } diff --git a/crates/electrum/Cargo.toml b/crates/electrum/Cargo.toml index 4205f22946..477ceb16b3 100644 --- a/crates/electrum/Cargo.toml +++ b/crates/electrum/Cargo.toml @@ -11,6 +11,9 @@ readme = "README.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [dependencies] bdk_chain = { path = "../chain", version = "0.13.0", default-features = false } electrum-client = { version = "0.19" } diff --git a/crates/esplora/Cargo.toml b/crates/esplora/Cargo.toml index d91627d3d4..42b9680f21 100644 --- a/crates/esplora/Cargo.toml +++ b/crates/esplora/Cargo.toml @@ -11,6 +11,9 @@ readme = "README.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [dependencies] bdk_chain = { path = "../chain", version = "0.13.0", default-features = false } esplora-client = { version = "0.7.0", default-features = false } diff --git a/crates/file_store/Cargo.toml b/crates/file_store/Cargo.toml index 8af3c78ac3..800bb01b84 100644 --- a/crates/file_store/Cargo.toml +++ b/crates/file_store/Cargo.toml @@ -10,6 +10,9 @@ keywords = ["bitcoin", "persist", "persistence", "bdk", "file"] authors = ["Bitcoin Dev Kit Developers"] readme = "README.md" +[lints] +workspace = true + [dependencies] anyhow = { version = "1", default-features = false } bdk_chain = { path = "../chain", version = "0.13.0", features = [ "serde", "miniscript" ] } diff --git a/crates/hwi/Cargo.toml b/crates/hwi/Cargo.toml index 711a2f9485..1e546657d5 100644 --- a/crates/hwi/Cargo.toml +++ b/crates/hwi/Cargo.toml @@ -8,6 +8,9 @@ description = "Utilities to use bdk with hardware wallets" license = "MIT OR Apache-2.0" readme = "README.md" +[lints] +workspace = true + [dependencies] bdk = { path = "../bdk" } hwi = { version = "0.8.0", features = [ "miniscript"] } diff --git a/crates/persist/Cargo.toml b/crates/persist/Cargo.toml index ffce46a5bd..ff4940a781 100644 --- a/crates/persist/Cargo.toml +++ b/crates/persist/Cargo.toml @@ -12,6 +12,9 @@ authors = ["Bitcoin Dev Kit Developers"] edition = "2021" rust-version = "1.63" +[lints] +workspace = true + [dependencies] anyhow = { version = "1", default-features = false } bdk_chain = { path = "../chain", version = "0.13.0", default-features = false } diff --git a/crates/testenv/Cargo.toml b/crates/testenv/Cargo.toml index 99845c0b07..c71eebac3d 100644 --- a/crates/testenv/Cargo.toml +++ b/crates/testenv/Cargo.toml @@ -12,6 +12,9 @@ readme = "README.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [dependencies] bitcoincore-rpc = { version = "0.18" } bdk_chain = { path = "../chain", version = "0.13", default-features = false }