Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/cont_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,18 @@ jobs:
- name: Clippy
run: cargo clippy --all-features --all-targets -- -D warnings

docs_check:
name: Check cargo doc
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
# This action automatically reads and applies rust-toolchain.toml
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: true
- name: Check docs
run: RUSTDOCFLAGS='-D warnings' cargo doc --workspace --all-features --no-deps
4 changes: 4 additions & 0 deletions ci/pin-msrv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ set -euo pipefail

# cargo clean
# rustup default 1.85.0

cargo update -p icu_normalizer --precise "2.1.1"
cargo update -p icu_provider --precise "2.1.1"
cargo update -p icu_locale_core --precise "2.1.1"
7 changes: 6 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ alias c := check
alias f := fmt
alias t := test
alias p := pre-push
alias d := doc

_default:
@just --list
Expand All @@ -28,5 +29,9 @@ fmt:
test:
cargo test --all-features

# Check docs on the workspace
doc:
RUSTDOCFLAGS='-D warnings' cargo doc --workspace --all-features --no-deps

# Run pre-push suite: format, check, and test
pre-push: fmt check test
pre-push: fmt check test doc
2 changes: 1 addition & 1 deletion src/wallet/changeset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ type IndexedTxGraphChangeSet =
/// [merged]: bdk_chain::Merge
/// [`network`]: Self::network
/// [`PersistedWallet`]: crate::PersistedWallet
/// [SQLite]: bdk_chain::rusqlite_impl
/// [SQLite]: <https://docs.rs/rusqlite/0.31.0/rusqlite/>
/// [`Update`]: crate::Update
/// [`WalletPersister`]: crate::WalletPersister
/// [`Wallet::staged`]: crate::Wallet::staged
Expand Down
5 changes: 5 additions & 0 deletions src/wallet/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ use bitcoin::{absolute, psbt, Amount, BlockHash, Network, OutPoint, Sequence, Tx
use core::fmt;

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

/// Represents a mismatch with what is loaded and what is expected from [`LoadParams`].
///
/// [`LoadParams`]: crate::wallet::LoadParams
#[derive(Debug, PartialEq)]
pub enum LoadMismatch {
/// Network does not match.
Expand Down