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/example.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 typst/example.c (limited to 'typst/example.c') diff --git a/typst/example.c b/typst/example.c new file mode 100644 index 0000000..a1df659 --- /dev/null +++ b/typst/example.c @@ -0,0 +1,9 @@ +#include "typst.h" +#include + +int main() { + const char* res = typst_generateSVG("Hello world"); + printf("%s\n", res); + typst_freeSVG(res); + return 0; +} -- cgit v1.2.3