#cgp #context-generic

cgp-error-std

Context-generic programming error handlers implemented using std::error::Error

14 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.0 Jan 8, 2025
0.1.0 Sep 3, 2024

#2083 in Rust patterns

Download history 37/week @ 2025-07-10 1/week @ 2025-07-17 3/week @ 2025-08-21 135/week @ 2025-09-11 16/week @ 2025-09-18 96/week @ 2025-09-25 221/week @ 2025-10-02 264/week @ 2025-10-09 18/week @ 2025-10-16 231/week @ 2025-10-23

743 downloads per month

Apache-2.0

10KB
186 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–1.6MB
~36K SLoC