3 ms·
Yeah, so many more leaky abstractions that will be hard to debug. Not even sure why? You're not saving anytime by doing it this way. Axum already has good DI th
by 0x457 4y ago
Yeah, so many more leaky abstractions that will be hard to debug. Not even sure why? You're not saving anytime by doing it this way. Axum already has good DI that is somewhat ergonomic in rust (well, I hate how extensions aren't checked at compile time like in warp...)
I think the solution to "rust doesn't have DI like C# and Java" isn't trying to make DI like C# and Java (you won't be able without very heavy runtime cost), but make a DI that works well in rust and re-adjust yourself.