Skip to content

Commit

Permalink
Add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
soareschen committed Jan 7, 2025
1 parent a444258 commit a71811e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## v0.3.0 (pre-release)

- Introduce `cgp_type!` macro for defining simple abstract CGP types - [#55](https://github.com/contextgeneric/cgp/pull/55)
- Use `cgp_type!` to derive `HasErrorType` and `HasRuntimeType`.

- Implement `ErrorWrapper` on generic `ErrorRaiser` providers - [#54](https://github.com/contextgeneric/cgp/pull/54)
- Implement `ErrorWrapper` for the following providers: `DebugError`, `DisplayError`,
`DebugAnyhowError`, `DisplayAnyhowError`, `RaiseAnyhowError`,
Expand Down
3 changes: 3 additions & 0 deletions crates/cgp-error/src/traits/has_error_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ cgp_type! {
The `Error` associated type is also required to implement [`Debug`].
This is to allow `Self::Error` to be used in calls like `.unwrap()`,
as well as for simpler error logging.
More details about how to use `HasErrorType` is available at
<https://patterns.contextgeneric.dev/error-handling.html>
*/
Error: Debug
}

0 comments on commit a71811e

Please sign in to comment.