From 9d55217a468868e89c404edcf90229df990f666d Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 7 Oct 2025 13:28:07 +1100 Subject: [PATCH 1/4] Remove doc_auto_cfg Seems this has been removed and recent nightly compiler won't build this crate as is. Some random post says use `doc_cfg` instead but we have that already so just remove the `doc_auto_cfg`. I didn't think too hard about this. ref: https://users.rust-lang.org/t/fallout-from-removal-of-doc-auto-cfg/134435 --- src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index a8eb3987..a71b9b6f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,7 +37,6 @@ #![cfg_attr(all(not(test), not(feature = "std")), no_std)] // Experimental features we need. #![cfg_attr(docsrs, feature(doc_cfg))] -#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Coding conventions #![warn(missing_docs)] From c1314add39c5bc7bd1f3e7689a6500235e6f7526 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Mon, 24 Nov 2025 08:50:18 +1100 Subject: [PATCH 2/4] Update the nightly version Copy from `rust-bitcoin` master branch, for no reason other than its quick and easy to do and is reasonably new. --- nightly-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nightly-version b/nightly-version index b8be08f3..fa9b5fe6 100644 --- a/nightly-version +++ b/nightly-version @@ -1 +1 @@ -nightly-2024-09-18 +nightly-2025-09-26 From 14e911701862a2a22ac0de26c751bb554ba698bb Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 25 Nov 2025 11:29:29 +1100 Subject: [PATCH 3/4] ci: Remove unused test script We don't use this script anymore we use the `rust-bitcoin-maintainer-tools` repo for CI. --- contrib/test.sh | 77 ------------------------------------------------- 1 file changed, 77 deletions(-) delete mode 100755 contrib/test.sh diff --git a/contrib/test.sh b/contrib/test.sh deleted file mode 100755 index c14ad81c..00000000 --- a/contrib/test.sh +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/sh - -set -ex - -FEATURES="std alloc serde" -MSRV="1\.63\.0" - -cargo --version -rustc --version - -# Work out if we are using a nightly toolchain. -NIGHTLY=false -if cargo --version | grep nightly >/dev/null; then - NIGHTLY=true -fi - -# Make all cargo invocations verbose -export CARGO_TERM_VERBOSE=true - -# Defaults / sanity checks -cargo build -cargo test - -cargo run --example hexy - -if [ "$DO_LINT" = true ] -then - cargo clippy --all-features --all-targets -- -D warnings - cargo clippy --locked --example hexy -- -D warnings - cargo clippy --locked --example serde --features=serde -- -D warnings -fi - -if [ "$DO_FEATURE_MATRIX" = true ]; then - cargo build --locked --no-default-features - cargo test --locked --no-default-features - - # All features - cargo build --locked --no-default-features --features="$FEATURES" - cargo test --locked --no-default-features --features="$FEATURES" - # Single features - for feature in ${FEATURES} - do - cargo build --locked --no-default-features --features="$feature" - cargo test --locked --no-default-features --features="$feature" - # All combos of two features - for featuretwo in ${FEATURES}; do - cargo build --locked --no-default-features --features="$feature $featuretwo" - cargo test --locked --no-default-features --features="$feature $featuretwo" - done - done -fi - -cargo run --locked --example hexy -cargo run --locked --example custom -cargo run --locked --example wrap_array_display_hex_trait -cargo run --locked --example wrap_array_fmt_traits - -# Build the docs if told to (this only works with the nightly toolchain) -if [ "$DO_DOCSRS" = true ]; then - RUSTDOCFLAGS="--cfg docsrs -D warnings -D rustdoc::broken-intra-doc-links" cargo +nightly doc --all-features -fi - -# Build the docs with a stable toolchain, in unison with the DO_DOCSRS command -# above this checks that we feature guarded docs imports correctly. -if [ "$DO_DOCS" = true ]; then - RUSTDOCFLAGS="-D warnings" cargo +stable doc --all-features -fi - -# Run formatter if told to. -if [ "$DO_FMT" = true ]; then - if [ "$NIGHTLY" = false ]; then - echo "DO_FMT requires a nightly toolchain (consider using RUSTUP_TOOLCHAIN)" - exit 1 - fi - rustup component add rustfmt - cargo fmt --check -fi From 5f5332f0c80cc3e7cc0a064f1e42676e6ead646b Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Mon, 24 Nov 2025 08:48:57 +1100 Subject: [PATCH 4/4] Bump the version to 0.3.1 In preparation for release add changelog entry, bump the version, and update the lock files. --- CHANGELOG.md | 4 ++++ Cargo-minimal.lock | 2 +- Cargo-recent.lock | 2 +- Cargo.toml | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e56f1a9..5b613928 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.3.1 - 2025-11-24 + +- Remove `doc_auto_cfg` because it breaks the docs builds on crates.io + # 0.3.0 - 2024-09-18 - Re-implement `HexWriter` [#113](https://github.com/rust-bitcoin/hex-conservative/pull/113) diff --git a/Cargo-minimal.lock b/Cargo-minimal.lock index a272c4f6..cde75275 100644 --- a/Cargo-minimal.lock +++ b/Cargo-minimal.lock @@ -16,7 +16,7 @@ checksum = "5edd69c67b2f8e0911629b7e6b8a34cb3956613cd7c6e6414966dee349c2db4f" [[package]] name = "hex-conservative" -version = "0.3.0" +version = "0.3.1" dependencies = [ "arrayvec", "serde", diff --git a/Cargo-recent.lock b/Cargo-recent.lock index 08aa3323..d9e0b99c 100644 --- a/Cargo-recent.lock +++ b/Cargo-recent.lock @@ -10,7 +10,7 @@ checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" [[package]] name = "hex-conservative" -version = "0.3.0" +version = "0.3.1" dependencies = [ "arrayvec", "serde", diff --git a/Cargo.toml b/Cargo.toml index 47ff9df7..ef2dda07 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hex-conservative" -version = "0.3.0" +version = "0.3.1" authors = ["Martin Habovštiak ", "Andrew Poelstra "] license = "CC0-1.0" repository = "https://github.com/rust-bitcoin/hex-conservative"