generate_rpc_server!() { /* proc-macro */ }Expand description
Proc macro that generates only the server implementation surface for a schema whose contracts live in another crate.
The contract crate must export {name}_client and {name}_capnp modules
(as hyprstream-rpc-std does). The expansion imports those types privately
and emits handler traits, dispatch, request decoding, schema metadata, and
the VFS projection. It does not emit a second client, response enum, or
data-struct implementation, which keeps AGPL service crates from becoming
the distribution home for public clients.
§Usage
ⓘ
pub mod worker_server {
hyprstream_rpc_derive::generate_rpc_server!(
"worker",
types_crate = hyprstream_rpc_std,
scope_handlers,
);
}