gundb-0.1.1 has been yanked.
Gun-rs
Pure Rust implementation of Gun. For a wasm version, check out gun-rs-wasm.
Deployed at https://gun-us.herokuapp.com (serves iris-messenger at the root)
Live stats: https://gun-us.herokuapp.com/stats
Use
Install Rust first.
Gun server
cargo install gundb
gundb start
Gun library
use ;
use GunValue;
let mut db = new_with_config;
let sub = db.get.on;
db.get.put;
if let Ok = sub.recv.await
Status
3/12/2021:
- Gun basic API
- CLI for running the server
- Incoming websockets
- Outgoing websockets (env PEERS=wss://some-server-url.herokuapp.com/gun)
- Multicast (Iris messages seem not to propagate — size limit?)
- In-memory storage
- TLS support (env CERT_PATH and KEY_PATH)
- Disk storage
- SEA
- Advanced deduplication
Develop
cargo install cargo-watch
RUST_LOG=debug cargo watch -x 'run -- start'
Run on Heroku
heroku create --buildpack emk/rust
git push heroku master
or: