Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 480 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 480 Bytes

hello-firebase-wasm

POC WASM on Firebase Cloud Function

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