#context-generic #cgp

cgp-component-macro-lib

Context-generic programming core component macros implemented as a library

3 releases (breaking)

0.3.0 Jan 8, 2025
0.2.0 Dec 8, 2024
0.1.0 Sep 2, 2024

#2001 in Procedural macros

Download history 45/week @ 2025-09-18 62/week @ 2025-09-25 61/week @ 2025-10-02 46/week @ 2025-10-09 92/week @ 2025-10-16 83/week @ 2025-10-23 62/week @ 2025-10-30 50/week @ 2025-11-06 62/week @ 2025-11-13 59/week @ 2025-11-20 68/week @ 2025-11-27 58/week @ 2025-12-04 41/week @ 2025-12-11 64/week @ 2025-12-18 54/week @ 2025-12-25 63/week @ 2026-01-01

232 downloads per month
Used in 28 crates (via cgp-component-macro)

Apache-2.0

81KB
2K 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

~0.8–1.3MB
~28K SLoC