Registry / networking / tarpc
library0.37.0rscratesunverified

An RPC framework for Rust with a focus on ease of use.

# Cargo.toml [dependencies] tarpc = "0.37.0"
INSTALL
IMPORT
SIG · TARPC
T
tarpc
networkingrustv0.37.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
use tarpc::client::Client;

Defines a simple RPC service using tarpc.

use tarpc::client::Client; use tarpc::context; #[tarpc::service] pub trait World { async fn hello(name: String) -> String; } // Client usage would require a transport; simplified for brevity.
Debug
Known issues
gotchaRequires an async runtime like Tokio or smol.
fix
Add `tokio` or `smol` as a dependency and use appropriate runtime.
affects: >=0.30.0
Upgrade
Version history
0.37.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
tarpc — cargo add tarpc · libregistry