fix: Added missing getrandom wasm_js feature to surrealdb-types by emirror-de · Pull Request #7074 · surrealdb/surrealdb · GitHub
Skip to content

fix: Added missing getrandom wasm_js feature to surrealdb-types#7074

Open
emirror-de wants to merge 1 commit intosurrealdb:mainfrom
emirror-de:bugfix-types-add-missing-getrandom-wasm-feature
Open

fix: Added missing getrandom wasm_js feature to surrealdb-types#7074
emirror-de wants to merge 1 commit intosurrealdb:mainfrom
emirror-de:bugfix-types-add-missing-getrandom-wasm-feature

Conversation

@emirror-de
Copy link
Copy Markdown

@emirror-de emirror-de commented Mar 11, 2026

What is the motivation?

Compilation of surrealdb-types fails with wasm*-unknown-unknown targets are not supported by default, which is a result of getrandom having wasm_js feature not enabled.

What does this change do?

Added getrandom to conditional dependency for target_family = "wasm" that enables wasm_js feature.

What is your testing strategy?

Compiling surrealdb-types to wasm target.

Is this related to any issues?

Does this change need documentation?

  • No documentation needed

Does this change make any alterations to environment variables or CLI commands?

  • No changes made to env vars

Have you read the Contributing Guidelines?

@github-actions github-actions Bot added the community PRs from the community. This label is used to ensure all community PRs get reviewed. label Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community PRs from the community. This label is used to ensure all community PRs get reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant