SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

Add a test which verifies that Blackholio's types generated from Rust can be used with the C# module and vice versa

Open cloutiertyler opened this issue 11 months ago • 2 comments

DOD: We have a test in the blackholio repo which verifies that you can use the Rust module to generate types for use in Unity, and then you can connect to the C# module (and vice versa).

You can't:

spacetime generate --lang csharp -p server-rust --out-dir ../client-unity/Assets/autogen
spacetime publish -p server-csharp blackholio
# you get errors when you connect in unity

Nor can you do:

spacetime generate --lang csharp -p server-csharp --out-dir ../client-unity/Assets/autogen
spacetime publish -p server-rust blackholio
# you get errors when you connect in unity

What we should perhaps actually test is that the ModuleDefs are identical.

cloutiertyler avatar Jan 24 '25 22:01 cloutiertyler

This currently wouldn't work.

bfops avatar Apr 07 '25 19:04 bfops

Yes, this won't work due to the lack of reducer name canonicalization.

kazimuth avatar Apr 21 '25 15:04 kazimuth