Closed tingerrr closed 4 months ago
The CLI is now implemented in terms of the new lib crate, compiles and successfully runs all tests for cetz.
It's currently reusing the lib crate's internal dev World impl, which is the next thing that has to be ported to the binary crate.
This is currently blocked on typst#4452, I want to avoid copying a bunch of code when it'll likely be available as a crate soon. This includes the recently copied font loading in ea3e19be1909035c217781bc2a13966b69640037.
This branch has no reached feature parity with the typst cli, i.e. font searching and package downloads.
There are a few issues that remain, which I have added to the TODO list in the issue comment.
This is an almost complete rewrite of typst-test which aims to:
TODO
Currently, most of the core implementation exists as disjunct components in the library crate, which need to be wired back together to reach feature parity with the original binary crate. There are a few things that I want to outline here to make sure they are implemented before I am done.
ignore::walkdir
works well in the presence of other parallel stuff like rayon, or if this could cause the actual library consumer to spawn a hilarious number of threads.Issues
typst
directly as a crate