16 unstable releases (5 breaking)

Uses new Rust 2024

0.6.0 Oct 26, 2025
0.5.0-beta Sep 29, 2025
0.4.2 Jul 7, 2025
0.3.1 Jan 16, 2025
0.1.0 Sep 2, 2024

#549 in Science

Download history 19/week @ 2025-08-11 46/week @ 2025-08-18 159/week @ 2025-08-25 228/week @ 2025-09-01 327/week @ 2025-09-08 244/week @ 2025-09-15 147/week @ 2025-09-22 422/week @ 2025-09-29 1137/week @ 2025-10-06 1339/week @ 2025-10-13 949/week @ 2025-10-20 1136/week @ 2025-10-27 1440/week @ 2025-11-03 1613/week @ 2025-11-10 1042/week @ 2025-11-17 813/week @ 2025-11-24

4,927 downloads per month
Used in 53 crates (11 directly)

Apache-2.0

67KB
1K 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–1.5MB
~35K SLoC