| Crates.io | s5_registry |
| lib.rs | s5_registry |
| version | 1.0.0-beta.1 |
| created_at | 2025-11-26 05:00:07.29815+00 |
| updated_at | 2025-11-26 05:00:07.29815+00 |
| description | Registry service for S5 |
| homepage | |
| repository | https://github.com/s5-dev/s5-rs |
| max_upload_size | |
| id | 1950965 |
| size | 124,820 |
Iroh-based registry protocol for S5. This crate implements an RPC protocol to access and modify S5 registry entries over the Iroh network.
RegistryServer: Exposes a local RedbRegistry (the default local storage backend from s5_core) over an Iroh endpoint.Client: RPC client for the registry protocol.RemoteRegistry: Adapter that implements the s5_core::RegistryApi trait using the RPC client. This allows remote registries to be used interchangeably with local ones in application code.The registry protocol uses irpc over Iroh.
s5/registry/0Get(key_type, key_data) -> Option<StreamMessage>Set(StreamMessage) -> Result<()>use s5_registry::{Client, RemoteRegistry};
use iroh::Endpoint;
// Connect to a remote registry
let endpoint = Endpoint::builder().bind().await?;
let client = Client::connect(endpoint, remote_addr);
// Use as a RegistryApi
let registry = RemoteRegistry::connect(endpoint, remote_addr);
let msg = registry.get(&key).await?;