summaryrefslogtreecommitdiff
path: root/crates/typst-cli/Cargo.toml
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-02-28 09:04:03 +0100
committerGitHub <noreply@github.com>2024-02-28 08:04:03 +0000
commit6dab30238adc03142c64f9b6846a43d139e9396b (patch)
tree8e1ddbecac0f429eeeb86a7b32cc0520e9946687 /crates/typst-cli/Cargo.toml
parent85305139cd896b60d6a80e64602099573ea5470e (diff)
Add `vendor-openssl` feature flag (#3510)
Diffstat (limited to 'crates/typst-cli/Cargo.toml')
-rw-r--r--crates/typst-cli/Cargo.toml10
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