| Crates.io | rsrpc-macro |
| lib.rs | rsrpc-macro |
| version | 0.1.0 |
| created_at | 2026-01-02 21:31:39.366028+00 |
| updated_at | 2026-01-02 21:31:39.366028+00 |
| description | Procedural macros for rsrpc - Ergonomic Rust-to-Rust RPC |
| homepage | |
| repository | https://github.com/jkelleyrtp/rsrpc |
| max_upload_size | |
| id | 2019231 |
| size | 33,220 |
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.
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.
MIT