react_rust_wasm

reactを使ってwasmを行う

Notion(途中)

参考文献

実装の参考

Intro to Webassembly in React With Rust

Rustで画像に文字を描画する

Rust で画像処理?

WebAssembly (Rust) によるブラウザ上の画像処理

Rustで画像をネガポジ変換

Rust - image

補足情報など

Rust(wasm)のimage::load_from_memory遅すぎ問題

WebAssembly で画像のリサイズ処理をやってみたら JavaScript + Canvas API より遅かった話

エラー解消の参考

  • wasmでwebpack5だとwarningが出る

This crate hits a buggy Webpack 5 warning when building for wasm32-unknown

  • babelがReferenceError: regeneratorRuntime is not definedのエラーを出す

Node.js + Babelで「ReferenceError: regeneratorRuntime is not defined」となる場合

  • cssのtypeエラー

How to import CSS modules with Typescript, React and Webpack

  • jpgが読まれないエラー

The global thread pool has not been initialized.: ThreadPoolBuildError { kind: IOError(Error { kind: Unsupported, message: "operation not supported on this platform" }) }