Skip to content

[Rust] Allow to supply a default string value#5562

Draft
kistz wants to merge 16 commits into
clockworklabs:masterfrom
kistz:deafult-string-fix
Draft

[Rust] Allow to supply a default string value#5562
kistz wants to merge 16 commits into
clockworklabs:masterfrom
kistz:deafult-string-fix

Conversation

@kistz

@kistz kistz commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Description of Changes

Rust modules cannot do it at the moment.
Allow it by taking in a &'static str.
The approach in the macro is safe because we always have a std::String enforeced by the SpacetimeType implementation.

API and ABI breaking changes

None. Additive changes

TODO: Update the documentation aswell if approach is good enough.

Expected complexity level and risk

1

Testing

  • Migrated a test module locally and it worked
  • Added a test for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant