Ranvier Std (ranvier-std)
Standard transition nodes and utility helpers for Ranvier circuits.
Guard Transition Nodes
Guard nodes are Transition<T, T> — they pass input through on success or return Fault on rejection.
Every guard is visible in the Schematic as a named node.
| Guard | Purpose |
|---|---|
CorsGuard |
Validates request origin against allowed origins |
RateLimitGuard |
Per-client token-bucket rate limiting |
SecurityHeadersGuard |
Injects HSTS, CSP, X-Frame-Options into Bus |
IpFilterGuard |
Allow-list / deny-list IP filtering |
use *;
let pipeline = new
.then
.then // 100 req/min
.then
.then;
Examples
std-lib-demo— Standard library node usage (Filter, Switch, Math, String)guard-demo— Guard pipeline with CORS, rate limit, security headers, IP filter
MSRV
- Rust
1.93.0or newer (Edition 2024).