Product Launchrust macroscontext generic programmingderive macros
CGP Adds Context-Generic Macros For Rust
7.1
Relevance Score
CGP v0.7.0 has been released, adding a suite of annotations — #[cgp_fn], #[implicit], #[uses], #[extend], #[use_provider], and #[use_type] — that let developers write context-generic Rust functions with less boilerplate. The release introduces #[cgp_fn] for plain function syntax, implicit argument extraction, composition and re-exporting of capabilities, and #[cgp_impl] implicit support, enabling zero-runtime-overhead, composable APIs across different context types.


