Files
clockwork-labs-bot 6382220fa0 Remove 'Press any key to exit' in basic-rs and basic-cpp templates (#4468)
The basic-rs and basic-cpp templates say "Press any key to exit..." but
stdin is line-buffered in cooked mode, so `read(&mut [0u8])` actually
blocks until Enter is pressed.

Adding a real "any key" handler would require a terminal crate
dependency (crossterm, termion, etc.) which is heavy for a starter
template. Instead, change the message to "Press Enter to exit..." and
use `read_line()` to match the actual behavior.

Also removes the unused `Read` import.

Co-authored-by: clockwork-labs-bot <clockwork-labs-bot@users.noreply.github.com>
Co-authored-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
2026-02-26 10:37:29 +00:00
..

SpacetimeDB Rust Client

A basic Rust client for SpacetimeDB.

Setup

  1. Build and publish your server module
  2. Generate bindings:
    spacetime generate --lang rust --out-dir src/module_bindings
    
  3. Run the client:
    cargo run