| Crates.io | rusteron-code-gen |
| lib.rs | rusteron-code-gen |
| version | 0.1.154 |
| created_at | 2024-10-26 02:51:07.047293+00 |
| updated_at | 2025-09-13 10:51:26.991615+00 |
| description | Code generator for Aeron C bindings |
| homepage | https://github.com/gsrxyz/rusteron |
| repository | https://github.com/gsrxyz/rusteron |
| max_upload_size | |
| id | 1423499 |
| size | 1,592,831 |
rusteron-code-gen is an internal code generation tool used within the Rusteron project.
It automates the creation of Rust bindings from Aeron’s C APIs, reducing manual effort and ensuring consistent wrapper interfaces across the rusteron-* crates.
Aeron's C APIs follow predictable structural patterns. This tool parses those C headers and uses templates to emit Rust wrappers around the raw FFI layer. It is primarily used to generate:
rusteron-clientrusteron-archiverusteron-media-driverBy automating this step, we reduce maintenance cost and improve reliability when tracking upstream changes in Aeron.
Note: This crate is not intended for standalone use outside the Rusteron project.
This crate is used via internal tooling (e.g. in just scripts or CI pipelines) and is not meant to be added as a dependency in consumer projects.
Generated code includes unsafe blocks where necessary to interface with Aeron’s low-level constructs.
While much of the generation is automated, occasional manual review and patching may be required to ensure correctness, especially when Aeron introduces API changes.