aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
AgeCommit message (Collapse)Author
2023-10-04refactor!: remove factory & declare_default_factory macrosHampusM
BREAKING CHANGE: The factory and the declare_default_factory macros have been removed. They are no longer needed to use factories
2023-09-18refactor: replace threadsafe castable factory Fn impl with methodHampusM
2023-09-14refactor!: remove blocking DI container prelude moduleHampusM
BREAKING CHANGE: The blocking DI container prelude module have been removed as it is no longer necessary seeing as the blocking DI container interface have been removed
2023-09-14refactor!: remove blocking DI container interfaceHampusM
BREAKING CHANGE: IDIContainer have been removed and multiple structs no longer take a DI container generic parameter
2023-08-05refactor!: remove IDependencyHistoryHampusM
BREAKING CHANGE: IDependencyHistory has been removed as part of an effort to simplify the API. This affects IDIContainer, DIContainer, IAsyncDIContainer, AsyncDIContainer, Injectable, AsyncInjectable, BindingBuilder, AsyncBindingBuilder, BindingScopeConfigurator, BindingWhenConfigurator, AsyncBindingScopeConfigurator, AsyncBindingWhenConfigurator and DependencyHistory
2023-08-04refactor!: remove async_closure macro from APIHampusM
BREAKING CHANGE: The async_closure macro has been removed. This is because it is completely out of scope for this crate
2022-11-19refactor: reorganize non-public API itemsHampusM
2022-11-11docs: add a example to the crate rootHampusM
2022-11-07fix: make factories work again after Rust nightly-2022-11-07HampusM
2022-10-29refactor!: add dependency history typeHampusM
BREAKING CHANGE: Binding builders & configurators now take dependency history type arguments, the DetectedCircular variant of InjectableError now contains a dependency history field & the injectable traits take dependency history instead of a Vec
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-15refactor: improve internals of macros & add unit testsHampusM
2022-10-09test: add more unit testsHampusM
2022-10-09refactor!: reorganize DI containersHampusM
BREAKING CHANGE: DIContainer, AsyncDIContainer & the binding structs have been relocated
2022-10-03refactor: remove relying on Rust nightly for better handling of featuresHampusM
2022-10-02refactor: improve management of feature specific itemsHampusM
2022-10-01chore: remove repetition of allowing clippy::module_name_repetitionsHampusM
2022-09-24feat: add bind async default factories to async DI containerHampusM
2022-09-18feat: add binding async factories to async DI containerHampusM
2022-08-31feat: add a threadsafe flag to the declare_default_factory macroHampusM
2022-08-29feat: implement async functionalityHampusM
2022-08-28docs: improve & add examplesHampusM
2022-08-28style: add rustfmt config optionsHampusM
2022-08-21docs: fix declare_default_factory exampleHampusM
2022-08-21refactor: make the declare_default_factory macro take a tyHampusM
2022-08-21refactor!: only re-export DIContainerHampusM
BREAKING CHANGE: Only DIContainer is re-exported from the di_container module
2022-08-21feat: allow bind interface to default factoryHampusM
This commit will allow interface traits to be bound to default factories. Default factories being factories that doesn't take any arguments
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-08-02refactor: move creating a dependency trace to it's own functionHampusM
2022-08-01docs: add doc comments & deny missing docsHampusM
2022-07-31refactor: tidy up DI container internalsHampusM
2022-07-24refactor: hide castable factory from docsHampusM
2022-07-24feat: add support for genericsHampusM
2022-07-22refactor: make factories an optional featureHampusM
2022-07-20refactor: reorganize folder hierarchyHampusM