| Filename | Latest commit message | Latest commit date |
|---|---|---|
The README called an exception escaping main a trap. It is an uncaught WebAssembly exception, and nothing prints its type or what(); the README says so now. It also lists what a wasm build refuses and why, says that setjmp needs -lsetjmp and that a longjmp across a noexcept function ends the program, that a wasmtime older than 47 needs -W exceptions=y, and that an old wasm-opt on PATH breaks release links. It documents exit and park in a page from EnableWasiBrowserRuntime, with the declaration of the park import. The wasi example still sent Arch users to wasi-libc++, which has no exception-enabled libraries. It asks for a wasi-sdk 33 sysroot or the Flatpak now, and names the browsers a page needs. AGENTS.md notes that the runtime test needs node, so it runs in the native loop and not in CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
| .. | ||
| hello-world | ||
| library | ||
| tests | ||
| wasi | ||
| with-module | ||
| LICENSE | ||
| README.md | ||
Examples
Self-contained projects, ordered from simplest to most full-featured. Each example has its own README explaining what it shows.
| Example | What it shows |
|---|---|
| hello-world | The minimum: project.cpp + main.cpp |
| with-module | Adding a C++ module interface |
| library | Library + executable, linked via cfg.dependencies |
| tests | Auto-discovered tests + tests that link the parent library |
Each example builds standalone: cd examples/<name> && crafter-build. Test examples: crafter-build test.