aboutsummaryrefslogtreecommitdiff
path: root/macros/src
AgeCommit message (Collapse)Author
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-09-02refactor: rename the factory macro flag 'async' to 'threadsafe'HampusM
2022-09-02refactor: remove unused import of ItemTraitHampusM
2022-08-31feat: add a threadsafe flag to the declare_default_factory macroHampusM
2022-08-31fix: add missing semicolon in the factory macroHampusM
2022-08-29feat: implement async functionalityHampusM
2022-08-28docs: improve & add examplesHampusM
2022-08-28style: add rustfmt config optionsHampusM
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-21refactor: improve private method names & clean up InjectableImplHampusM
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-21fix: make DI container get_factory calls in the injectable macro validHampusM
2022-08-03refactor: add Cargo feature for preventing circular dependenciesHampusM
2022-08-02refactor: move creating a dependency trace to it's own functionHampusM
2022-08-02feat: add detection and prevention of circular dependenciesHampusM
2022-08-01docs: add factory feature noticesHampusM
2022-08-01refactor: limit the factory macro to the factory featureHampusM
2022-08-01feat: add hide impl of Injectable from documentationHampusM
This will make it so that by default the impl of Injectable is hidden from user code documentation. This commit also includes a flag for the injectable macro to disable the aforementioned feature
2022-08-01docs: add doc comments & deny missing docsHampusM
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-24refactor: clean up intertrait libHampusM
2022-07-22refactor: make factories an optional featureHampusM
2022-07-21refactor: re-export dependency of error_stackHampusM
2022-07-20refactor: reorganize folder hierarchyHampusM