Skip to content

Commit

Permalink
Merge pull request #4 from eyre-rs/release
Browse files Browse the repository at this point in the history
prep for new release
  • Loading branch information
pksunkara authored Apr 8, 2024
2 parents 14ce120 + 93603ea commit bcfff0f
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 2 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 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).

<!-- next-header -->

## [Unreleased] - ReleaseDate

## [0.3.1] - 2021-06-24
# Fixed
- Fixed lifetime inference error caused by recent `std` change.


<!-- next-url -->
[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
45 changes: 44 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "simple-eyre"
version = "0.3.0"
version = "0.3.1"
authors = ["Jane Lusby <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand All @@ -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="<!-- next-header -->"
replace="<!-- next-header -->\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="<!-- next-url -->"
replace="<!-- next-url -->\n[Unreleased]: https://github.com/yaahc/{{crate_name}}/compare/{{tag_name}}...HEAD"
exactly=1
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(

Check warning on line 33 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 33 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 33 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 33 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 33 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (beta)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 33 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (nightly)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 33 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 33 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (stable)

unknown lint: `rustdoc::missing_doc_code_examples`

Check warning on line 33 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest)

unknown lint: `rustdoc::missing_doc_code_examples`
missing_debug_implementations,
missing_docs,
Expand Down

0 comments on commit bcfff0f

Please sign in to comment.