Skip to content

Fix spacetime dev using debug builds for Rust/C# clients#4472

Closed
clockwork-labs-bot wants to merge 1 commit intomasterfrom
bot/fix-dev-release-build
Closed

Fix spacetime dev using debug builds for Rust/C# clients#4472
clockwork-labs-bot wants to merge 1 commit intomasterfrom
bot/fix-dev-release-build

Conversation

@clockwork-labs-bot
Copy link
Collaborator

spacetime dev builds the server module in release mode, but the auto-detected client commands used debug builds:

  • Rust: cargo run (debug) → cargo run --release
  • C#: dotnet run (debug) → dotnet run --configuration Release

This caused a build mode mismatch where the server module was optimized but the client ran unoptimized.

Updated both detect_client_command() (auto-detection from project files) and for_client_lang() (config-based command generation) to use release builds.

detect_client_command() returned 'cargo run' for Rust clients and
'dotnet run' for C# clients, which default to debug builds. The server
module was already built with --release, creating a mismatch.

Change to 'cargo run --release' and 'dotnet run --configuration Release'
so the client process matches the server module's release build.

Also update for_client_lang() which generates the same commands for
spacetime.json configs.
@bfops
Copy link
Collaborator

bfops commented Feb 26, 2026

This isn't a bug after all - the first is the module and the second is the client. It's fine as-is.

@bfops bfops closed this Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants