typst_kit/lib.rs
1//! Typst-kit contains various default implementations of functionality used in
2//! typst-cli. It is intended as a single source of truth for things like font
3//! searching, package downloads and more. Each component of typst-kit is
4//! optional, but enabled by default.
5//!
6//! # Components
7//! - [fonts] contains a default implementation for searching local and system
8//! installed fonts. It is enabled by the `fonts` feature flag, additionally
9//! the `embed-fonts` feature can be used to embed the Typst default fonts.
10//! - For text: Libertinus Serif, New Computer Modern
11//! - For math: New Computer Modern Math
12//! - For code: Deja Vu Sans Mono
13//! - [download] contains functionality for making simple web requests with
14//! status reporting, useful for downloading packages from package registries.
15//! It is enabled by the `downloads` feature flag, additionally the
16//! `vendor-openssl` can be used on operating systems other than macOS and
17//! Windows to vendor OpenSSL when building.
18//! - [package] contains package storage and downloading functionality based on
19//! [download]. It is enabled by the `packages` feature flag and implies the
20//! `downloads` feature flag.
21
22#[cfg(feature = "downloads")]
23pub mod download;
24#[cfg(feature = "fonts")]
25pub mod fonts;
26#[cfg(feature = "packages")]
27pub mod package;