rsrpc-macro 0.1.0

Procedural macros for rsrpc - Ergonomic Rust-to-Rust RPC
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 32.72 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 368.42 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jkelleyrtp

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