tinymist/crates/tinymist-std/Cargo.toml
Myriad-Dreamin 9d5beb196b
feat: minimal viable support for syntax-only mode (#2247)
Configure whether to enable syntax-only mode for the language server. In
syntax-only mode, the language server will only provide syntax checking
and basic code completion, but will not perform full document
compilation or code analysis. This can be useful for improving
performance on low-end devices, devices under power-saving mode, or when
working with large documents.

Default behavior: Always disable syntax-only mode. The strategy may be
changed in the future, for example, automatically enable syntax-only
mode when the system is in power-saving mode.

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-11-16 08:30:20 +08:00

86 lines
2.2 KiB
TOML

[package]
name = "tinymist-std"
description = "Additional functions wrapping Rust's standard library."
# group: world
version = "0.14.0"
authors.workspace = true
license.workspace = true
edition.workspace = true
homepage.workspace = true
repository.workspace = true
[dependencies]
anyhow.workspace = true
base64.workspace = true
bitvec.workspace = true
comemo.workspace = true
dashmap.workspace = true
ecow = { workspace = true, features = ["serde"] }
fxhash.workspace = true
log.workspace = true
path-clean.workspace = true
pathdiff.workspace = true
parking_lot.workspace = true
rustc-hash.workspace = true
serde = { workspace = true, features = ["derive"] }
serde_repr.workspace = true
serde_json.workspace = true
serde_with.workspace = true
siphasher.workspace = true
web-time = { workspace = true, optional = true }
time = { workspace = true, features = ["formatting"] }
lsp-types.workspace = true
tempfile = { workspace = true, optional = true }
same-file = { workspace = true, optional = true }
battery = { workspace = true, optional = true }
# feature = "web"
js-sys = { workspace = true, optional = true }
wasm-bindgen = { workspace = true, optional = true }
# feature = "rkyv"
rkyv = { workspace = true, optional = true }
# feature = "typst"
typst = { workspace = true, optional = true }
typst-html = { workspace = true, optional = true }
typst-shim = { workspace = true, optional = true }
[target.'cfg(target_os = "macos")'.dependencies]
core-foundation.workspace = true
[target.'cfg(unix)'.dependencies]
libc.workspace = true
[target.'cfg(windows)'.dependencies]
windows-sys = { workspace = true, features = [
"Win32_Foundation",
"Win32_Security",
"Win32_Storage_FileSystem",
"Win32_System_IO",
"Win32_System_Console",
"Win32_System_JobObjects",
"Win32_System_Threading",
] }
[dev-dependencies]
hex.workspace = true
[features]
default = ["full"]
full = ["web", "rkyv", "typst"]
typst = ["dep:typst", "dep:typst-shim", "dep:typst-html"]
rkyv = ["rkyv/alloc", "rkyv/archive_le"]
rkyv-validation = ["rkyv/validation"]
__web = ["wasm-bindgen", "js-sys", "web-time"]
web = ["__web"]
system = ["tempfile", "same-file", "battery"]
bi-hash = []
[lints]
workspace = true