summaryrefslogtreecommitdiff
path: root/crates/typst-cli/Cargo.toml
diff options
context:
space:
mode:
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"]