elastik
Rust client for elastik. The server is the Rust binary you
pip install. This crate is the Rust client that talks to it.
use Elastik;
Install
[]
= "0.0.1"
What is elastik
A pastebin with HMAC that accidentally became a web OS. One Rust binary
on the server, one client per language. The server lives in
pip install elastik; the
JavaScript client in
@elastik/client;
this crate is the Rust client.
API
let e = new.token;
e.put; // → PutResponse
e.get; // → Envelope (JSON)
e.get_raw; // → Vec<u8> (raw bytes)
e.head; // → HashMap<String, String>
e.delete; // → bool
e.list; // → Vec<String>
e.shaped; // → Vec<u8>
Synchronous (reqwest::blocking) by default. Async support behind the
async feature flag (TODO).
Status
Sketch / 0.0.1. Atom bindings only. The reactor sugar (@listen +
Action classes, the L2 layer in the Python SDK) and the bundled-binary
spawn helper haven't been ported yet — for now, run the elastik server
out-of-band (any way works: pip install elastik && python -c "import elastik; elastik.start()" is one line) and point this client at it.
License
MIT.