This is a monorepo containing several small wasm demo's written in both rust and cpp.
good article about emscripten in general: https://developers.google.com/web/updates/2018/03/emscripting-a-c-library
same guy about embind: https://web.dev/embind/