diff options
| author | tingerrr <me@tinger.dev> | 2024-08-05 20:49:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-05 18:49:02 +0000 |
| commit | 672f6e5f97c2bdcd3e94754c9486869bf7b8de56 (patch) | |
| tree | 14dc74c6f841f69e7e820240af84b41f7c32b52b /crates/typst-kit/src/lib.rs | |
| parent | 810491c9d31b614a435020f888fbd380e8e039a1 (diff) | |
Add typst-kit crate (#4540)
Diffstat (limited to 'crates/typst-kit/src/lib.rs')
| -rw-r--r-- | crates/typst-kit/src/lib.rs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/crates/typst-kit/src/lib.rs b/crates/typst-kit/src/lib.rs new file mode 100644 index 00000000..4301727f --- /dev/null +++ b/crates/typst-kit/src/lib.rs @@ -0,0 +1,27 @@ +//! Typst-kit contains various default implementations of functionality used in +//! typst-cli. It is intended as a single source of truth for things like font +//! searching, package downloads and more. Each component of typst-kit is +//! optional, but enabled by default. +//! +//! # Components +//! - [fonts] contains a default implementation for searching local and system +//! installed fonts. It is enabled by the `fonts` feature flag, additionally +//! the `embed-fonts` feature can be used to embed the Typst default fonts. +//! - For text: Linux Libertine, New Computer Modern +//! - For math: New Computer Modern Math +//! - For code: Deja Vu Sans Mono +//! - [download] contains functionality for making simple web requests with +//! status reporting, useful for downloading packages from package registires. +//! It is enabled by the `downloads` feature flag, additionally the +//! `vendor-openssl` can be used on operating systems other than macOS and +//! Windows to vendor OpenSSL when building. +//! - [package] contains package storage and downloading functionality based on +//! [download]. It is enabled by the `packages` feature flag and implies the +//! `downloads` feature flag. + +#[cfg(feature = "downloads")] +pub mod download; +#[cfg(feature = "fonts")] +pub mod fonts; +#[cfg(feature = "packages")] +pub mod package; |
