Add Rust adapters for core node components #10
[vc]: #jvgx2Vm/nSI4AquUeRhDkALEnz6/y0u6YPTyRts59As=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJoeXBlcmZ5IiwicHJvamVjdElkIjoicHJqX2ZJVUFwd0ZaeHVNVUlJQmdtWWZrdFNJQUJVRXciLCJyb290RGlyZWN0b3J5IjoiJDovL2h5cGVyZnk6Ly8kIiwibGl2ZUZlZWRiYWNrIjp7InJlc29sdmVkIjowLCJ1bnJlc29sdmVkIjowLCJ0b3RhbCI6MCwibGluayI6IiJ9LCJpbnNwZWN0b3JVcmwiOiJodHRwczovL3ZlcmNlbC5jb20vaHlwZXJmeWEvaHlwZXJmeS83UXhGQVBRNnoxREp5OVZuVFlBRTVueXI3bjU1IiwicHJldmlld1VybCI6IiIsIm5leHRDb21taXRTdGF0dXMiOiJGQUlMRUQifV19
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Actions | Updated |
| :--- | :----- | :------ | :------ |
| <a href="https://vercel.com/hyperfya/hyperfy"><sup><img src="https://vercel.com/api/www/avatar?projectId=prj_fIUApwFZxuMUIIBgmYfktSIABUEw&teamId=team_eYOro5HQoHZ4jG6A3dTBtPNo&s=32" width="16" height="16" align="middle" alt="" /></sup></a> hyperfy | !Error Error | | <relative-time datetime="2026-10-13T04:58:52.752Z">Oct 13, 2026 4:58am UTC</relative-time> |
The replacement CI now validates only the new Rust crate, so the production JavaScript lint and test suite no longer runs in any workflow. In particular, npm test covers build/hosting entitlement and duplicate reward-claim behavior (test/monetization-progression.test.js:33-61,124-132); Rust tests cannot catch regressions there. Keep the Cargo checks, but install Node dependencies and run the existing npm run lint and npm test scripts as part of PR validation.
This four-number identity value is a quaternion, but the core node contract names it quaternion; rotation is a separate Euler value (src/core/nodes/Node.js:61-77,411-420). Calling this field rotation makes the adapter incompatible with the shared node shape and can cause consumers to map [x, y, z, w] to the Euler API. Rename it to quaternion, or model Euler rotation separately if that is the intended representation.
This test repeats the Rust macro's literals rather than checking the production registry in src/core/nodes/index.js, so JavaScript and Rust can drift while the assertion remains green. The test name therefore overstates the validation it provides; derive both registries from a shared manifest or compare this list against the actual core registry.
<!-- ccr-overview-v2 -->
🟡 Changes recommended
JavaScript validation is removed from CI, and the Rust transform API mislabels quaternion data as rotation.
<details open>
<summary><strong>3 open findings</strong></summary>
</details>
<details>
<summary><strong>What changed in this PR</strong></summary>
Adds a Rust workspace with typed adapters for the 23 core node kinds and Rust-focused CI validation.
Changes:
| File | Description |
| ---- | ----------- |
| rust/components/src/lib.rs | Defines component adapters and tests. |
| rust/components/Cargo.toml | Configures the components crate. |
| Cargo.toml | Defines the Cargo workspace. |
| Cargo.lock | Locks workspace packages. |
| .github/workflows/rust.yml | Adds Rust CI validation. |
| .github/workflows/deno.yml | Removes Deno CI. |
| deno.json | Removes Deno lint configuration. |
| .gitignore | Ignores Cargo build output. |
</details>
🧠 Review effort: Balanced
---
💡 <a href="/Hyperfy1/hyperfy/new/main?filename=.github/skills/code-review/SKILL.md" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Add a code-review agent skill</a> or configure MCP servers for context-aware, tailored reviews. <a href="https://docs.github.com/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review?tool=webui#mcp-servers-and-agent-skills" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Learn more in the docs.</a>
Approved these changes.
Approved these changes.
Approved these changes.
Approved these changes.
Approved these changes.
Approved these changes.
tjkilgore93-stack
Copilot
Introduce a Rust-first validation path and pure Rust adapters for the project’s core node component kinds, without restoring Deno CI.
<!-- gk-ai-analysis-start:03e7199d3e1e69f730bdd1a4e1b53e81c633455b -->
<!-- gk-ai-analysis-data:eyJzdW1tYXJ5IjoiSW50cm9kdWNlIHB1cmUgUnVzdCBhZGFwdGVycyBmb3IgY29yZSBub2RlIGNvbXBvbmVudHMgYW5kIHJlcGxhY2UgdGhlIERlbm8gQ0kgd29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mtmbG93IHRvIHJ1biBgY2FyZ28gZm10YCwgYGNsaXBweWAsIGFuZCB0ZXN0cy4iLCJzZXZlcml0eSI6ImxvdyIsImZpbGVQYXRoIjoiLmdpdGh1Yi93b3JrZmxvd3MvcnVzdC55bWwiLCJsaW5lU3RhcnQiOjEsImxpbmVFbmQiOjI3fV0sImlzc3VlcyI6W10sInN1Z2dlc3Rpb25zIjpbXSwic2VjdXJpdHkiOltdfQ== -->
<!-- gk-ai-analysis-end:03e7199d3e1e69f730bdd1a4e1b53e81c633455b -->
<!-- gitkraken-review-badge-begin -->
---

<!-- gitkraken-review-badge-end -->