Skip to main content

Crate ice_rpc_macros

Crate ice_rpc_macros 

Source
Expand description

Procedural macros for the ice-rpc framework.

The #[service] macro is the single entry point. It automatically generates the Proxy, Client, Server and the lifecycle code for an RPC service trait.

Attribute Macros§

main
Bootstraps ice-rpc around an async fn main.
payload
#[payload] attribute macro: derives the traits an ice-rpc service payload needs, without the crate naming rkyv — and without its author having to ask for Debug.
service
#[service] attribute macro: generates the Proxy, Client, Server, and the lifecycle code for an RPC service trait.