diff options
| author | jimvdl <jimvdlind@gmail.com> | 2023-08-26 20:44:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-26 20:44:58 +0200 |
| commit | 7bdf1f57b09ea605045254013a8200373451baf0 (patch) | |
| tree | 0d7264dc2ca3aaf41b31e5226d8562cb4f68121e /crates/typst-cli/Cargo.toml | |
| parent | 879182059020e4669efae2296e98cdc8360a3bc2 (diff) | |
Let the CLI `typst update` itself without a package manager (#1887)
Diffstat (limited to 'crates/typst-cli/Cargo.toml')
| -rw-r--r-- | crates/typst-cli/Cargo.toml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/crates/typst-cli/Cargo.toml b/crates/typst-cli/Cargo.toml index c5b38be6..8396e97b 100644 --- a/crates/typst-cli/Cargo.toml +++ b/crates/typst-cli/Cargo.toml @@ -35,20 +35,26 @@ once_cell = "1" open = "4.0.2" pathdiff = "0.1" same-file = "1" +# https://github.com/mitsuhiko/self-replace/pull/16 +self-replace = { git = "https://github.com/typst/self-replace", optional = true } +semver = "1" serde = "1.0.184" serde_json = "1" serde_yaml = "0.9" siphasher = "0.3" tar = "0.4" -tempfile = "3.5.0" +tempfile = "3.7.0" tracing = "0.1.37" tracing-error = "0.2" tracing-flame = "0.2.0" tracing-subscriber = "0.3.17" ureq = "2" walkdir = "2" +xz2 = { version = "0.1", optional = true } +zip = { version = "0.6", optional = true } [build-dependencies] +semver = "1" clap = { version = "4.2.4", features = ["derive", "string"] } clap_complete = "4.2.1" clap_mangen = "0.2.10" @@ -61,3 +67,6 @@ default = ["embed-fonts"] # - For math: New Computer Modern Math # - For code: Deja Vu Sans Mono embed-fonts = [] + +# Permits the CLI to update itself without a package manager +self-update = ["dep:self-replace", "dep:xz2", "dep:zip", "ureq/json"] |
