actr-framework-protoc-codegen
Protoc plugin for generating actr-framework code from protobuf service definitions.
Status
🚧 Placeholder - Code will be moved from cli/crates/protoc-gen-actrframework
What it generates
From a protobuf service definition:
service EchoService {
rpc Echo (EchoRequest) returns (EchoResponse);
}
Generates:
- Handler trait - User implements business logic
- MessageDispatcher - Routes messages to handler methods
- Workload wrapper - Integrates with ActrSystem
- Message trait impl - Enables Context::call() type inference
Architecture
- Uses MessageDispatcher (not MessageRouter)
- Uses Workload::Dispatcher (not Workload::Router)
- Generates clean, idiomatic Rust code
Usage
# Install
# Generate code
TODO
- Move code from cli/crates/protoc-gen-actrframework
- Update templates to use MessageDispatcher
- Update templates to use Workload::Dispatcher
- Add integration tests
- Add template documentation