Overview of Pilota-Build Architecture
mainPilota-Build is a code generation framework designed to generate Rust code from Interface Definition Language (IDL) files. It supports both Thrift and Protobuf protocols through a unified intermediate representation (IR) and a modular architecture.
Key Design Goals
- Multi-protocol support: Unified architecture for Thrift and Protobuf.
- High-performance compilation: Utilizes the Salsa incremental compilation framework to improve efficiency.
- Extensibility: A plugin system allows for custom code generation behaviors.
- Workspace support: Native support for Cargo workspace modes.
- Type safety: Uses a strongly-typed intermediate representation to ensure the correctness of generated code.
Core Features
- Incremental compilation: Only re-compiles modified parts.
- Parallel processing: Supports parallel parsing and code generation.
- Smart dependency management: Automatically handles cross-file and cross-package dependencies.
- Flexible code generation: Supports file splitting and custom naming.