diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-29 16:14:49 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-29 16:14:49 +0200 |
| commit | 007af47ed42931b887483be6ec95073c198ab07f (patch) | |
| tree | e626be89b4ea0f61025d6a85ef2d7075b878371e /typst/example.c | |
| parent | 4551f9c554c1fef32ef2b7e55b01b1fb90186cbf (diff) | |
feat(typst): extern rust functions for C ABI
Diffstat (limited to 'typst/example.c')
| -rw-r--r-- | typst/example.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 <stdio.h> + +int main() { + const char* res = typst_generateSVG("Hello world"); + printf("%s\n", res); + typst_freeSVG(res); + return 0; +} |
