summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml105
-rw-r--r--crates/typst-cli/Cargo.toml79
-rw-r--r--crates/typst-docs/Cargo.toml30
-rw-r--r--crates/typst-ide/Cargo.toml18
-rw-r--r--crates/typst-library/Cargo.toml72
-rw-r--r--crates/typst-macros/Cargo.toml10
-rw-r--r--crates/typst-syntax/Cargo.toml22
-rw-r--r--crates/typst/Cargo.toml88
-rw-r--r--tests/Cargo.toml26
9 files changed, 278 insertions, 172 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 8e1cf57c..1d2adc69 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,6 +12,111 @@ homepage = "https://typst.app"
repository = "https://github.com/typst/typst"
readme = "README.md"
license = "Apache-2.0"
+categories = ["compilers"]
+keywords = ["typst"]
+
+[workspace.dependencies]
+typst = { path = "crates/typst" }
+typst-library = { path = "crates/typst-library" }
+typst-macros = { path = "crates/typst-macros" }
+typst-syntax = { path = "crates/typst-syntax" }
+az = "1.2"
+base64 = "0.21.2"
+bitflags = { version = "2", features = ["serde"] }
+bytemuck = "1"
+chinese-number = { version = "0.7.2", default-features = false, features = ["number-to-chinese"] }
+chrono = { version = "0.4.24", default-features = false, features = ["clock", "std"] }
+ciborium = "0.2.1"
+clap = { version = "4.4", features = ["derive", "env"] }
+clap_complete = "4.2.1"
+clap_mangen = "0.2.10"
+codespan-reporting = "0.11"
+comemo = "0.3"
+csv = "1"
+dirs = "5"
+ecow = { version = "0.2", features = ["serde"] }
+env_proxy = "0.4"
+filetime = "0.2"
+flate2 = "1"
+fontdb = { version = "0.15", default-features = false }
+hayagriva = "0.4"
+heck = "0.4"
+hypher = "0.1.4"
+iai = { git = "https://github.com/typst/iai" }
+icu_properties = { version = "1.3", features = ["serde"] }
+icu_provider = { version = "1.3", features = ["sync"] }
+icu_provider_adapters = "1.3"
+icu_provider_blob = "1.3"
+icu_segmenter = { version = "1.3", features = ["serde"] }
+if_chain = "1"
+image = { version = "0.24", default-features = false, features = ["png", "jpeg", "gif"] }
+include_dir = "0.7"
+indexmap = { version = "2", features = ["serde"] }
+inferno = "0.11.15"
+kurbo = "0.9"
+lasso = { version = "0.7.2", features = ["ahasher", "multi-threaded"] }
+lipsum = "0.9"
+log = "0.4"
+miniz_oxide = "0.7"
+notify = "6"
+once_cell = "1"
+open = "5"
+oxipng = { git = "https://github.com/typst/oxipng", rev = "b8ec65b", default-features = false, features = ["filetime", "parallel", "zopfli"] }
+palette = { version = "0.7.3", default-features = false, features = ["approx", "libm"] }
+pathdiff = "0.2"
+pdf-writer = "0.9.2"
+pixglyph = "0.2"
+proc-macro2 = "1"
+pulldown-cmark = "0.9"
+quote = "1"
+rayon = "1.7.0"
+regex = "1"
+resvg = { version = "0.36.0", default-features = false, features = ["raster-images"] }
+roxmltree = "0.18"
+rustls = "0.21"
+rustls-pemfile = "1"
+rustybuzz = "0.10"
+same-file = "1"
+self-replace = { git = "https://github.com/typst/self-replace" } # https://github.com/mitsuhiko/self-replace/pull/16
+semver = "1"
+serde = { version = "1.0.184", features = ["derive"] }
+serde_json = "1"
+serde_yaml = "0.9"
+siphasher = "0.3"
+smallvec = { version = "1.11.1", features = ["union", "const_generics", "const_new"] }
+subsetter = "0.1.1"
+svg2pdf = "0.9"
+syn = { version = "2", features = ["full", "extra-traits"] }
+syntect = { version = "5", default-features = false, features = ["parsing", "regex-fancy", "plist-load", "yaml-load"] }
+tar = "0.4"
+tempfile = "3.7.0"
+time = { version = "0.3.20", features = ["formatting", "macros", "parsing"] }
+tiny-skia = "0.11"
+toml = { version = "0.8", default-features = false, features = ["parse"] }
+tracing = "0.1.37"
+tracing-error = "0.2"
+tracing-flame = "0.2.0"
+tracing-subscriber = "0.3.17"
+ttf-parser = "0.19.2"
+typed-arena = "2"
+unicode_names2 = "0.6.0"
+unicode-bidi = "0.3.13"
+unicode-ident = "1.0"
+unicode-math-class = "0.1"
+unicode-properties = "0.1"
+unicode-script = "0.5"
+unicode-segmentation = "1"
+unscanny = "0.1"
+ureq = "2"
+usvg = { version = "0.36", default-features = false, features = ["text"] }
+walkdir = "2"
+wasmi = "0.31.0"
+xmlparser = "0.13.5"
+xmlwriter = "0.1.0"
+xmp-writer = "0.2"
+xz2 = "0.1"
+yaml-front-matter = "0.1"
+zip = "0.6"
[profile.dev.package."*"]
opt-level = 2
diff --git a/crates/typst-cli/Cargo.toml b/crates/typst-cli/Cargo.toml
index 250fa8e7..6155c046 100644
--- a/crates/typst-cli/Cargo.toml
+++ b/crates/typst-cli/Cargo.toml
@@ -20,48 +20,47 @@ bench = false
doc = false
[dependencies]
-typst = { path = "../typst" }
-typst-library = { path = "../typst-library" }
-chrono = { version = "0.4.24", default-features = false, features = ["clock", "std"] }
-clap = { version = "4.4", features = ["derive", "env"] }
-codespan-reporting = "0.11"
-comemo = "0.3"
-ecow = "0.2"
-dirs = "5"
-flate2 = "1"
-filetime = "0.2"
-fontdb = "0.15.0"
-inferno = "0.11.15"
-notify = "6"
-once_cell = "1"
-open = "5"
-pathdiff = "0.2"
-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.7.0"
-tracing = "0.1.37"
-tracing-error = "0.2"
-tracing-flame = "0.2.0"
-tracing-subscriber = "0.3.17"
-ureq = "2"
-rustls = "0.21"
-rustls-pemfile = "1"
-env_proxy = "0.4"
-xz2 = { version = "0.1", optional = true }
-zip = { version = "0.6", optional = true }
+typst = { workspace = true }
+typst-library = { workspace = true }
+chrono = { workspace = true }
+clap = { workspace = true }
+codespan-reporting = { workspace = true }
+comemo = { workspace = true }
+dirs = { workspace = true }
+ecow = { workspace = true }
+env_proxy = { workspace = true }
+filetime = { workspace = true }
+flate2 = { workspace = true }
+fontdb = { workspace = true, features = ["memmap", "fontconfig"] }
+inferno = { workspace = true }
+notify = { workspace = true }
+once_cell = { workspace = true }
+open = { workspace = true }
+pathdiff = { workspace = true }
+rustls = { workspace = true }
+rustls-pemfile = { workspace = true }
+same-file = { workspace = true }
+self-replace = { workspace = true, optional = true }
+semver = { workspace = true }
+serde = { workspace = true }
+serde_json = { workspace = true }
+serde_yaml = { workspace = true }
+siphasher = { workspace = true }
+tar = { workspace = true }
+tempfile = { workspace = true }
+tracing = { workspace = true }
+tracing-error = { workspace = true }
+tracing-flame = { workspace = true }
+tracing-subscriber = { workspace = true }
+ureq = { workspace = true }
+xz2 = { workspace = true, optional = true }
+zip = { workspace = true, optional = true }
[build-dependencies]
-clap = { version = "4.4", features = ["derive", "string"] }
-clap_complete = "4.2.1"
-clap_mangen = "0.2.10"
-semver = "1"
+clap = { workspace = true, features = ["string"] }
+clap_complete = { workspace = true }
+clap_mangen = { workspace = true }
+semver = { workspace = true }
[features]
default = ["embed-fonts"]
diff --git a/crates/typst-docs/Cargo.toml b/crates/typst-docs/Cargo.toml
index 02d238ed..b2e82e43 100644
--- a/crates/typst-docs/Cargo.toml
+++ b/crates/typst-docs/Cargo.toml
@@ -11,18 +11,18 @@ doctest = false
bench = false
[dependencies]
-typst = { path = "../typst" }
-typst-library = { path = "../typst-library" }
-comemo = "0.3"
-ecow = { version = "0.2", features = ["serde"] }
-heck = "0.4"
-include_dir = "0.7"
-once_cell = "1"
-pulldown-cmark = "0.9"
-serde = { version = "1.0.184", features = ["derive"] }
-serde_yaml = "0.9"
-syntect = { version = "5", default-features = false, features = ["parsing", "html", "regex-fancy"] }
-typed-arena = "2"
-unicode_names2 = "0.6.0"
-unscanny = "0.1"
-yaml-front-matter = "0.1"
+typst = { workspace = true }
+typst-library = { workspace = true }
+comemo = { workspace = true }
+ecow = { workspace = true }
+heck = { workspace = true }
+include_dir = { workspace = true }
+once_cell = { workspace = true }
+pulldown-cmark = { workspace = true }
+serde = { workspace = true }
+serde_yaml = { workspace = true }
+syntect = { workspace = true, features = ["html"] }
+typed-arena = { workspace = true }
+unicode_names2 = { workspace = true }
+unscanny = { workspace = true }
+yaml-front-matter = { workspace = true }
diff --git a/crates/typst-ide/Cargo.toml b/crates/typst-ide/Cargo.toml
index 410b6f67..f7b07296 100644
--- a/crates/typst-ide/Cargo.toml
+++ b/crates/typst-ide/Cargo.toml
@@ -1,8 +1,6 @@
[package]
name = "typst-ide"
description = "IDE functionality for Typst."
-categories = ["compilers", "science"]
-keywords = ["typst"]
version.workspace = true
rust-version.workspace = true
authors.workspace = true
@@ -10,6 +8,8 @@ edition.workspace = true
homepage.workspace = true
repository.workspace = true
license.workspace = true
+categories.workspace = true
+keywords.workspace = true
[lib]
test = false
@@ -17,10 +17,10 @@ doctest = false
bench = false
[dependencies]
-typst = { path = "../typst" }
-comemo = "0.3"
-ecow = { version = "0.2", features = ["serde"] }
-if_chain = "1"
-log = "0.4"
-serde = { version = "1.0.184", features = ["derive"] }
-unscanny = "0.1"
+typst = { workspace = true }
+comemo = { workspace = true }
+ecow = { workspace = true }
+if_chain = { workspace = true }
+log = { workspace = true }
+serde = { workspace = true }
+unscanny = { workspace = true }
diff --git a/crates/typst-library/Cargo.toml b/crates/typst-library/Cargo.toml
index f4fce351..426c56f3 100644
--- a/crates/typst-library/Cargo.toml
+++ b/crates/typst-library/Cargo.toml
@@ -1,8 +1,6 @@
[package]
name = "typst-library"
description = "The standard library for Typst."
-categories = ["compilers", "science"]
-keywords = ["typst"]
version.workspace = true
rust-version.workspace = true
authors.workspace = true
@@ -10,6 +8,8 @@ edition.workspace = true
homepage.workspace = true
repository.workspace = true
license.workspace = true
+categories.workspace = true
+keywords.workspace = true
[lib]
test = false
@@ -17,37 +17,37 @@ doctest = false
bench = false
[dependencies]
-typst = { path = "../typst" }
-az = "1.2"
-chinese-number = { version = "0.7.2", default-features = false, features = ["number-to-chinese"] }
-comemo = "0.3"
-csv = "1"
-ecow = { version = "0.2", features = ["serde"] }
-hayagriva = "0.4"
-hypher = "0.1.4"
-icu_properties = { version = "1.3", features = ["serde"] }
-icu_provider = { version = "1.3", features = ["sync"] }
-icu_provider_adapters = "1.3"
-icu_provider_blob = "1.3"
-icu_segmenter = { version = "1.3", features = ["serde"] }
-indexmap = "2"
-kurbo = "0.9"
-lipsum = "0.9"
-log = "0.4"
-once_cell = "1"
-ciborium = "0.2.1"
-roxmltree = "0.18"
-rustybuzz = "0.10"
-serde_json = "1"
-serde_yaml = "0.9"
-smallvec = { version = "1.11.1", features = ["union", "const_generics", "const_new"] }
-syntect = { version = "5", default-features = false, features = ["parsing", "regex-fancy", "plist-load", "yaml-load"] }
-time = { version = "0.3.20", features = ["formatting"] }
-toml = { version = "0.8" }
-tracing = "0.1.37"
-ttf-parser = "0.19.2"
-typed-arena = "2"
-unicode-bidi = "0.3.13"
-unicode-math-class = "0.1"
-unicode-script = "0.5"
-unicode-segmentation = "1"
+typst = { workspace = true }
+az = { workspace = true }
+chinese-number = { workspace = true }
+ciborium = { workspace = true }
+comemo = { workspace = true }
+csv = { workspace = true }
+ecow = { workspace = true }
+hayagriva = { workspace = true }
+hypher = { workspace = true }
+icu_properties = { workspace = true }
+icu_provider = { workspace = true }
+icu_provider_adapters = { workspace = true }
+icu_provider_blob = { workspace = true }
+icu_segmenter = { workspace = true }
+indexmap = { workspace = true }
+kurbo = { workspace = true }
+lipsum = { workspace = true }
+log = { workspace = true }
+once_cell = { workspace = true }
+roxmltree = { workspace = true }
+rustybuzz = { workspace = true }
+serde_json = { workspace = true }
+serde_yaml = { workspace = true }
+smallvec = { workspace = true }
+syntect = { workspace = true }
+time = { workspace = true }
+toml = { workspace = true, features = ["display"] }
+tracing = { workspace = true }
+ttf-parser = { workspace = true }
+typed-arena = { workspace = true }
+unicode-bidi = { workspace = true }
+unicode-math-class = { workspace = true }
+unicode-script = { workspace = true }
+unicode-segmentation = { workspace = true }
diff --git a/crates/typst-macros/Cargo.toml b/crates/typst-macros/Cargo.toml
index 15f2b2bd..2bb3ba1c 100644
--- a/crates/typst-macros/Cargo.toml
+++ b/crates/typst-macros/Cargo.toml
@@ -8,6 +8,8 @@ edition.workspace = true
homepage.workspace = true
repository.workspace = true
license.workspace = true
+categories.workspace = true
+keywords.workspace = true
[lib]
proc-macro = true
@@ -16,7 +18,7 @@ doctest = false
bench = false
[dependencies]
-heck = "0.4"
-proc-macro2 = "1"
-quote = "1"
-syn = { version = "2", features = ["full", "extra-traits"] }
+heck = { workspace = true }
+proc-macro2 = { workspace = true }
+quote = { workspace = true }
+syn = { workspace = true }
diff --git a/crates/typst-syntax/Cargo.toml b/crates/typst-syntax/Cargo.toml
index ae13bcd5..1254e663 100644
--- a/crates/typst-syntax/Cargo.toml
+++ b/crates/typst-syntax/Cargo.toml
@@ -1,8 +1,6 @@
[package]
name = "typst-syntax"
description = "Parser and syntax tree for Typst."
-categories = ["compilers", "science"]
-keywords = ["typst"]
version.workspace = true
rust-version.workspace = true
authors.workspace = true
@@ -10,18 +8,20 @@ edition.workspace = true
homepage.workspace = true
repository.workspace = true
license.workspace = true
+categories.workspace = true
+keywords.workspace = true
[lib]
doctest = false
bench = false
[dependencies]
-comemo = "0.3"
-ecow = { version = "0.2", features = ["serde"] }
-once_cell = "1"
-serde = { version = "1.0.184", features = ["derive"] }
-tracing = "0.1.37"
-unicode-ident = "1.0"
-unicode-math-class = "0.1"
-unicode-segmentation = "1"
-unscanny = "0.1"
+comemo = { workspace = true }
+ecow = { workspace = true }
+once_cell = { workspace = true }
+serde = { workspace = true }
+tracing = { workspace = true }
+unicode-ident = { workspace = true }
+unicode-math-class = { workspace = true }
+unicode-segmentation = { workspace = true }
+unscanny = { workspace = true }
diff --git a/crates/typst/Cargo.toml b/crates/typst/Cargo.toml
index 1e05a2d7..1e820a68 100644
--- a/crates/typst/Cargo.toml
+++ b/crates/typst/Cargo.toml
@@ -2,7 +2,7 @@
name = "typst"
description = "A new markup-based typesetting system that is powerful and easy to learn."
categories = ["compilers", "science"]
-keywords = ["markup", "typesetting"]
+keywords = ["markup", "typesetting", "typst"]
version.workspace = true
rust-version.workspace = true
authors.workspace = true
@@ -16,49 +16,49 @@ doctest = false
bench = false
[dependencies]
-typst-macros = { path = "../typst-macros" }
-typst-syntax = { path = "../typst-syntax" }
-base64 = "0.21.2"
-bitflags = { version = "2", features = ["serde"] }
-bytemuck = "1"
-comemo = "0.3"
-ecow = { version = "0.2", features = ["serde"] }
-flate2 = "1"
-fontdb = { version = "0.15", default-features = false }
-image = { version = "0.24", default-features = false, features = ["png", "jpeg", "gif"] }
-indexmap = { version = "2", features = ["serde"] }
-kurbo = "0.9"
-lasso = { version = "0.7.2", features = ["ahasher", "multi-threaded"] }
-log = "0.4"
-miniz_oxide = "0.7"
-once_cell = "1"
-pdf-writer = "0.9.2"
-pixglyph = "0.2"
-palette = { version = "0.7.3", default-features = false, features = ["approx", "libm"] }
-regex = "1"
-resvg = { version = "0.36.0", default-features = false, features = ["raster-images"] }
-roxmltree = "0.18"
-rustybuzz = "0.10"
-serde = { version = "1.0.184", features = ["derive"] }
-siphasher = "0.3"
-subsetter = "0.1.1"
-svg2pdf = "0.9"
-tiny-skia = "0.11"
-toml = { version = "0.8", default-features = false, features = ["parse"] }
-tracing = "0.1.37"
-ttf-parser = "0.19.2"
-unicode-properties = "0.1"
-unicode-ident = "1.0"
-unicode-math-class = "0.1"
-unicode-segmentation = "1"
-unscanny = "0.1"
-usvg = { version = "0.36", default-features = false, features = ["text"] }
-xmlwriter = "0.1.0"
-xmp-writer = "0.2"
-time = { version = "0.3.20", features = ["std", "formatting", "macros", "parsing"] }
-wasmi = "0.31.0"
-xmlparser = "0.13.5"
-smallvec = { version = "1.11.1", features = ["union", "const_generics", "const_new"] }
+typst-macros = { workspace = true }
+typst-syntax = { workspace = true }
+base64 = { workspace = true }
+bitflags = { workspace = true }
+bytemuck = { workspace = true }
+comemo = { workspace = true }
+ecow = { workspace = true}
+flate2 = { workspace = true }
+fontdb = { workspace = true }
+image = { workspace = true }
+indexmap = { workspace = true }
+kurbo = { workspace = true }
+lasso = { workspace = true }
+log = { workspace = true }
+miniz_oxide = { workspace = true }
+once_cell = { workspace = true }
+palette = { workspace = true }
+pdf-writer = { workspace = true }
+pixglyph = { workspace = true }
+regex = { workspace = true }
+resvg = { workspace = true }
+roxmltree = { workspace = true }
+rustybuzz = { workspace = true }
+serde = { workspace = true }
+siphasher = { workspace = true }
+smallvec = { workspace = true }
+subsetter = { workspace = true }
+svg2pdf = { workspace = true }
+time = { workspace = true }
+tiny-skia = { workspace = true }
+toml = { workspace = true }
+tracing = { workspace = true }
+ttf-parser = { workspace = true }
+unicode-ident = { workspace = true }
+unicode-math-class = { workspace = true }
+unicode-properties = { workspace = true }
+unicode-segmentation = { workspace = true }
+unscanny = { workspace = true }
+usvg = { workspace = true }
+wasmi = { workspace = true }
+xmlparser = { workspace = true }
+xmlwriter = { workspace = true }
+xmp-writer = { workspace = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
stacker = "0.1.15"
diff --git a/tests/Cargo.toml b/tests/Cargo.toml
index ba0a054c..a5a18a5b 100644
--- a/tests/Cargo.toml
+++ b/tests/Cargo.toml
@@ -7,19 +7,19 @@ edition.workspace = true
publish = false
[dev-dependencies]
-typst = { path = "../crates/typst" }
-typst-library = { path = "../crates/typst-library" }
-clap = { version = "4.4", features = ["derive"] }
-comemo = "0.3"
-ecow = { version = "0.2", features = ["serde"] }
-iai = { git = "https://github.com/typst/iai" }
-once_cell = "1"
-oxipng = { git = "https://github.com/typst/oxipng", rev = "b8ec65b", default-features = false, features = ["filetime", "parallel", "zopfli"] }
-rayon = "1.7.0"
-tiny-skia = "0.11"
-ttf-parser = "0.19.2"
-unscanny = "0.1"
-walkdir = "2"
+typst = { workspace = true }
+typst-library = { workspace = true }
+clap = { workspace = true }
+comemo = { workspace = true }
+ecow = { workspace = true }
+iai = { workspace = true }
+once_cell = { workspace = true }
+oxipng = { workspace = true }
+rayon = { workspace = true }
+tiny-skia = { workspace = true }
+ttf-parser = { workspace = true }
+unscanny = { workspace = true }
+walkdir = { workspace = true }
[[test]]
name = "tests"