Syrette
Syrette copied to clipboard
The convenient dependency injection library for Rust. Mirror of https://git.hampusmat.com/syrette
The need to explicitly make injectables async compatible should be removed. This would be simple if not for the fact that having the `async` crate feature enable this by default...
It would be splendid if the dependency on Linkme was gotten rid of. This would make Syrette more portable. However, more investigating needs to be made in order to know...
I don't know why i didn't make it thread-safe in the first place
This would make a type only be resolved if certain properties has specific values. Like naming it, but with arbitrary stuff. Types could maybe a problem.
Support for stack allocation of `Injectable`s could probably be implemented. Stack allocation is to be possible if the interface is a concrete type. This will require - Container functions like...
This would be a great feature. It's complicated however.
Hi! I'm loving this crate so far, so thank you for all your hard work. There's one thing which it seems to be missing to fit my use case, though:...
It's a big hassle that a factory function have to be nested inside of another function when passed to the `to_*factory` binding builder functions. Instead of the wrapping function taking...