15 unstable releases (4 breaking)

Uses new Rust 2024

new 0.7.0 Feb 28, 2026
0.6.0 Oct 26, 2025
0.4.2 Jul 7, 2025
0.3.0 Jan 8, 2025

#2572 in Rust patterns

Download history 1283/week @ 2025-11-12 926/week @ 2025-11-19 779/week @ 2025-11-26 929/week @ 2025-12-03 835/week @ 2025-12-10 672/week @ 2025-12-17 250/week @ 2025-12-24 259/week @ 2025-12-31 732/week @ 2026-01-07 1097/week @ 2026-01-14 1069/week @ 2026-01-21 1017/week @ 2026-01-28 1176/week @ 2026-02-04 1314/week @ 2026-02-11 1541/week @ 2026-02-18 1708/week @ 2026-02-25

5,960 downloads per month
Used in 18 crates (via cgp-extra)

Apache-2.0

9KB
169 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
~35K SLoC