11 个版本
| 0.5.0-rc6 | 2024 年 7 月 15 日 |
|---|---|
| 0.5.0-rc5 | 2024 年 6 月 27 日 |
| 0.5.0-rc4 | 2024 年 5 月 18 日 |
| 0.5.0-rc3 | 2024 年 4 月 5 日 |
| 0.2.2 | 2023 年 6 月 10 日 |
#234 in WebAssembly
791 每月下载量
用于 2 crates
560KB
12K SLoC
typst-ts-compiler
查看 Typst.ts
lib.rs:
Typst.ts 编译器库。
该库用于将 Typst 代码编译成文档并导出到各种工件中。有关可用的导出器的更多信息,请参阅 https://github.com/Myriad-Dreamin/typst.ts/tree/main/exporter。
库由三部分组成
-
model:编译器特有的低级抽象,定义了font::FontSlot:加载字体的方式。vfs::AccessModel:编译器如何访问存储。package::Registry:编译器如何获取有关包的数据。
-
world:世界是库的核心部分,它维护了 typst 编译所需的所有数据。vfs::Vfs:检索vfs::AccessModel,为world::CompilerWorld提供虚拟文件系统。world::CompilerWorld:检索world::CompilerFeat,提供typst::World的通用实现。
-
service:在world::CompilerWorld上提供便利的服务,同时也展示了如何使用world::CompilerWorld。
依赖项
~75MB
~1M SLoC