All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- The
type_checkfunction that performs run-time type checking. Call this function to ensure that all types required by your handler are present indi::DependencyMap(PR #23). - The
HandlerSignatureandTypetypes. - The
Handler::sigfunction. - The
di::Injectable::input_typesassociated function [BC]. - The
DependencyMap::try_getmethod (PR #29).
- The
Outputgeneric ofdi::Injectableis now required to be'static[BC]. - Function parameters in the implementation of
di::Injectablefor functions are now required to be'static[BC]. Handler::{chain, branch}now panic if the second handler isdptree::entry()[BC].- The following functions now accept the
sig: HandlerSignatureparameter [BC]:from_fnfrom_fn_with_description
- Always use
di::DependencyMapinstead of a genericInputtype. - The handlers now can accept up to 12 parameters instead of 9 ([PR #28]((PR 28))).
- The
di::{Insert, DependencySupplier}traits.
inspect{,_async}{,_with_description}functions for creating inspection handlers.Handler::{filter,filter_map,map,inspect}{,_async}convenience methods.
- Removed a few useless bounds from several methods (PR #13).
Contis nowFnOnceinstead ofFn(PR #15).
- Fix the inference algorithm of allowed updates (PR #16).
- The
dptree::case!macro for enumeration destructuring.
- Introspection facilities:
- The
HandlerDescriptiontrait. - Build-in description types:
crate::description::{Unspecified, EventKind}. - Functions constructing handlers with descriptions:
filter_async_with_description,filter_map_async_with_description,filter_map_with_description,filter_with_description,from_fn_with_description,map_async_with_description,map_with_description.
- The
- Emit a full list of available types on
DependencyMap::getpanic (PR #6).
- This badass library.