17 unstable releases (5 breaking)

Uses new Rust 2024

new 0.6.1 Feb 1, 2026
0.6.0 Oct 26, 2025
0.5.0 Oct 12, 2025
0.4.2 Jul 7, 2025
0.1.0 Sep 2, 2024

#1052 in Rust patterns

Download history 1345/week @ 2025-10-13 954/week @ 2025-10-20 1136/week @ 2025-10-27 1443/week @ 2025-11-03 1614/week @ 2025-11-10 1044/week @ 2025-11-17 880/week @ 2025-11-24 1031/week @ 2025-12-01 908/week @ 2025-12-08 953/week @ 2025-12-15 312/week @ 2025-12-22 423/week @ 2025-12-29 578/week @ 2026-01-05 991/week @ 2026-01-12 1269/week @ 2026-01-19 1062/week @ 2026-01-26

3,938 downloads per month
Used in 54 crates (via cgp-core)

Apache-2.0

26KB
160 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

~1–1.5MB
~34K SLoC