[workspace] members = ["cli", "docs", "library", "macros", "tests"] default-members = ["cli"] [workspace.package] version = "0.5.0" rust-version = "1.70" # also change in ci.yml authors = ["The Typst Project Developers"] edition = "2021" homepage = "https://typst.app" repository = "https://github.com/typst/typst" readme = "README.md" license = "Apache-2.0" [package] name = "typst" description = "A new markup-based typesetting system that is powerful and easy to learn." categories = ["compilers", "science"] keywords = ["markup", "typesetting"] version.workspace = true rust-version.workspace = true authors.workspace = true edition.workspace = true homepage.workspace = true repository.workspace = true license.workspace = true [lib] doctest = false bench = false [dependencies] typst-macros = { path = "macros" } bitflags = { version = "2", features = ["serde"] } bytemuck = "1" comemo = "0.3" ecow = "0.1" flate2 = "1" fontdb = "0.13" if_chain = "1" image = { version = "0.24", default-features = false, features = ["png", "jpeg", "gif"] } indexmap = "1.9.3" log = "0.4" miniz_oxide = "0.7" once_cell = "1" pdf-writer = "0.7.1" pixglyph = "0.1" regex = "1" resvg = { version = "0.32", default-features = false } roxmltree = "0.18" rustybuzz = "0.7" serde = { version = "1", features = ["derive"] } siphasher = "0.3" subsetter = "0.1.1" svg2pdf = { git = "https://github.com/typst/svg2pdf" } tiny-skia = "0.9.0" tracing = "0.1.37" ttf-parser = "0.18.1" unicode-general-category = "0.6" unicode-ident = "1.0" unicode-math-class = "0.1" unicode-segmentation = "1" unscanny = "0.1" usvg = { version = "0.32", default-features = false, features = ["text"] } xmp-writer = "0.1" time = { version = "0.3.20", features = ["std", "formatting"] } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] stacker = "0.1.15" [profile.dev.package."*"] opt-level = 2 [profile.release] lto = "thin" codegen-units = 1 [profile.release.package."typst-cli"] strip = true