Debian Codegraph @

debian/missing-sources/ttf-parser/examples/wasm/README.md

raw symbols SCIP
1 # ttf-parser as a WebAssembly module
2
3 ## Build
4
5 ```sh
6 rustup target add wasm32-unknown-unknown
7
8 cargo build --target wasm32-unknown-unknown --release --manifest-path ../../c-api/Cargo.toml
9 cp ../../c-api/target/wasm32-unknown-unknown/release/ttfparser.wasm .
10 ```
11
12 ## Run
13
14 You can use any webserver that can serve `index.html`. Here is a Python example:
15
16 ```sh
17 python -m http.server
18 ```