Runar Common
Common traits and utilities shared across the Runar stack.
What’s inside
- Structured logging with component and node-id context
- Lightweight error utilities (re-exports of
anyhowandthiserror) - DNS-safe compact ID generator
Install
Add to your Cargo.toml:
[]
= "0.1"
Logging
use ;
let root = new_root;
let svc = root.with_component;
svc.info;
svc.warn;
svc.error;
Compact IDs
use compact_id;
let public_key_bytes: = ;
let id = compact_id;
assert_eq!;
assert!;
Errors
use ;
License
MIT. See LICENSE.