SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

Rust client SDK codegen: skip and warn for ill-typed indexes.

Open gefjon opened this issue 9 months ago • 0 comments

In the Rust client SDK, it should be possible to spacetime generate bindings for a module with an index whose types are not filterable. The resulting bindings should compile and run without error, but should not contain the ill-typed index. That is, spacetime generate for the Rust client SDK skips indexes with non-filterable key types. A warning should be printed to the console when skipping such an index during spacetime generate.

This should be unreachable after #2494 and #2495 , but I expect we'll encounter modules that bypass those restrictions in various ways.

gefjon avatar Mar 24 '25 16:03 gefjon