Skip to content

Commit fb7681a

Browse files
committed
Merge #416: ci: add docs check job
8b4a51e fix(docs): use correct `intra-doc-links` (Leonardo Lima) dbf3d8e ci: add job to check `cargo doc` (Leonardo Lima) 2f2346e fix(ci): pin required `icu_*` dependencies (Leonardo Lima) Pull request description: ### Description As we are adding in bitcoindevkit/bdk#2158, this PR adds a new CI job and justfile recipe to check for the documentation. ### Notes to the reviewers ### Changelog notice ``` ### Added - ci: add new `docs_check` job to check for any error or warning in docs. ### Changed - ci(msrv): pin `icu_*` dependencies for 1.85.0 supported MSRV - fix(docs): use correct `intra_doc_links`. ``` ### Checklists #### All Submissions: * [x] I've signed all my commits * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md) * [x] I ran `just p` before pushing ACKs for top commit: ValuedMammal: ACK 8b4a51e luisschwab: ACK 8b4a51e Tree-SHA512: 9fbe0190776c348867b13c06ec6f2c272fe5ee41995f3ff5898b7d149affc5e602d8afa06669702af7a04ad15bb2a7c940110830cd7e11116c4974ceda423877
2 parents 826b19f + 8b4a51e commit fb7681a

File tree

5 files changed

+31
-2
lines changed

5 files changed

+31
-2
lines changed

.github/workflows/cont_integration.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,18 @@ jobs:
146146
- name: Clippy
147147
run: cargo clippy --all-features --all-targets -- -D warnings
148148

149+
docs_check:
150+
name: Check cargo doc
151+
runs-on: ubuntu-latest
152+
steps:
153+
- name: Checkout
154+
uses: actions/checkout@v6
155+
with:
156+
persist-credentials: false
157+
# This action automatically reads and applies rust-toolchain.toml
158+
- name: Install Rust toolchain
159+
uses: actions-rust-lang/setup-rust-toolchain@v1
160+
with:
161+
cache: true
162+
- name: Check docs
163+
run: RUSTDOCFLAGS='-D warnings' cargo doc --workspace --all-features --no-deps

ci/pin-msrv.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ set -euo pipefail
99

1010
# cargo clean
1111
# rustup default 1.85.0
12+
13+
cargo update -p icu_normalizer --precise "2.1.1"
14+
cargo update -p icu_provider --precise "2.1.1"
15+
cargo update -p icu_locale_core --precise "2.1.1"

justfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ alias c := check
33
alias f := fmt
44
alias t := test
55
alias p := pre-push
6+
alias d := doc
67

78
_default:
89
@just --list
@@ -28,5 +29,9 @@ fmt:
2829
test:
2930
cargo test --all-features
3031

32+
# Check docs on the workspace
33+
doc:
34+
RUSTDOCFLAGS='-D warnings' cargo doc --workspace --all-features --no-deps
35+
3136
# Run pre-push suite: format, check, and test
32-
pre-push: fmt check test
37+
pre-push: fmt check test doc

src/wallet/changeset.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ type IndexedTxGraphChangeSet =
127127
/// [merged]: bdk_chain::Merge
128128
/// [`network`]: Self::network
129129
/// [`PersistedWallet`]: crate::PersistedWallet
130-
/// [SQLite]: bdk_chain::rusqlite_impl
130+
/// [SQLite]: <https://docs.rs/rusqlite/0.31.0/rusqlite/>
131131
/// [`Update`]: crate::Update
132132
/// [`WalletPersister`]: crate::WalletPersister
133133
/// [`Wallet::staged`]: crate::Wallet::staged

src/wallet/error.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ use bitcoin::{absolute, psbt, Amount, BlockHash, Network, OutPoint, Sequence, Tx
2323
use core::fmt;
2424

2525
/// The error type when loading a [`Wallet`] from a [`ChangeSet`].
26+
///
27+
/// [`Wallet`]: crate::wallet::Wallet
28+
/// [`ChangeSet`]: crate::wallet::ChangeSet
2629
#[derive(Debug, PartialEq)]
2730
pub enum LoadError {
2831
/// There was a problem with the passed-in descriptor(s).
@@ -54,6 +57,8 @@ impl fmt::Display for LoadError {
5457
impl core::error::Error for LoadError {}
5558

5659
/// Represents a mismatch with what is loaded and what is expected from [`LoadParams`].
60+
///
61+
/// [`LoadParams`]: crate::wallet::LoadParams
5762
#[derive(Debug, PartialEq)]
5863
pub enum LoadMismatch {
5964
/// Network does not match.

0 commit comments

Comments
 (0)