From ddfe8d9e4543fa8c2f9209f898458b575c947ced Mon Sep 17 00:00:00 2001 From: Jane Lusby Date: Thu, 24 Jun 2021 15:39:24 -0700 Subject: [PATCH 1/3] prep for new release --- CHANGELOG.md | 15 +++++++++++++++ Cargo.toml | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..76201e6 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,15 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + + + +## [Unreleased] - ReleaseDate +# Fixed +- Fixed lifetime inference error caused by recent `std` change. + + + +[0.3.1]: https://github.com/yaahc/displaydoc/releases/tag/v0.3.1 diff --git a/Cargo.toml b/Cargo.toml index 9b76f37..ac7341a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,3 +16,46 @@ One of the simplest error reporters one can build ontop of eyre, defining only a [dependencies] eyre = "0.6.0" indenter = "0.3.0" + +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] + +[package.metadata.release] +no-dev-version = true + +[[package.metadata.release.pre-release-replacements]] +file = "CHANGELOG.md" +search = "Unreleased" +replace="{{version}}" + +[[package.metadata.release.pre-release-replacements]] +file = "src/lib.rs" +search = "#!\\[doc\\(html_root_url.*" +replace = "#![doc(html_root_url = \"https://docs.rs/{{crate_name}}/{{version}}\")]" +exactly = 1 + +[[package.metadata.release.pre-release-replacements]] +file = "CHANGELOG.md" +search = "ReleaseDate" +replace="{{date}}" + +[[package.metadata.release.pre-release-replacements]] +file="CHANGELOG.md" +search="" +replace="\n\n## [Unreleased] - ReleaseDate" +exactly=1 + +# Disable this replacement on the very first release +# [[package.metadata.release.pre-release-replacements]] +# file = "CHANGELOG.md" +# search = "\\.\\.\\.HEAD" +# replace="...{{tag_name}}" +# exactly = 1 +# END SECTION, do not comment out the replacement below this, and do not reorder them + +[[package.metadata.release.pre-release-replacements]] +file="CHANGELOG.md" +search="" +replace="\n[Unreleased]: https://github.com/yaahc/{{crate_name}}/compare/{{tag_name}}...HEAD" +exactly=1 From 013da740a1c879c0bc3d6634091d812e61d8cfd3 Mon Sep 17 00:00:00 2001 From: Jane Lusby Date: Thu, 24 Jun 2021 15:48:55 -0700 Subject: [PATCH 2/3] (cargo-release) version 0.3.1 --- CHANGELOG.md | 3 +++ Cargo.toml | 2 +- src/lib.rs | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 76201e6..36d49a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] - ReleaseDate + +## [0.3.1] - 2021-06-24 # Fixed - Fixed lifetime inference error caused by recent `std` change. +[Unreleased]: https://github.com/yaahc/simple-eyre/compare/v0.3.1...HEAD [0.3.1]: https://github.com/yaahc/displaydoc/releases/tag/v0.3.1 diff --git a/Cargo.toml b/Cargo.toml index ac7341a..69ef31c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "simple-eyre" -version = "0.3.0" +version = "0.3.1" authors = ["Jane Lusby "] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/src/lib.rs b/src/lib.rs index 5877161..e9c9e24 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -29,7 +29,7 @@ //! //! [`eyre::EyreHandler`]: https://docs.rs/eyre/*/eyre/trait.EyreHandler.html //! [`eyre`]: https://docs.rs/eyre -#![doc(html_root_url = "https://docs.rs/simple-eyre/0.2.0")] +#![doc(html_root_url = "https://docs.rs/simple-eyre/0.3.1")] #![warn( missing_debug_implementations, missing_docs, From 93603ea33a0046c74fd32127016479ea4be91d1c Mon Sep 17 00:00:00 2001 From: Jane Lusby Date: Thu, 24 Jun 2021 15:49:36 -0700 Subject: [PATCH 3/3] prep for future releases --- Cargo.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 69ef31c..6ffb84e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,11 +47,11 @@ replace="\n\n## [Unreleased] - ReleaseDate" exactly=1 # Disable this replacement on the very first release -# [[package.metadata.release.pre-release-replacements]] -# file = "CHANGELOG.md" -# search = "\\.\\.\\.HEAD" -# replace="...{{tag_name}}" -# exactly = 1 +[[package.metadata.release.pre-release-replacements]] +file = "CHANGELOG.md" +search = "\\.\\.\\.HEAD" +replace="...{{tag_name}}" +exactly = 1 # END SECTION, do not comment out the replacement below this, and do not reorder them [[package.metadata.release.pre-release-replacements]]