15 unstable releases (5 breaking)

Uses new Rust 2024

new 0.6.0 Oct 26, 2025
0.5.0-beta Sep 29, 2025
0.4.2 Jul 7, 2025
0.3.0 Jan 8, 2025
0.1.0 Sep 3, 2024

#2 in #cgp-context-generic

Download history 82/week @ 2025-07-12 53/week @ 2025-07-19 15/week @ 2025-07-26 19/week @ 2025-08-02 21/week @ 2025-08-09 25/week @ 2025-08-16 105/week @ 2025-08-23 179/week @ 2025-08-30 167/week @ 2025-09-06 347/week @ 2025-09-13 109/week @ 2025-09-20 329/week @ 2025-09-27 1004/week @ 2025-10-04 1321/week @ 2025-10-11 855/week @ 2025-10-18 1045/week @ 2025-10-25

4,258 downloads per month
Used in 42 crates (via cgp)

Apache-2.0

91KB
2.5K SLoC

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

~1.2–1.6MB
~36K SLoC