modules/sdk-test-procedure-cpp/client/README.md
Rust client for testing the sdk-test-procedure-cpp module.
Build the C++ module:
cd ..
.\compile.bat
Start SpacetimeDB (if not already running):
spacetime start
Publish the module:
cd build
spacetime publish --module-path .. lib.wasm --clear-database
Generate Rust bindings:
cd ../client
spacetime generate --lang rust --out-dir src/module_bindings --module-path .
Run the client:
cargo run
SPACETIMEDB_HOST - SpacetimeDB host URL (default: http://localhost:3000)SPACETIMEDB_DB_NAME - Database name (default: sdk-test-procedure-cpp)The client will test the following procedures:
return_primitive(lhs, rhs) - Returns sum of two uint32 valuesreturn_struct(a, b) - Returns struct with fieldsreturn_constant() - Returns constant 42will_fail(value) - Returns error when value=0This is a standalone Rust project, not part of the root workspace.