Meet #Rust + #DependencyInjection #MacroCrimes:
Supercharge Rust functions with implicit arguments using CGP v0.7.0
https://contextgeneric.dev/blog/v0.7.0-release/
Absolutely mind-blowing stuff! 🤯
I think this can be very useful for e.g. #UI libraries - really reminds me of #Vue's provide/inject mechanism:
https://vuejs.org/guide/components/provide-inject.html#provide-inject

Supercharge Rust functions with implicit arguments using CGP v0.7.0 | Context-Generic Programming
CGP v0.7.0 has been released, bringing a major expansion to the CGP macro toolkit. The centerpiece of this release is a suite of new annotations — #[cgpfn], #[implicit], #[uses], #[extend], #[useprovider], and #[use_type] — that let you write context-generic code in plain function syntax with dramatically less boilerplate than before.
