typst-plugin-compiler
This repository provides a simple docker image to easily compile Typst WASM plugins using EMCC and wasi-stub
The wasi-stub executable is taken from the wasm-minimal-protocol repo.
Compiling a plugin
-
Write your C plugin. You can start from the example provided in the wasm-minimal-protocol repo.
-
Run the docker image:
docker run --rm -v $(pwd):/src git.kb28.ch/hel/typst-plugin-compiler:latest compile plugin.c
-
Copy the output file (for the above example,
plugin.wasm
) to your Typst project
Description
V0.1.0
Latest
Languages
Dockerfile
65.4%
Shell
34.6%