From 4c605ca804b49980a29d5a411888125b0b36ba3f Mon Sep 17 00:00:00 2001 From: Jelte Fennema-Nio Date: Thu, 1 Aug 2024 20:30:51 +0200 Subject: [PATCH 1/2] Add release announcement --- CHANGELOG.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5cadc975..e0e1d625 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,21 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## 1.0.0 - Unreleased +More than 8 years after the first commit and almost 5 years after the 0.99.0 +release, `derive_more` has finally reached its 1.0.0 release. This release +contains a lot of changes (including breaking ones) to make it easier to use +the derives and make it possible to extend them without having to breaking +backwards compatibility again. There are three major changes that I would like +to call out, but there are many more changes that are documented below: +1. A new `Debug` derive that can be used to easily customize `Debug` formatting. +2. A greatly improved `Display` derive, which allows you to do anything that + `thiserror` provides, but it works for any type not just errors. And by + combining the `Display` derive with the `Error` and `From` derives, there + isn't really any need to use `thiserror` anymore. +3. Traits that can return errors now return a type that implements `Error`` + when an error occurs instead of a `&'static str`. + + ### Breaking changes - The minimum supported Rust version (MSRV) is now Rust 1.75. From c2df02e2206f27a3d0fea68af38938457bf796ec Mon Sep 17 00:00:00 2001 From: Kai Ren Date: Fri, 2 Aug 2024 11:26:54 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e0e1d625..7cf5a92e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,7 +19,7 @@ to call out, but there are many more changes that are documented below: `thiserror` provides, but it works for any type not just errors. And by combining the `Display` derive with the `Error` and `From` derives, there isn't really any need to use `thiserror` anymore. -3. Traits that can return errors now return a type that implements `Error`` +3. Traits that can return errors now return a type that implements `Error` when an error occurs instead of a `&'static str`.