How contextgeneric/cgp works
Main Components
a) Core Layer:
• cgp-core at the center as it contains essential CGP constructs
• It directly to cgp-component which defines core traits and macros
b) Feature Layers (arranged in concentric circles or layers):
Primary Features
• cgp-component (core component system)
• cgp-error (error handling system)
• cgp-field (data-generic programming)
• cgp-type (type system utilities)
Secondary Features
• cgp-async (async capabilities)
• cgp-run (async runners)
• cgp-inner (composition tools)
• cgp-sync (synchronization utilities)
c) Macro Implementation Layer:
• Macro-related crates:
• cgp-component-macro
• cgp-field-macro
• cgp-async-macro
• Their relationship to their respective main features
┌─ Meta Crates ─────────────┐
• cgp │
• cgp-core │
• cgp-extra │
• ┬────────────┘
• ↓
┌─ Core Layer ─────────────┐
• cgp-component │
• ┬───────────────┘
• ↓
┌─ Feature Layers ─────────┐
• ┌─ Primary ────┐ │
• cgp-error │ │
• cgp-field │ │
• cgp-type │ │
• ┘ │
• ┌─ Secondary ──┐ │
• cgp-async │ │
• cgp-run │ │
• cgp-inner │ │
• ┘ │
• ┘
Additional Details
• Version compatibility information (Rust 1.81+)
• Macro relationships with their implementation crates
• Async/sync boundaries
• Public APIs and internal implementation details