mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-03-20 09:01:05 +08:00
# Description of Changes Followup to #3802; was causing issues in modules in private. Rust 2024 now requires `unsafe()` around certain attributes, but the `settings` macro was added after I first opened that PR, so I didn't wrap it. Additionally, `settings` wasn't tested in this repo, so it wasn't caught. # Expected complexity level and risk 1 # Testing - [x] Added use of `#[spacetimedb::settings]` in `module-test`
module-test Rust test
Called as part of our integration tests to ensure the system is working as expected.
Note: Also mirrored as a C# version at
modules/module-test-cs, so must be kept in sync.
How to Run
Execute individual tests with module-test for Rust and module-test-cs for C#
at standalone_integration_test, or call
# Will run both Rust/C# module
cargo test -p spacetimedb-testing
# Only Rust
cargo test -p spacetimedb-testing rust
# Only C#
cargo test -p spacetimedb-testing csharp