mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-04 02:08:17 +00:00
dev: edit deps and features (#1168)
This commit is contained in:
parent
2168b22b16
commit
92f1d7fa18
5 changed files with 97 additions and 86 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -749,7 +749,6 @@ dependencies = [
|
|||
"criterion",
|
||||
"ecow",
|
||||
"insta",
|
||||
"regex",
|
||||
"tinymist-world",
|
||||
"typst",
|
||||
"typst-syntax",
|
||||
|
@ -3998,7 +3997,6 @@ dependencies = [
|
|||
"typlite",
|
||||
"typst",
|
||||
"typst-ansi-hl",
|
||||
"typst-assets",
|
||||
"typst-pdf",
|
||||
"typst-preview",
|
||||
"typst-render",
|
||||
|
|
|
@ -21,25 +21,36 @@ bench = false
|
|||
doc = false
|
||||
|
||||
[dependencies]
|
||||
|
||||
anyhow.workspace = true
|
||||
base64.workspace = true
|
||||
clap = { workspace = true, optional = true }
|
||||
comemo.workspace = true
|
||||
ecow.workspace = true
|
||||
anyhow.workspace = true
|
||||
|
||||
typst.workspace = true
|
||||
typst-syntax.workspace = true
|
||||
tinymist-world.workspace = true
|
||||
criterion = "0.5.1"
|
||||
# criterion = { path = "../../target/criterion.rs" }
|
||||
comemo.workspace = true
|
||||
ecow.workspace = true
|
||||
tinymist-world.workspace = true
|
||||
typst.workspace = true
|
||||
typst-syntax.workspace = true
|
||||
|
||||
[dev-dependencies]
|
||||
insta.workspace = true
|
||||
regex.workspace = true
|
||||
|
||||
[features]
|
||||
default = ["cli"]
|
||||
default = ["cli", "embed-fonts", "no-content-hint"]
|
||||
cli = ["clap"]
|
||||
|
||||
# Embeds Typst's default fonts for
|
||||
# - text (Linux Libertine),
|
||||
# - math (New Computer Modern Math), and
|
||||
# - code (Deja Vu Sans Mono)
|
||||
# and additionally New Computer Modern for text
|
||||
# into the binary.
|
||||
embed-fonts = ["tinymist-world/fonts"]
|
||||
|
||||
# Disable the default content hint.
|
||||
# This requires modifying typst.
|
||||
no-content-hint = ["tinymist-world/no-content-hint"]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
|
|
@ -12,34 +12,31 @@ repository.workspace = true
|
|||
rust-version.workspace = true
|
||||
|
||||
[dependencies]
|
||||
|
||||
anyhow.workspace = true
|
||||
chrono.workspace = true
|
||||
clap.workspace = true
|
||||
comemo.workspace = true
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
anyhow.workspace = true
|
||||
dirs.workspace = true
|
||||
flate2 = "1"
|
||||
log.workspace = true
|
||||
|
||||
parking_lot.workspace = true
|
||||
reflexo-typst.workspace = true
|
||||
reflexo-typst-shim = { workspace = true, features = ["nightly"] }
|
||||
typst.workspace = true
|
||||
|
||||
tinymist-assets = { workspace = true }
|
||||
typst-assets = { workspace = true, features = ["fonts"] }
|
||||
|
||||
dirs.workspace = true
|
||||
parking_lot.workspace = true
|
||||
flate2 = "1"
|
||||
tar = "0.4"
|
||||
|
||||
reqwest = { version = "^0.12", default-features = false, features = [
|
||||
"rustls-tls",
|
||||
"blocking",
|
||||
"multipart",
|
||||
] }
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
tar = "0.4"
|
||||
tinymist-assets = { workspace = true }
|
||||
typst.workspace = true
|
||||
typst-assets = { workspace = true }
|
||||
|
||||
|
||||
[features]
|
||||
fonts = ["typst-assets/fonts"]
|
||||
no-content-hint = ["reflexo-typst/no-content-hint"]
|
||||
|
||||
[lints]
|
||||
|
|
|
@ -12,68 +12,23 @@ repository.workspace = true
|
|||
rust-version.workspace = true
|
||||
|
||||
[dependencies]
|
||||
|
||||
tinymist-assets = { workspace = true }
|
||||
tinymist-query.workspace = true
|
||||
tinymist-fs.workspace = true
|
||||
tinymist-core = { workspace = true, default-features = false, features = [] }
|
||||
tinymist-world.workspace = true
|
||||
tinymist-render.workspace = true
|
||||
tinymist-project.workspace = true
|
||||
typlite.workspace = true
|
||||
sync-lsp.workspace = true
|
||||
chrono.workspace = true
|
||||
pathdiff.workspace = true
|
||||
|
||||
once_cell.workspace = true
|
||||
anyhow.workspace = true
|
||||
comemo.workspace = true
|
||||
tokio.workspace = true
|
||||
tokio-util.workspace = true
|
||||
futures.workspace = true
|
||||
itertools.workspace = true
|
||||
async-trait.workspace = true
|
||||
env_logger.workspace = true
|
||||
log.workspace = true
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
serde_yaml.workspace = true
|
||||
parking_lot.workspace = true
|
||||
paste.workspace = true
|
||||
strum.workspace = true
|
||||
ttf-parser.workspace = true
|
||||
|
||||
base64.workspace = true
|
||||
chrono.workspace = true
|
||||
clap.workspace = true
|
||||
clap_builder.workspace = true
|
||||
clap_complete.workspace = true
|
||||
clap_complete_fig.workspace = true
|
||||
clap_complete_nushell.workspace = true
|
||||
clap_mangen.workspace = true
|
||||
|
||||
typst.workspace = true
|
||||
typst-svg.workspace = true
|
||||
typst-pdf.workspace = true
|
||||
typst-render.workspace = true
|
||||
typst-timing.workspace = true
|
||||
typst-assets.workspace = true
|
||||
|
||||
typstyle-core.workspace = true
|
||||
typstfmt.workspace = true
|
||||
typst-ansi-hl.workspace = true
|
||||
|
||||
reflexo.workspace = true
|
||||
reflexo-typst.workspace = true
|
||||
reflexo-vec2svg.workspace = true
|
||||
typst-shim.workspace = true
|
||||
codespan-reporting.workspace = true
|
||||
toml.workspace = true
|
||||
walkdir.workspace = true
|
||||
typst-preview = { workspace = true, optional = true }
|
||||
lsp-server.workspace = true
|
||||
crossbeam-channel.workspace = true
|
||||
lsp-types.workspace = true
|
||||
codespan-reporting.workspace = true
|
||||
comemo.workspace = true
|
||||
dhat = { workspace = true, optional = true }
|
||||
unicode-script.workspace = true
|
||||
dirs.workspace = true
|
||||
env_logger.workspace = true
|
||||
futures.workspace = true
|
||||
hyper = { workspace = true, optional = true }
|
||||
hyper-util = { workspace = true, optional = true, features = [
|
||||
"server",
|
||||
|
@ -84,10 +39,48 @@ hyper-util = { workspace = true, optional = true, features = [
|
|||
] }
|
||||
http-body-util = { version = "0.1.2", optional = true }
|
||||
hyper-tungstenite = { workspace = true, optional = true }
|
||||
itertools.workspace = true
|
||||
lsp-server.workspace = true
|
||||
lsp-types.workspace = true
|
||||
log.workspace = true
|
||||
once_cell.workspace = true
|
||||
open = { workspace = true, optional = true }
|
||||
dirs.workspace = true
|
||||
base64.workspace = true
|
||||
pathdiff.workspace = true
|
||||
parking_lot.workspace = true
|
||||
paste.workspace = true
|
||||
rayon.workspace = true
|
||||
reflexo.workspace = true
|
||||
reflexo-typst.workspace = true
|
||||
reflexo-vec2svg.workspace = true
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
serde_yaml.workspace = true
|
||||
strum.workspace = true
|
||||
sync-lsp.workspace = true
|
||||
tinymist-assets = { workspace = true }
|
||||
tinymist-query.workspace = true
|
||||
tinymist-fs.workspace = true
|
||||
tinymist-core = { workspace = true, default-features = false, features = [] }
|
||||
tinymist-world.workspace = true
|
||||
tinymist-render.workspace = true
|
||||
tinymist-project.workspace = true
|
||||
tokio.workspace = true
|
||||
tokio-util.workspace = true
|
||||
toml.workspace = true
|
||||
ttf-parser.workspace = true
|
||||
typlite.workspace = true
|
||||
typst.workspace = true
|
||||
typst-svg.workspace = true
|
||||
typst-pdf.workspace = true
|
||||
typst-render.workspace = true
|
||||
typst-timing.workspace = true
|
||||
typst-shim.workspace = true
|
||||
typst-preview = { workspace = true, optional = true }
|
||||
typst-ansi-hl.workspace = true
|
||||
typstfmt.workspace = true
|
||||
typstyle-core.workspace = true
|
||||
unicode-script.workspace = true
|
||||
walkdir.workspace = true
|
||||
|
||||
[features]
|
||||
default = ["cli", "embed-fonts", "no-content-hint", "preview"]
|
||||
|
@ -102,11 +95,12 @@ dhat-heap = ["dhat"]
|
|||
# - code (Deja Vu Sans Mono)
|
||||
# and additionally New Computer Modern for text
|
||||
# into the binary.
|
||||
embed-fonts = ["typst-assets/fonts"]
|
||||
embed-fonts = ["tinymist-world/fonts"]
|
||||
|
||||
# Disable the default content hint.
|
||||
# This requires modifying typst.
|
||||
no-content-hint = [
|
||||
"tinymist-world/no-content-hint",
|
||||
"reflexo-typst/no-content-hint",
|
||||
"reflexo-vec2svg/no-content-hint",
|
||||
]
|
||||
|
@ -124,8 +118,8 @@ preview = [
|
|||
|
||||
[build-dependencies]
|
||||
anyhow.workspace = true
|
||||
vergen.workspace = true
|
||||
cargo_metadata = "0.18.0"
|
||||
vergen.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
|
|
@ -25,20 +25,31 @@ base64.workspace = true
|
|||
clap = { workspace = true, optional = true }
|
||||
comemo.workspace = true
|
||||
ecow.workspace = true
|
||||
|
||||
tinymist-analysis.workspace = true
|
||||
tinymist-world.workspace = true
|
||||
typst.workspace = true
|
||||
typst-svg.workspace = true
|
||||
typst-syntax.workspace = true
|
||||
|
||||
tinymist-analysis.workspace = true
|
||||
tinymist-world = { workspace = true, features = ["no-content-hint"] }
|
||||
|
||||
[dev-dependencies]
|
||||
insta.workspace = true
|
||||
regex.workspace = true
|
||||
|
||||
[features]
|
||||
default = ["cli", "embed-fonts", "no-content-hint"]
|
||||
cli = ["clap"]
|
||||
|
||||
# Embeds Typst's default fonts for
|
||||
# - text (Linux Libertine),
|
||||
# - math (New Computer Modern Math), and
|
||||
# - code (Deja Vu Sans Mono)
|
||||
# and additionally New Computer Modern for text
|
||||
# into the binary.
|
||||
embed-fonts = ["tinymist-world/fonts"]
|
||||
|
||||
# Disable the default content hint.
|
||||
# This requires modifying typst.
|
||||
no-content-hint = ["tinymist-world/no-content-hint"]
|
||||
|
||||
# [lints]
|
||||
# workspace = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue