rapace-registry: Service registry with schema support for rapace RPC.
This crate provides a registry for RPC services that stores:
- Service names and IDs
- Method names and IDs
- Request/response schemas (via facet shapes)
- Supported encodings per method
Example
use rapace_registry::{ServiceRegistry, ServiceEntry, MethodEntry, Encoding};
let mut registry = ServiceRegistry::new();
// Register services (usually done via macro-generated code)
Adder::register(&mut registry);
// Lookup methods by name
if let Some(method) = registry.lookup_method("Adder", "add") {
println!("method_id: {}", method.id.0);
}