From 672f6e5f97c2bdcd3e94754c9486869bf7b8de56 Mon Sep 17 00:00:00 2001 From: tingerrr Date: Mon, 5 Aug 2024 20:49:02 +0200 Subject: Add typst-kit crate (#4540) --- crates/typst-cli/Cargo.toml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'crates/typst-cli/Cargo.toml') diff --git a/crates/typst-cli/Cargo.toml b/crates/typst-cli/Cargo.toml index 7ada123c..31f19f39 100644 --- a/crates/typst-cli/Cargo.toml +++ b/crates/typst-cli/Cargo.toml @@ -20,6 +20,7 @@ doc = false [dependencies] typst = { workspace = true } typst-assets = { workspace = true, features = ["fonts"] } +typst-kit = { workspace = true } typst-macros = { workspace = true } typst-pdf = { workspace = true } typst-render = { workspace = true } @@ -31,9 +32,6 @@ codespan-reporting = { workspace = true } comemo = { workspace = true } dirs = { workspace = true } ecow = { workspace = true } -env_proxy = { workspace = true } -flate2 = { workspace = true } -fontdb = { workspace = true, features = ["memmap", "fontconfig"] } fs_extra = { workspace = true } native-tls = { workspace = true } notify = { workspace = true } @@ -56,11 +54,6 @@ ureq = { workspace = true } xz2 = { workspace = true, optional = true } zip = { workspace = true, optional = true } -# Explicitly depend on OpenSSL if applicable, so that we can add the -# `openssl/vendored` feature to it if `vendor-openssl` is enabled. -[target.'cfg(not(any(target_os = "windows", target_os = "macos", target_os = "ios", target_os = "watchos", target_os = "tvos")))'.dependencies] -openssl = { workspace = true } - [build-dependencies] chrono = { workspace = true } clap = { workspace = true, features = ["string"] } @@ -71,17 +64,14 @@ semver = { workspace = true } [features] default = ["embed-fonts"] -# Embeds some fonts into the binary: -# - For text: Linux Libertine, New Computer Modern -# - For math: New Computer Modern Math -# - For code: Deja Vu Sans Mono -embed-fonts = [] +# Embeds some fonts into the binary, see typst-kit +embed-fonts = ["typst-kit/embed-fonts"] # Permits the CLI to update itself without a package manager. self-update = ["dep:self-replace", "dep:xz2", "dep:zip"] # Whether to vendor OpenSSL. Not applicable to Windows and macOS builds. -vendor-openssl = ["openssl/vendored"] +vendor-openssl = ["typst-kit/vendor-openssl"] [lints] workspace = true -- cgit v1.2.3