#cgp #context-generic

cgp-field-extra

Context-generic programming field traits

9 releases

Uses new Rust 2024

new 0.7.0 Feb 28, 2026
0.6.1 Feb 1, 2026
0.6.0 Oct 26, 2025
0.5.0 Oct 12, 2025
0.5.0-beta Sep 29, 2025

#19 in #context-generic

Download history 1400/week @ 2025-11-11 893/week @ 2025-11-18 684/week @ 2025-11-25 944/week @ 2025-12-02 853/week @ 2025-12-09 734/week @ 2025-12-16 192/week @ 2025-12-23 323/week @ 2025-12-30 514/week @ 2026-01-06 1035/week @ 2026-01-13 1103/week @ 2026-01-20 929/week @ 2026-01-27 1100/week @ 2026-02-03 1319/week @ 2026-02-10 1345/week @ 2026-02-17 1777/week @ 2026-02-24

5,702 downloads per month
Used in 10 crates (via cgp-extra)

Apache-2.0

45KB
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
~34K SLoC