Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-09-24 | refactor!: remove repetition of declaring factory interfaces | HampusM | |
BREAKING CHANGE: The to_default_factory method of the blocking and async DI containers now expect a function returning another function | |||
2022-09-23 | fix: prevent problems caused by non send + sync traits | HampusM | |
2022-09-23 | refactor: make the async & non-async DI container bind methods must_use | HampusM | |
2022-09-18 | feat: add binding async factories to async DI container | HampusM | |
2022-09-18 | refactor: add put factory return types in TransientPtr automatically | HampusM | |
2022-09-18 | refactor: prevent look for default factory without factory feature | HampusM | |
2022-09-18 | test: move some factory function types to type aliases | HampusM | |
2022-09-17 | feat!: allow factories to access async DI container | HampusM | |
BREAKING CHANGE: The to_factory & to_default_factory methods of AsyncBindingBuilder now expects a function returning a factory function | |||
2022-09-17 | refactor!: make async DI container be used inside of a Arc | HampusM | |
BREAKING CHANGE: The async DI container is to be used inside of a Arc & it also no longer implements Default | |||
2022-09-17 | feat!: allow factories access to DI container | HampusM | |
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-17 | refactor!: make DI container be used inside of a Rc | HampusM | |
BREAKING CHANGE: The DI container is to be used inside of a Rc & it also no longer implements Default | |||
2022-09-03 | refactor: improve DI container cast errors | HampusM | |
2022-09-02 | refactor!: remove braces from expected injectable macro input | HampusM | |
BREAKING CHANGE: The injectable macro no longer expects braces around it's flags | |||
2022-09-02 | refactor: rename the factory macro flag 'async' to 'threadsafe' | HampusM | |
2022-08-31 | refactor: improve async DI container cast errors | HampusM | |
2022-08-31 | feat: add a threadsafe flag to the declare_default_factory macro | HampusM | |
2022-08-30 | refactor: replace arc cast panic with an error | HampusM | |
2022-08-29 | feat: implement async functionality | HampusM | |
2022-08-28 | docs: improve & add examples | HampusM | |
2022-08-28 | style: add rustfmt config options | HampusM | |
2022-08-27 | feat: implement named bindings | HampusM | |
2022-08-27 | refactor!: limit FactoryPtr & AnyFactory to the factory feature | HampusM | |
BREAKING CHANGE: FactoryPtr has been limited to the factory feature | |||
2022-08-27 | docs: update the DI container example | HampusM | |
2022-08-27 | refactor!: make DI container have single get function | HampusM | |
BREAKING CHANGE: The DI container get_singleton & get_factory functions have been replaced by the get function now returning a enum | |||
2022-08-22 | refactor!: move specifying binding scope to a binding scope configurator | HampusM | |
BREAKING CHANGE: Specifying the scope of a DI container binding is now done with a binding scope configurator | |||
2022-08-21 | refactor!: change errors to be more sane | HampusM | |
BREAKING CHANGE: Major improvements have been made to error types and the error_stack crate is no longer used | |||
2022-08-21 | docs: fix declare_default_factory example | HampusM | |
2022-08-21 | refactor: make the declare_default_factory macro take a ty | HampusM | |
2022-08-21 | refactor!: only re-export DIContainer | HampusM | |
BREAKING CHANGE: Only DIContainer is re-exported from the di_container module | |||
2022-08-21 | feat: allow bind interface to default factory | HampusM | |
This commit will allow interface traits to be bound to default factories. Default factories being factories that doesn't take any arguments | |||
2022-08-21 | docs: fix IFactory example use statement | HampusM | |
2022-08-21 | docs: correct examples | HampusM | |
2022-08-21 | test: correct DI container bind tests | HampusM | |
2022-08-21 | feat!: prevent binding the same interface more than once | HampusM | |
BREAKING CHANGE: The 'to' and 'to_factory' methods of BindingBuilder now return 'Result' | |||
2022-08-02 | docs: fix DI container module documentation | HampusM | |
2022-08-02 | refactor: move creating a dependency trace to it's own function | HampusM | |
2022-08-02 | test: reduce repetition in DI container tests | HampusM | |
2022-08-02 | feat: add detection and prevention of circular dependencies | HampusM | |
2022-08-02 | refactor: hide AnyFactory from docs | HampusM | |
2022-08-01 | docs: add factory feature notices | HampusM | |
2022-08-01 | docs: add doc comments & deny missing docs | HampusM | |
2022-07-31 | refactor: tidy up DI container internals | HampusM | |
2022-07-31 | refactor: add Intertrait cast error | HampusM | |
2022-07-31 | feat: implement binding singletons | HampusM | |
2022-07-31 | refactor!: rename InterfacePtr to TransientPtr | HampusM | |
BREAKING CHANGE: InterfacePtr has been renamed to TransientPtr | |||
2022-07-27 | refactor: add back Intertrait tests & Rc support | HampusM | |
2022-07-24 | perf: use ahash in DI container | HampusM | |
2022-07-24 | refactor: hide castable factory from docs | HampusM | |
2022-07-24 | feat: add support for generics | HampusM | |
2022-07-24 | refactor: clean up intertrait lib | HampusM | |