News for hackers. Stuff that matters.
Re:Using WebAssembly to turn Rust crates into fast TypeScrip... by chgo1 on Sunday July 02, 2023 @02:46AM (#36558935)
Nice writeup! A small improvement: There is `#[serde(rename_all = "camelCase")]` to avoid typing all properties twice.
Re:Using WebAssembly to turn Rust crates into fast TypeScrip... by benatkin on Sunday July 02, 2023 @02:59AM (#36559008)
Along the same lines, wasm-bindgen can generate the TypeScript types: https://rustwasm.github.io/wasm-bindgen/reference/attributes...