diff --git a/CHANGELOG.md b/CHANGELOG.md index a60ba35..cecb572 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,27 @@ 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). ## [Unreleased] +### Added +- Support generics in derives and the `module` macro. For example: + ```rust + use shaku::{module, Component, Interface, HasComponent}; + + trait MyComponent: Interface {} + + #[derive(Component)] + #[shaku(interface = MyComponent)] + struct MyComponentImpl { + value: T + } + impl MyComponent for MyComponentImpl {} + + module! { + MyModule { + components = [MyComponentImpl], + providers = [] + } + } + ``` ## [0.4.0] - 2020-05-26 ### Breaking Changes