Skip to content

Commit 8e0b02d

Browse files
committed
docs(readme): add C++20 Module Support section
1 parent 9d5c30b commit 8e0b02d

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,43 @@ This makes it ideal as a foundational data layer for the ecosystem.
339339

340340
🏗️ **[Architecture Guide →](docs/ARCHITECTURE.md)**
341341

342+
## C++20 Module Support
343+
344+
Container System provides C++20 module support as an alternative to the header-based interface.
345+
346+
### Requirements for Modules
347+
348+
- **CMake 3.28+**
349+
- **Clang 16+, GCC 14+, or MSVC 2022 17.4+**
350+
- **common_system** with module support
351+
352+
### Building with Modules
353+
354+
```bash
355+
cmake -B build -DCONTAINER_BUILD_MODULES=ON
356+
cmake --build build
357+
```
358+
359+
### Using Modules
360+
361+
```cpp
362+
import kcenon.container;
363+
364+
int main() {
365+
// Use container components directly
366+
auto container = kcenon::container::value_container();
367+
container.set("key", "value");
368+
}
369+
```
370+
371+
### Module Structure
372+
373+
| Module | Contents |
374+
|--------|----------|
375+
| `kcenon.container` | Complete container framework (values, serialization, type system) |
376+
377+
> **Note**: C++20 modules are experimental. The header-based interface remains the primary API.
378+
342379
## Documentation
343380

344381
### Getting Started

0 commit comments

Comments
 (0)