aboutsummaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)Author
2022-10-23refactor!: reduce DI container couplingHampusM
BREAKING CHANGE: You now have to import the DI containers's interfaces to use the DI containers's methods
2022-10-09refactor!: reorganize DI containersHampusM
BREAKING CHANGE: DIContainer, AsyncDIContainer & the binding structs have been relocated
2022-09-24feat: add bind async default factories to async DI containerHampusM
2022-09-24refactor!: remove repetition of declaring factory interfacesHampusM
BREAKING CHANGE: The to_default_factory method of the blocking and async DI containers now expect a function returning another function
2022-09-21docs: make IFood in async example Send + SyncHampusM
2022-09-18feat: add binding async factories to async DI containerHampusM
2022-09-18refactor: add put factory return types in TransientPtr automaticallyHampusM
2022-09-17docs: add missing modules in the async exampleHampusM
2022-09-17feat!: allow factories to access async DI containerHampusM
BREAKING CHANGE: The to_factory & to_default_factory methods of AsyncBindingBuilder now expects a function returning a factory function
2022-09-17refactor!: make async DI container be used inside of a ArcHampusM
BREAKING CHANGE: The async DI container is to be used inside of a Arc & it also no longer implements Default
2022-09-17feat!: allow factories access to DI containerHampusM
BREAKING CHANGE: Factory types should now be written with the Fn trait instead of the IFactory trait and the to_factory & to_default_factory methods of BindingBuilder now expect a function returning a factory function
2022-09-17refactor!: make DI container be used inside of a RcHampusM
BREAKING CHANGE: The DI container is to be used inside of a Rc & it also no longer implements Default
2022-09-02refactor!: remove braces from expected injectable macro inputHampusM
BREAKING CHANGE: The injectable macro no longer expects braces around it's flags
2022-08-29feat: implement async functionalityHampusM
2022-08-28docs: use anyhow in the unbound exampleHampusM
2022-08-27feat: implement named bindingsHampusM
2022-08-27refactor!: make DI container have single get functionHampusM
BREAKING CHANGE: The DI container get_singleton & get_factory functions have been replaced by the get function now returning a enum
2022-08-22refactor!: move specifying binding scope to a binding scope configuratorHampusM
BREAKING CHANGE: Specifying the scope of a DI container binding is now done with a binding scope configurator
2022-08-21refactor!: change errors to be more saneHampusM
BREAKING CHANGE: Major improvements have been made to error types and the error_stack crate is no longer used
2022-08-21docs: add example for displaying a unbound interface errorHampusM
2022-08-21docs: simplify with-3rd-party exampleHampusM
2022-08-21docs: add a example that uses a 3rd party libraryHampusM
2022-08-21docs: improve the factory exampleHampusM
2022-08-21feat!: prevent binding the same interface more than onceHampusM
BREAKING CHANGE: The 'to' and 'to_factory' methods of BindingBuilder now return 'Result'
2022-07-31feat: add injecting singletons into constructorsHampusM
2022-07-31refactor!: rename InterfacePtr to TransientPtrHampusM
BREAKING CHANGE: InterfacePtr has been renamed to TransientPtr
2022-07-24feat: add support for genericsHampusM
2022-07-22refactor: make factories an optional featureHampusM
2022-07-21refactor: re-export dependency of error_stackHampusM
2022-07-21docs: rename example folder to examplesHampusM