Skip to content

Release v0.2.0#22

Merged
luisfi-dev merged 29 commits intostablefrom
master
Oct 1, 2025
Merged

Release v0.2.0#22
luisfi-dev merged 29 commits intostablefrom
master

Conversation

@luisfi-dev
Copy link
Owner

error-stack-macros2 v0.2.0

We have a new development version of error-stack-macros2!

Fixes

This version (0.2.0) adds support for generics and external attributes to the impl_error_stack macro.

This means that types like this:

use error_stack_macros2::Error;

#[derive(Debug, Error)]
#[display("failed to retrieve credit card")]
enum CreditCardError<T>
where
	T: Display
{
	InvalidInput(T),
	Other
}

#[derive(Debug, Error)]
#[display("invalid card string")]
#[allow(non_camel_case_types)]
struct parseCardError;

...can now compile properly.

Performance

The entire source code has been refactored to eliminate unnecessary allocations, cloning, and double iterator consumptions. This should make compile times faster and reduce memory usage.

Dependencies

As promised, all dependencies have been updated to their latest versions, which in this case means performance improvements and bug fixes.

Previous release notes

If you want to take a look at the notes from previous releases, go to GitHub Releases.

luisfi-dev and others added 29 commits September 21, 2025 23:13
Fix GitHub Actions: wrong Cargo.toml path
Bumps [regex](https://github.com/rust-lang/regex) from 1.11.2 to 1.11.3.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](rust-lang/regex@1.11.2...1.11.3)

---
updated-dependencies:
- dependency-name: regex
  dependency-version: 1.11.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…ation and repeated operations + rename types
Bumps [quote](https://github.com/dtolnay/quote) from 1.0.40 to 1.0.41.
- [Release notes](https://github.com/dtolnay/quote/releases)
- [Commits](dtolnay/quote@1.0.40...1.0.41)

---
updated-dependencies:
- dependency-name: quote
  dependency-version: 1.0.41
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
`impl_error_stack` - Add support for generics and other attributes
@luisfi-dev luisfi-dev added this to the v0.2.0 milestone Oct 1, 2025
@luisfi-dev luisfi-dev self-assigned this Oct 1, 2025
@luisfi-dev luisfi-dev added the 🔄 New release This PR into `stable` marks a new release label Oct 1, 2025
@luisfi-dev luisfi-dev moved this to In Progress in error-stack-macros2 Oct 1, 2025
@luisfi-dev luisfi-dev merged commit 5face64 into stable Oct 1, 2025
3 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in error-stack-macros2 Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔄 New release This PR into `stable` marks a new release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant