-
Notifications
You must be signed in to change notification settings - Fork 514
Use spacetimedb-standalone to get schema for spacetime generate #2644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
0cb9645
to
c9f886b
Compare
01d902c
to
cafb0d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems quite reasonable, and minimal. I like this quite a bit. Two things before I approve:
- Left one comment that we should mark the new command as unstable
- Need to fix the private repo:
#14 66.46 Caused by:
#14 66.46 0: failed to spawn /build/public/target/debug/spacetimedb-standalone
#14 66.46 1: No such file or directory (os error 2)
#14 66.47 Error: failed to generate control-client
cafb0d8
to
9aed4cb
Compare
9aed4cb
to
a3f59eb
Compare
Apologies for the rebase; there was a big conflict with #2593 and it didn't really make sense to do a merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm approving this. Note that I spoke with Noa and we can't print the unstable warning in standalone extract-schema
, because it'll be printed from 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 useshost_controller.check_module_validity()
to load the module and get theModuleDef
.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
spacetime generate
still works.