How to use Typst as Rust Library?

A better approach would be to write a Typst template, and then populate it using Typst’s data loading capabilities. See e.g. here for a discussion (including embedding this in a Python script.

If you have specific questions, we can try to help. But it might be easier to call the Typst compiler executable instead of the library, depending on what the environment you’re running in is like.

Interestingly, this came up in a podcast recently. The co-host who talked about it is James Munns. I didn’t find find anything on his Github, but maybe that pointer turns out useful.

(PS: your combination of profile picture and user name is great :stuck_out_tongue:)