2025-03-31 11:36:57 +02:00
2025-03-31 11:36:57 +02:00
2025-03-31 11:36:57 +02:00
2025-03-31 11:36:57 +02:00

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

  1. Write your C plugin. You can start from the example provided in the wasm-minimal-protocol repo.

  2. Run the docker image:

    docker run --rm -v $(pwd):/src git.kb28.ch/hel/typst-plugin-compiler:latest compile plugin.c
    
  3. Copy the output file (for the above example, plugin.wasm) to your Typst project

Description
Simple Docker image to compile Typst WASM plugins
Readme 24 KiB
V0.1.0 Latest
2025-03-31 09:39:50 +00:00
Languages
Dockerfile 65.4%
Shell 34.6%