#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

#2391 in Rust patterns

Download history 360/week @ 2025-09-26 767/week @ 2025-10-03 1476/week @ 2025-10-10 1128/week @ 2025-10-17 1123/week @ 2025-10-24 1486/week @ 2025-10-31 1514/week @ 2025-11-07 1219/week @ 2025-11-14 870/week @ 2025-11-21 1031/week @ 2025-11-28 965/week @ 2025-12-05 1014/week @ 2025-12-12 378/week @ 2025-12-19 305/week @ 2025-12-26 640/week @ 2026-01-02 940/week @ 2026-01-09

2,532 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