Files
Tristan Cartledge 226aa9283a Initial commit: JavaScript to WebAssembly compilation comparison
- 5 different JS-to-WASM implementations analyzed
- QuickJS (283KB) and Javy Static (519KB) are Wasmer-compatible
- Comprehensive size analysis and runtime compatibility testing
- Complete documentation and build automation
- Wasmer v6.1.0-rc.2 dynamic linking analysis included
2025-08-18 13:51:20 +10:00

20 lines
470 B
JavaScript

import { transformData } from "./rust-adapter.js";
const testData = JSON.stringify({
users: [
{ name: "Alice", age: 30 },
{ name: "Bob", age: 25 },
],
});
console.log("Testing Rust implementation...");
console.log("Input:", testData);
try {
const result = transformData(testData);
console.log("Output:", result);
console.log("✅ Rust implementation working!");
} catch (error) {
console.error("❌ Rust implementation failed:", error.message);
}