Files
SpacetimeDB/modules/module-test
Shubham Mishra cfb185a235 rust: default macro (#3177)
# Description of Changes
PR introduces support for column-level default values via a new
`#[default(...)]` attribute.

It also validates, `default` macro is not used along with `primary_key`,
`unique` or `auto_inc`.

# API and ABI breaking changes

NA

# Expected complexity level and risk
2

# Testing
Start using macro in `module-test`.

---------

Co-authored-by: James Gilles <jameshgilles@gmail.com>
2025-09-16 08:39:52 +00:00
..
2025-09-16 08:39:52 +00:00
2025-08-22 19:36:47 +00:00

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