diff options
Diffstat (limited to 'crates/typst-cli/Cargo.toml')
| -rw-r--r-- | crates/typst-cli/Cargo.toml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/crates/typst-cli/Cargo.toml b/crates/typst-cli/Cargo.toml index c25e290f..9f0f280e 100644 --- a/crates/typst-cli/Cargo.toml +++ b/crates/typst-cli/Cargo.toml @@ -56,6 +56,11 @@ 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] clap = { workspace = true, features = ["string"] } clap_complete = { workspace = true } @@ -71,8 +76,11 @@ default = ["embed-fonts"] # - For code: Deja Vu Sans Mono embed-fonts = [] -# Permits the CLI to update itself without a package manager +# Permits the CLI to update itself without a package manager. self-update = ["dep:self-replace", "dep:xz2", "dep:zip", "ureq/json"] +# Whether to vendor OpenSSL. Not applicable to Windows and macOS builds. +vendor-openssl = ["openssl/vendored"] + [lints] workspace = true |
