Closed
Description
It should have
- the state-of-the-art dependencies already in
Cargo.toml
extern
declarations for those crates already insrc/lib.rs
#![no_std]
declarationpanic_fmt
handler that doesn't usefmt
ing infrastructure, for small code sizes by default- some script or makefile or xargo type thing that does
cargo build --release wasm32-unknown-unknown && wasm-gc ... && wasm-opt ...
Open questions:
- Where should this template live? A new repository?
- What dependencies should it come with?
wasm-bindgen
? This seems like a good choice to me.wee_alloc
as the global allocator? This is much more opinionated, and is likely not the right choice in many situations, but in the library-for-use-by-JS scenario fairly likely to be a good choice.- Other things?