| Crates.io | typst-embedded-package |
| lib.rs | typst-embedded-package |
| version | 0.3.0 |
| created_at | 2025-01-09 14:02:07.178123+00 |
| updated_at | 2025-03-04 18:21:48.788411+00 |
| description | Support to embed typst package to the binary |
| homepage | |
| repository | https://github.com/tguichaoua/typst-embedded-package |
| max_upload_size | |
| id | 1509968 |
| size | 156,305 |
Embed typst packages directly in the binary.
src directoryinclude_package!Package::read_archive (requires the read-archive feature)// Embed the package located at "/src/typst-packages/preview/cetz-0.3.1.tar.gz"
const CETZ: Package = include_package!("typst-packages" "preview" "cetz" (0, 3, 1));
// Embed multiple packages.
const PACKAGES: [Package; 2] = include_package!(
"typst-packages"
[
"preview" "cetz" (0, 3, 1),
"preview" "oxifmt" (0, 2, 0),
]
);