2 releases

Uses new Rust 2024

0.1.0 Jun 13, 2025
0.1.0-alpha Jun 3, 2025

#2923 in Rust patterns

MIT license

56KB
1.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

~5–18MB
~240K SLoC