SpacetimeDB
SpacetimeDB copied to clipboard
Use spacetimedb-standalone to get schema for spacetime generate
Description of Changes
In preparation for adding another host type, I realized it would make sense to have it so we don't have to compile huge runtimes for spacetimedb-cli in addition to spacetimedb-standalone. Now, spacetime generate shells out to spacetimedb-standalone, which uses host_controller.check_module_validity() to load the module and get the ModuleDef.
Expected complexity level and risk
2: Introducing another way that the binaries interact with each other, but this is altogether pretty small and straightforward.
Testing
- [x] Ensured
spacetime generatestill works. - [ ]
Apologies for the rebase; there was a big conflict with #2593 and it didn't really make sense to do a merge.