From c6e301f2013d71b0c7d0a8879b777849b5481742 Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Mon, 1 Jun 2020 17:54:04 -0400 Subject: [PATCH] Update changelog with generics support --- CHANGELOG.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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