slop-ai
Rust SDK for SLOP (State Layer for Observable Programs).
Expose application state as a structured tree that AI agents can subscribe to, inspect, and act on over WebSocket, Unix socket, stdio, or Axum-backed endpoints.
Installation
For Axum integration:
Quick start
use json;
use SlopServer;
let slop = new;
slop.register;
Feature flags
| Feature | Default | Description |
|---|---|---|
native |
Yes | Enables the native transport set |
websocket |
No | WebSocket provider and client support |
unix |
No | Unix socket provider and client support |
stdio |
No | Stdio transport for CLI and subprocess workflows |
axum |
No | Axum WebSocket integration |
Documentation
- Project API page: https://docs.slopai.dev/api/rust
- Rust guide: https://docs.slopai.dev/guides/rust
- docs.rs: https://docs.rs/slop-ai
Discovery layer
The Rust SDK includes the core discovery layer in slop_ai::discovery under the default native feature set:
use ;
async