Skip to content

Commit 1a82c1f

Browse files
committed
Merge rust-bitcoin#5106: Update rust-bitcoin-maintainer-tools version and add extra_lints.sh
92e9ff9 Add extra_lints.sh to all crates (Jamil Lambert, PhD) 11d79ed Update to latest maintainer tools version (Jamil Lambert, PhD) 5466cb2 Fix unused import clippy lint (Jamil Lambert, PhD) Pull request description: The new version of `rust-bitcoin-maintainer-tools` supports running extra lints from a crate specific `extra_lints.sh`. - Fix an unused import lint error with no-default-features. - Update the CI commit hash to the latest version of `rust-bitcoin-maintainer-tools`. - Add an `extra_lints.sh` script with a run of clippy with `no-default-features` to every crate in the workspace. ACKs for top commit: apoelstra: ACK 92e9ff9; successfully ran local tests Tree-SHA512: 44d14d318e8af3d82891cdbfe554c33581b5bc2abd21c82b75013421cb3d8978c9cb50b3b3ff88aead0e7d0d96aeb9d3b72676b806b1aa768a2d648f259e5751
2 parents 526cd41 + 92e9ff9 commit 1a82c1f

File tree

13 files changed

+65
-8
lines changed

13 files changed

+65
-8
lines changed

.github/workflows/rust.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
uses: actions/checkout@v5
3535
with:
3636
repository: rust-bitcoin/rust-bitcoin-maintainer-tools
37-
ref: c3324024ced9bb1eb854397686919c3ff7d97e1e
37+
ref: 22eff1e5c114949d4b88a24735da38b37e7984fb
3838
path: maintainer-tools
3939
- name: "Select toolchain"
4040
uses: dtolnay/rust-toolchain@stable
@@ -58,7 +58,7 @@ jobs:
5858
uses: actions/checkout@v5
5959
with:
6060
repository: rust-bitcoin/rust-bitcoin-maintainer-tools
61-
ref: c3324024ced9bb1eb854397686919c3ff7d97e1e
61+
ref: 22eff1e5c114949d4b88a24735da38b37e7984fb
6262
path: maintainer-tools
6363
- name: "Select toolchain"
6464
uses: dtolnay/rust-toolchain@v1
@@ -83,7 +83,7 @@ jobs:
8383
uses: actions/checkout@v5
8484
with:
8585
repository: rust-bitcoin/rust-bitcoin-maintainer-tools
86-
ref: c3324024ced9bb1eb854397686919c3ff7d97e1e
86+
ref: 22eff1e5c114949d4b88a24735da38b37e7984fb
8787
path: maintainer-tools
8888
- name: "Select toolchain"
8989
uses: dtolnay/rust-toolchain@stable
@@ -109,7 +109,7 @@ jobs:
109109
uses: actions/checkout@v5
110110
with:
111111
repository: rust-bitcoin/rust-bitcoin-maintainer-tools
112-
ref: c3324024ced9bb1eb854397686919c3ff7d97e1e
112+
ref: 22eff1e5c114949d4b88a24735da38b37e7984fb
113113
path: maintainer-tools
114114
- name: "Select toolchain"
115115
uses: dtolnay/rust-toolchain@v1
@@ -136,7 +136,7 @@ jobs:
136136
uses: actions/checkout@v5
137137
with:
138138
repository: rust-bitcoin/rust-bitcoin-maintainer-tools
139-
ref: c3324024ced9bb1eb854397686919c3ff7d97e1e
139+
ref: 22eff1e5c114949d4b88a24735da38b37e7984fb
140140
path: maintainer-tools
141141
- name: "Select toolchain"
142142
uses: dtolnay/rust-toolchain@stable
@@ -160,7 +160,7 @@ jobs:
160160
uses: actions/checkout@v5
161161
with:
162162
repository: rust-bitcoin/rust-bitcoin-maintainer-tools
163-
ref: c3324024ced9bb1eb854397686919c3ff7d97e1e
163+
ref: 22eff1e5c114949d4b88a24735da38b37e7984fb
164164
path: maintainer-tools
165165
- name: "Select toolchain"
166166
uses: dtolnay/rust-toolchain@v1
@@ -186,7 +186,7 @@ jobs:
186186
uses: actions/checkout@v5
187187
with:
188188
repository: rust-bitcoin/rust-bitcoin-maintainer-tools
189-
ref: c3324024ced9bb1eb854397686919c3ff7d97e1e
189+
ref: 22eff1e5c114949d4b88a24735da38b37e7984fb
190190
path: maintainer-tools
191191
- name: "Select toolchain"
192192
uses: dtolnay/rust-toolchain@v1

addresses/contrib/extra_lints.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
set -ex
4+
5+
cargo clippy --all-targets --no-default-features --keep-going -- -D warnings

base58/contrib/extra_lints.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
set -ex
4+
5+
cargo clippy --all-targets --no-default-features --keep-going -- -D warnings

bitcoin/contrib/extra_lints.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
set -ex
4+
5+
cargo clippy --all-targets --no-default-features --keep-going -- -D warnings
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
set -ex
4+
5+
cargo clippy --all-targets --no-default-features --keep-going -- -D warnings
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
set -ex
4+
5+
cargo clippy --all-targets --no-default-features --keep-going -- -D warnings

consensus_encoding/tests/encode.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#[cfg(feature = "std")]
66
use std::io::{Cursor, Write};
77

8-
use bitcoin_consensus_encoding::{ArrayEncoder, BytesEncoder, Encodable, Encoder};
8+
use bitcoin_consensus_encoding::{ArrayEncoder, BytesEncoder, Encoder};
9+
#[cfg(feature = "alloc")]
10+
use bitcoin_consensus_encoding::{Encodable};
911

1012
// Simple test type that implements Encodable.
1113
#[cfg(feature = "alloc")]

hashes/contrib/extra_lints.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
set -ex
4+
5+
cargo clippy --all-targets --no-default-features --keep-going -- -D warnings

internals/contrib/extra_lints.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
set -ex
4+
5+
cargo clippy --all-targets --no-default-features --keep-going -- -D warnings

io/contrib/extra_lints.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
set -ex
4+
5+
cargo clippy --all-targets --no-default-features --keep-going -- -D warnings

0 commit comments

Comments
 (0)