rsrpc-macro

Crates.iorsrpc-macro
lib.rsrsrpc-macro
version0.1.0
created_at2026-01-02 21:31:39.366028+00
updated_at2026-01-02 21:31:39.366028+00
descriptionProcedural macros for rsrpc - Ergonomic Rust-to-Rust RPC
homepage
repositoryhttps://github.com/jkelleyrtp/rsrpc
max_upload_size
id2019231
size33,220
Jonathan Kelley (jkelleyrtp)

documentation

https://docs.rs/rsrpc-macro

README

rsrpc-macro

Procedural macros for rsrpc - Ergonomic Rust-to-Rust RPC.

This crate provides the #[rsrpc::service] attribute macro that transforms a trait definition into a full RPC service with client and server implementations.

Usage

This crate is not meant to be used directly. Instead, use the main rsrpc crate which re-exports the macro:

#[rsrpc::service]
pub trait MyService: Send + Sync + 'static {
    async fn hello(&self, name: String) -> Result<String>;
}

See the rsrpc documentation for complete usage instructions.

License

MIT

Commit count: 0

cargo fmt