DigiNews

Tech Watch Articles

← Back to articles

How to stop fighting with coherence and start writing context-generic trait impls

Quality: 8/10 Relevance: 7/10

Summary

This article is a transcript of a RustLab 2025 presentation on Context-Generic Programming (CGP) and coherence in Rust. It explains the coherence and orphan rules, introduces provider traits and context-based wiring, and demonstrates how CGP enables modular, context-scoped implementations, including reference to cgp-serde and getting started.

🚀 Service construit par Johan Denoyer