Skip to content

💡 refactor(analysis): Cleaning up some small things found during WASM analysis#177

Merged
Charles Hudson (phobetron) merged 1 commit intomainfrom
NT-2756_cleanup-from-wasm-analysis
Mar 16, 2026
Merged

💡 refactor(analysis): Cleaning up some small things found during WASM analysis#177
Charles Hudson (phobetron) merged 1 commit intomainfrom
NT-2756_cleanup-from-wasm-analysis

Conversation

@phobetron
Copy link
Copy Markdown
Collaborator

@phobetron Charles Hudson (phobetron) commented Mar 16, 2026

  • Switch workspace test globals and scripts from Vitest to Rstest
  • Add lib/mocks test config and align RsDoctor cleanup paths
  • Remove non-JSON-Schema Zod features from personalization schemas
  • Add explicit config normalization and JSON Schema export coverage

The feasibility analysis of basing Core on Rust-based WASM has ruled the idea infeasible, mostly due to the amount of functionality covered by JS engines that need to either be added manually in Rust code or factored out of Rust somehow. There's a possibility we could convert a smaller subset of Core functionality to Rust and create a WASM from that, and then generate some JS/TS functionality to Rust at build-time for Native platforms, but the added complexity is prohibitive.

[NT-2756]

… analysis

- Switch workspace test globals and scripts from Vitest to Rstest
- Add lib/mocks test config and align RsDoctor cleanup paths
- Remove non-JSON-Schema Zod features from personalization schemas
- Add explicit config normalization and JSON Schema export coverage

The feasibility analysis of basing Core on Rust-based WASM has ruled the
idea infeasible, mostly due to the amount of functionality covered by JS
engines that need to either be added manually in Rust code or factored
out of Rust somehow. There's a possibility we could convert a
smaller subset of Core functionality to Rust and create a WASM from
that, and then generate some JS/TS functionality to Rust at build-time
for Native platforms, but the added complexity is prohibitive.

[[NT-2756](https://contentful.atlassian.net/browse/NT-2756)]
@wiz-inc-38d59fb8d7
Copy link
Copy Markdown

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities 2 Medium 3 Low
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations -
SAST Finding SAST Findings -
Software Management Finding Software Management Findings -
Total 2 Medium 3 Low

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

@phobetron Charles Hudson (phobetron) merged commit 55882c3 into main Mar 16, 2026
30 checks passed
@phobetron Charles Hudson (phobetron) deleted the NT-2756_cleanup-from-wasm-analysis branch March 16, 2026 14:07
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