#cgp #context-generic

macro cgp-extra-macro

Context-generic programming extra component macros

8 releases

Uses new Rust 2024

new 0.6.1 Feb 1, 2026
0.6.0 Oct 26, 2025
0.5.0 Oct 12, 2025
0.5.0-beta Sep 29, 2025

#36 in #context-generic

Download history 1085/week @ 2025-10-13 695/week @ 2025-10-20 970/week @ 2025-10-27 1307/week @ 2025-11-03 1455/week @ 2025-11-10 877/week @ 2025-11-17 767/week @ 2025-11-24 927/week @ 2025-12-01 825/week @ 2025-12-08 840/week @ 2025-12-15 187/week @ 2025-12-22 322/week @ 2025-12-29 473/week @ 2026-01-05 916/week @ 2026-01-12 1144/week @ 2026-01-19 941/week @ 2026-01-26

3,485 downloads per month
Used in 9 crates (via cgp-extra)

Apache-2.0

28KB
653 lines

cgp - Context-Generic Programming in Rust

Apache 2.0 Licensed Crates.io Rust Stable Rust 1.81+

Overview

The cgp project contains a collection of micro Rust crates that empowers context-generic programming (CGP), a new modular programming paradigm in Rust.

To learn more about context-generic programming, check out the our website contextgeneric.dev, and our book Context-Generic Programming Patterns.

[!WARNING] At the moment, the cgp crate its constructs are mostly undocumented within Rustdoc. The best way to understand CGP is to read the book Context-Generic Programming Patterns.

Dependencies

~135–530KB
~13K SLoC