70bf21e064
Deploy (to testing) and Test Playground Preview Worker / Deploy Playground Preview Worker (testing) (push) Has been skipped
Deploy Workers Shared Staging / Deploy Workers Shared Staging (push) Failing after 0s
Prerelease / build (push) Has been skipped
Handle Changesets / Handle Changesets (push) Has been cancelled
Semgrep OSS scan / semgrep-oss (push) Has been cancelled
19 lines
493 B
Markdown
19 lines
493 B
Markdown
# Additional Modules
|
|
|
|
The modules directory contains the following example files:
|
|
|
|
- `bin-example.bin` - a TTF file for the Inter font with the extension changed to `.bin`
|
|
- `html-example.html` - a Hello World HTML document
|
|
- `text-example.txt` - a simple text file
|
|
- `wasm-example.wasm` - a compiled WebAssembly file that exports an `add` function
|
|
|
|
The WebAssembly is generated from the following C code:
|
|
|
|
```c
|
|
#include <stdint.h>
|
|
|
|
int32_t add(int32_t a, int32_t b) {
|
|
return a + b;
|
|
}
|
|
```
|