From 007af47ed42931b887483be6ec95073c198ab07f Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Wed, 29 Apr 2026 16:14:49 +0200 Subject: feat(typst): extern rust functions for C ABI --- typst/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 typst/README.md (limited to 'typst/README.md') diff --git a/typst/README.md b/typst/README.md new file mode 100644 index 0000000..6e2530f --- /dev/null +++ b/typst/README.md @@ -0,0 +1,12 @@ +# typst library + +This folder contains a Rust library used to compile typdown's typst components. +We cannot write it in Zig, because there are no existing C bindings for typst. + +## Build example + +```shell +$ cargo build +$ gcc example.c -o example -ltypdown_typst -L./target/debug +$ LD_LIBRARY_PATH=./target/debug ./example +``` -- cgit v1.2.3