clockworklabs / clockworklabs/SpacetimeDB
Error publishing rust server module on current master
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 25.2k
- Forks
- 1.1k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 46
Description
Following the Rust Module Quickstart and getting the following error once attempting to do:
spacetime publish --project-path server <module-name>
Error: Error while importing "spacetime"."_delete_by_col_eq": unknown import. Expected Function(FunctionType { params: [I32, I32, I32, I32, I32], results: [I32] })
I checked out v0.7.1-beta and no error. I suspect master is expected to be broken but I didn't know if this would be helpful to have reported anyway.
Here is the relevant code in case it's helpful: https://github.com/clockworklabs/SpacetimeDB/blob/master/crates/bindings-sys/src/lib.rs#L140-L146
Maybe related to the new types?
https://github.com/clockworklabs/SpacetimeDB/commit/cba518d90e58ea2e38e154fbd0d20b6daa0cd452
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Rust Module Quickstart and reproduce the failure using spacetime publish --project-path server <module-name> on current master, then compare it with v0.7.1-beta. Read crates/bindings-sys/src/lib.rs around lines 140-146 and the referenced commit; done means publishing the Rust server module no longer reports the unknown _delete_by_col_eq import.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100