Skip to main content

actr_framework_protoc_codegen/
lib.rs

1//! # actr-framework-protoc-codegen
2//!
3//! Protoc plugin for generating actr-framework code from protobuf service definitions.
4//!
5//! This crate generates:
6//! - Handler traits for service implementations
7//! - MessageDispatcher implementations for request routing
8//! - Workload wrapper types
9//! - Message trait implementations (for Context::call/tell)
10//! - PayloadType-aware client code
11//!
12//! The only external consumer of this library is the sibling binary
13//! `protoc-gen-actrframework`, which consumes the re-exported subset below.
14//! The `payload_type_extractor` module is an internal helper used by
15//! `modern_generator` and is kept crate-private.
16
17pub(crate) mod modern_generator;
18pub(crate) mod payload_type_extractor;
19
20pub use modern_generator::{GeneratorRole, ModernGenerator, RemoteServiceInfo};