Repository presumes you are on macOS. This is a very inefficient demo on how to flip a camera feed from RGB to BGR via WebGL and Rust.
-
Install VSCode VSCode
-
Install VSCode plugin CodeLLDB
-
Install rust by entering
"curl https://sh.rustup.rs -sSf | sh"
into the terminal (preusmes default installation) -
Install Clippy by entering
rustup component add clippy
into the terminal -
Install Rustfmt by entering
rustup component add rustfmt
into the terminal -
Install VSCode plugin Rust (rls)
- Close VSCode and reopen it to make sure rls has installed properly and formatting works
-
Install [Wasm-pack](curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh)
-
Run
cargo install cargo-generate
-
Install Node.JS or update NPM via
npm install npm@latest -g
For each rust code change wasm-pack build && cd www && npm install && npm start && cd ..