Skip to main content

Crate omnia_nats

Crate omnia_nats 

Source
Expand description

§omnia-nats

crates.io docs.rs

NATS backend for the Omnia WASI runtime, implementing the wasi-messaging, wasi-keyvalue, and wasi-blobstore interfaces.

Uses async-nats with JetStream for key-value and object store capabilities. Supports JWT/NKey authentication.

MSRV: Rust 1.93

§Configuration

VariableRequiredDefaultDescription
NATS_ADDRnodemo.nats.ioNATS server address
NATS_TOPICSnoComma-separated subscription topics
NATS_JWTnoJWT for authentication
NATS_SEEDnoNKey seed for signing

§Usage

use omnia::Backend;
use omnia_nats::Client;

let options = omnia_nats::ConnectOptions::from_env()?;
let client = Client::connect_with(options).await?;

§License

MIT OR Apache-2.0

Structs§

Client
NATS backend client for messaging, key-value, and blobstore.
ConnectOptions
Connection options for the NATS backend.