Typst-Embedded-Package
Embed typst packages directly in the binary.
How to use
- Download package archives from https://typst.app/universe/search/?kind=packages
- Move those archives somewhere in the
src
directory - Include the archives with
include_package!
- Read the content of the archive with
Package::read_archive
(requires theread-archive
feature)
// Embed the package located at "/src/typst-packages/preview/cetz-0.3.1.tar.gz"
const CETZ: Package = include_package!;
// Embed multiple packages.
const PACKAGES: = include_package!;