Releases: contextgeneric/cgp
Releases · contextgeneric/cgp
v0.3.1
v0.3.0
More details about this release is covered by the update blogpost.
Changelog
-
Introduce Accessor Component Macros - #56
- Introduce
#[cgp_getter]
attribute macro that extends#[cgp_component]
and implement
UseFields
andUseField
for accessor traits. - Introduce
#[cgp_auto_getter]
attribute macro for deriving accessor traits with
blanket implementations that useHasField
directly.
- Introduce
-
Introduce
cgp_type!
macro for defining simple abstract CGP types - #55- Use
cgp_type!
to deriveHasErrorType
andHasRuntimeType
.
- Use
-
Implement
ErrorWrapper
on genericErrorRaiser
providers - #54- Implement
ErrorWrapper
for the following providers:DebugError
,DisplayError
,
DebugAnyhowError
,DisplayAnyhowError
,RaiseAnyhowError
,
DebugEyreError
,DisplayEyreError
,RaiseEyreError
,
DebugBoxedStdError
,DisplayBoxedStdError
.
- Implement
-
Reorganize crate exports - #53
- Move generic error providers to the
cgp-error-extra
crate. - Add an
alloc
feature tocgp-error-extra
to enable use ofalloc
in providers. - Make private the sub-modules inside CGP crates.
- Explicitly export module items instead of using
*
.
- Move generic error providers to the
-
Move
cgp-inner
tocgp-extra
- #51- Remove re-export of
cgp-inner
fromcgp-core
. - Re-export
cgp-inner
andcgp-runtime
fromcgp-extra
.
- Remove re-export of
-
Introduce
cgp-runtime
crate - #50- Introduce the
HasRuntimeType
andHasRuntime
traits. - Introduce
HasAsyncRuntimeType
trait used for addingAsync
constraint toHasRuntimeType::Error
.
- Introduce the
-
Error crates refactoring - #48
- Remove
Async
trait bound fromHasErrorType::Error
. - Introduce
HasAsyncErrorType
trait used for addingAsync
constraint toHasErrorType::Error
. - Introduce
CanWrapError
trait. - Introduce generic
ErrorRaiser
providers incgp-error
. - Rename and reoganize constructs in
cgp-error-eyre
andcgp-error-std
. - Introduce
cgp-error-anyhow
crate.
- Remove
-
Decouple component and field macro crates from the library crates - #47
- Remove
cgp-component-macro
crate from being a dependency ofcgp-component
. - Remove
cgp-field-macro
crate from being a dependency ofcgp-field
.
- Remove