summaryrefslogtreecommitdiff
path: root/crates/typst-cli/Cargo.toml
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-12-05 16:25:18 +0100
committerGitHub <noreply@github.com>2024-12-05 15:25:18 +0000
commitcaa72f4ec2401c275ddd3d8794dcf0bfdf9697a8 (patch)
tree490fcf0e7d7e3deb947d377109d886ecb579081a /crates/typst-cli/Cargo.toml
parent8e4f5f21e0e52fb4ac88ab769e585af811d9b56e (diff)
Put HTTP server behind on-by-default feature flag (#5532)
Diffstat (limited to 'crates/typst-cli/Cargo.toml')
-rw-r--r--crates/typst-cli/Cargo.toml7
1 files changed, 5 insertions, 2 deletions
diff --git a/crates/typst-cli/Cargo.toml b/crates/typst-cli/Cargo.toml
index c859f043..7e9b93f9 100644
--- a/crates/typst-cli/Cargo.toml
+++ b/crates/typst-cli/Cargo.toml
@@ -50,7 +50,7 @@ shell-escape = { workspace = true }
sigpipe = { workspace = true }
tar = { workspace = true }
tempfile = { workspace = true }
-tiny_http = { workspace = true }
+tiny_http = { workspace = true, optional = true }
toml = { workspace = true }
ureq = { workspace = true }
xz2 = { workspace = true, optional = true }
@@ -65,11 +65,14 @@ color-print = { workspace = true }
semver = { workspace = true }
[features]
-default = ["embed-fonts"]
+default = ["embed-fonts", "http-server"]
# Embeds some fonts into the binary, see typst-kit
embed-fonts = ["typst-kit/embed-fonts"]
+# Enables the built-in HTTP server for `typst watch` and HTML export.
+http-server = ["dep:tiny_http"]
+
# Permits the CLI to update itself without a package manager.
self-update = ["dep:self-replace", "dep:xz2", "dep:zip"]