#context-generic #cgp

cgp-component

Core CGP traits and types used for implementing the CGP component system

15 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 2, 2024

#2380 in Rust patterns

Download history 263/week @ 2025-08-30 216/week @ 2025-09-06 387/week @ 2025-09-13 163/week @ 2025-09-20 384/week @ 2025-09-27 1046/week @ 2025-10-04 1370/week @ 2025-10-11 928/week @ 2025-10-18 1300/week @ 2025-10-25 1477/week @ 2025-11-01 1535/week @ 2025-11-08 1148/week @ 2025-11-15 905/week @ 2025-11-22 1034/week @ 2025-11-29 927/week @ 2025-12-06 209/week @ 2025-12-13

3,212 downloads per month
Used in 59 crates (6 directly)

Apache-2.0

14KB

This crate defines the core CGP types and traits used to enable the core CGP component implementation.


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.

No runtime deps