examples/hello-world-rust/README.md
A minimal example demonstrating RivetKit in Rust with a real-time counter shared across multiple clients. This is the Rust translation of the hello-world example.
git clone https://github.com/rivet-dev/rivet.git
cd rivet/examples/hello-world-rust
cargo build -p rivet-engine
RIVET_ENGINE_BINARY_PATH=../../target/debug/rivet-engine cargo run
See the Rust Quickstart for creating the actor and connecting clients.
rivetkit crate's Actor and Handles traitsThis example demonstrates the core RivetKit concepts with a simple counter:
src/lib.rs): A counter actor with persistent state, an increment action, and a newCount broadcast eventRead more about actions, state, and events.
MIT