⚙️ Hello WASM on Firebase

WASM on Firebase Cloud Function

TLDR;

Initialize

# Setup Firebase
npm install -g firebase-tools
firebase init
firebase login
# Setup Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Setup Cargo
cargo install cargo-watch
# Setup WASM
cargo install -f wasm-bindgen-cli

Develop

# To watch and build WASM from Rust
cd wasm
cargo watch -- . ./dev.sh
# To run WASM with Firebase
cd functions
npm run dev

Done!

And yes! I’m now in love withRust and WebAssembly So much fun! :)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store