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" 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 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 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)]