From 6b0c0013c05edd2c11247ecd512a474e6619b0f6 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 22 Aug 2024 16:44:36 +1000 Subject: [PATCH 1/2] Add update-lock-files and improve justfile Copy the update script from `rust-bitcoin` and improve the `justfile` to add a command to run the script. While we are at it use the `nightly-version` file in `cargo` commands that use the nightly toolchain. --- contrib/update-lock-files.sh | 11 +++++++++++ justfile | 16 ++++++++++------ 2 files changed, 21 insertions(+), 6 deletions(-) create mode 100755 contrib/update-lock-files.sh diff --git a/contrib/update-lock-files.sh b/contrib/update-lock-files.sh new file mode 100755 index 0000000..02ba1f7 --- /dev/null +++ b/contrib/update-lock-files.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +# +# Update the minimal/recent lock file + +set -euo pipefail + +for file in Cargo-minimal.lock Cargo-recent.lock; do + cp --force "$file" Cargo.lock + cargo check + cp --force Cargo.lock "$file" +done diff --git a/justfile b/justfile index 1d7022b..28a9de0 100644 --- a/justfile +++ b/justfile @@ -16,12 +16,16 @@ test: # Lint everything. lint: - cargo clippy --all --all-targets --all-features -- --deny warnings + cargo +$(cat ./nightly-version) clippy --all-targets --all-features -- --deny warnings -# Run the formatter +# Run cargo fmt fmt: - cargo +nightly fmt --all + cargo +$(cat ./nightly-version) fmt --all -# Check the formatting -format: - cargo +nightly fmt --all --check +# Generate documentation. +docsrs *flags: + RUSTDOCFLAGS="--cfg docsrs -D warnings -D rustdoc::broken-intra-doc-links" cargo +$(cat ./nightly-version) doc --all-features {{flags}} + +# Update the recent and minimal lock files. +update-lock-files: + contrib/update-lock-files.sh From b5b1c2f648c955982f453bf0410ff7060b3826bf Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 22 Aug 2024 16:38:12 +1000 Subject: [PATCH 2/2] Bump version to 0.2.0 In preparation for release add a changelog entry, update the lock files, and bump the version number. --- CHANGELOG.md | 7 +++++++ Cargo-minimal.lock | 2 +- Cargo-recent.lock | 2 +- Cargo.toml | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf4911b..50d24c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# 0.2.0 - 2024-08-22 + +- Bump MSRV to Rust `v1.63.0` [#27](https://github.com/tcharding/rust-psbt/pull/27) +- Upgrade dependencies [#26](https://github.com/tcharding/rust-psbt/pull/26) + - `bitcoin v0.32.0` + - `miniscript 12.2.0` + # 0.1.1 - 2024-02-08 Add various combinations of the three bips as keywords. diff --git a/Cargo-minimal.lock b/Cargo-minimal.lock index c03dd59..fe2979f 100644 --- a/Cargo-minimal.lock +++ b/Cargo-minimal.lock @@ -195,7 +195,7 @@ dependencies = [ [[package]] name = "psbt-v2" -version = "0.1.1" +version = "0.2.0" dependencies = [ "anyhow", "bincode", diff --git a/Cargo-recent.lock b/Cargo-recent.lock index c03dd59..fe2979f 100644 --- a/Cargo-recent.lock +++ b/Cargo-recent.lock @@ -195,7 +195,7 @@ dependencies = [ [[package]] name = "psbt-v2" -version = "0.1.1" +version = "0.2.0" dependencies = [ "anyhow", "bincode", diff --git a/Cargo.toml b/Cargo.toml index dac050a..67181e4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "psbt-v2" -version = "0.1.1" +version = "0.2.0" authors = ["Tobin C. Harding "] license = "CC0-1.0" repository = "https://github.com/tcharding/rust-psbt/"