From 1f984e977721ff8cc7982fa0e0e10ad355791f86 Mon Sep 17 00:00:00 2001 From: Romain Lespinasse Date: Sun, 7 Jan 2024 21:22:24 +0100 Subject: [PATCH] (build) Prepare the next release --- CHANGELOG.md | 10 +++++++++- Makefile | 10 +++++----- release.toml | 11 +++++------ 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1257aca..713ff5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,15 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] - ReleaseDate + +### Added + +- Move to Rust 2021 to be up-to-date + +### Fixed + +- Update dependencies to avoid vulnerabilities + ## [1.2.0] - 2022-07-25 ### Added @@ -67,5 +76,4 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). [Unreleased]: https://github.com/rlespinasse/wints/compare/v1.2.0...HEAD [1.2.0]: https://github.com/rlespinasse/wints/compare/v1.1.0...v1.2.0 [1.1.0]: https://github.com/rlespinasse/wints/compare/v1.0.0...v1.1.0 - [1.0.0]: https://github.com/rlespinasse/drawio-exported/compare/cb9aec8...v1.0.0 diff --git a/Makefile b/Makefile index be33dbd..d1205a6 100644 --- a/Makefile +++ b/Makefile @@ -22,15 +22,15 @@ clippy: clippy-fix: @echo + $@ - cargo clippy --fix --all-features --all-targets --allow-dirty + cargo clippy --fix --all-features --all-targets --allow-dirty --allow-staged fix: @echo + $@ - cargo fix --allow-dirty + cargo fix --allow-dirty --allow-staged idioms-fix: @echo + $@ - cargo fix --edition-idioms --allow-dirty + cargo fix --edition-idioms --allow-dirty --allow-staged update: @echo + $@ @@ -47,8 +47,8 @@ deps: release-%: @echo + $@ - cargo release -- $* + cargo release --execute $* dryrun-release-%: @echo + $@ - cargo release --dry-run -vv -- $* + cargo release $* diff --git a/release.toml b/release.toml index c089004..737bf2e 100644 --- a/release.toml +++ b/release.toml @@ -1,9 +1,8 @@ pre-release-commit-message = "(build) Release {{version}}" -no-dev-version = true pre-release-replacements = [ - { file = "CHANGELOG.md", search = "Unreleased", replace = "{{version}}" }, - { file = "CHANGELOG.md", search = "\\.\\.\\.HEAD", replace = "...{{tag_name}}" }, - { file = "CHANGELOG.md", search = "ReleaseDate", replace = "{{date}}" }, - { file = "CHANGELOG.md", search = "", replace = "\n## [Unreleased] - ReleaseDate" }, - { file = "CHANGELOG.md", search = "", replace = "\n[Unreleased]: https://github.com/rlespinasse/wints/compare/{{tag_name}}...HEAD" }, + {file="CHANGELOG.md", search="Unreleased", replace="{{version}}"}, + {file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}"}, + {file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}"}, + {file="CHANGELOG.md", search="", replace="\n## [Unreleased] - ReleaseDate"}, + {file="CHANGELOG.md", search="", replace="\n[Unreleased]: https://github.com/rlespinasse/drawio-exporter/compare/{{tag_name}}...HEAD"}, ]