omnia-nats
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
| Variable | Required | Default | Description |
|---|---|---|---|
NATS_ADDR |
no | demo.nats.io |
NATS server address |
NATS_TOPICS |
no | Comma-separated subscription topics | |
NATS_JWT |
no | JWT for authentication | |
NATS_SEED |
no | NKey seed for signing |
Usage
use Backend;
use Client;
let options = from_env?;
let client = connect_with.await?;
License
MIT OR Apache-2.0