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
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ jobs:
- name: Check formatting
run: cargo fmt -- --check

- name: Check documentation
env:
RUSTDOCFLAGS: "-D warnings"
run: cargo doc --no-deps --all-features --document-private-items

- name: Install llvm-tools for coverage
run: rustup component add llvm-tools-preview

Expand Down
2 changes: 1 addition & 1 deletion src/core/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ pub trait BlockHashExt: AsPtr<btck_BlockHash> + Display {
/// - **Display byte order**: Reversed for human-readable hex strings
///
/// The [`to_bytes`](BlockHashExt::to_bytes) method returns internal byte order,
/// while [`Display`](std::fmt::Display) formatting shows the reversed bytes.
/// while [`Display`] formatting shows the reversed bytes.
///
/// # Thread Safety
///
Expand Down
6 changes: 3 additions & 3 deletions src/core/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
//! This module provides types for working with script pubkeys (also known as
//! "locking scripts"), which define the conditions that must be met to spend a
//! [`TxOut`].
//! [`crate::TxOut`].
//!
//! # Types
//!
Expand Down Expand Up @@ -86,14 +86,14 @@ pub trait ScriptPubkeyExt: AsPtr<btck_ScriptPubkey> {
}
}

/// A single script pubkey containing spending conditions for a [`TxOut`].
/// A single script pubkey containing spending conditions for a [`crate::TxOut`].
///
/// Script pubkeys define the conditions that must be met to spend a transaction output.
/// They are also called "locking scripts" because they lock the output to specific
/// spending conditions.
///
/// Script pubkeys can be created from raw script bytes or retrieved from an existing
/// [`TxOut`].
/// [`crate::TxOut`].
///
/// # Examples
///
Expand Down
2 changes: 1 addition & 1 deletion src/core/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ pub trait TxidExt: AsPtr<btck_Txid> + Display {
/// - **Display byte order**: Reversed for human-readable hex strings
///
/// The [`to_bytes`](TxidExt::to_bytes) method returns internal byte order,
/// while [`Display`](std::fmt::Display) formatting shows the reversed bytes.
/// while [`Display`] formatting shows the reversed bytes.
///
/// # Thread Safety
///
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub mod state;
/// Serializes data using a C callback function pattern.
///
/// Takes a C function that writes data via a callback and returns the
/// serialized bytes as a Vec<u8>.
/// serialized bytes as a `Vec<u8>`.
fn c_serialize<F>(c_function: F) -> Result<Vec<u8>, KernelError>
where
F: FnOnce(
Expand Down
2 changes: 1 addition & 1 deletion src/state/chainstate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub enum ProcessBlockResult {
/// Block failed validation.
///
/// The block violated one or more consensus rules. See
/// [`ContextBuilder::with_block_checked_validation`] for retrieving
/// [`crate::ContextBuilder::with_block_checked_validation`] for retrieving
/// detailed error information.
Rejected,
}
Expand Down
Loading