# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.91"
name = "sync-ls"
version = "0.14.19-rc9"
authors = [
    "Myriad-Dreamin <camiyoru@gmail.com>",
    "Nathan Varner",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Synchronized language service inspired by async-lsp, primarily for tinymist."
homepage = "https://github.com/Myriad-Dreamin/tinymist"
readme = "README.md"
keywords = [
    "lsp",
    "dap",
    "language",
    "language-server",
]
categories = [
    "compilers",
    "development-tools",
]
license = "Apache-2.0"
repository = "https://github.com/Myriad-Dreamin/tinymist"
resolver = "2"

[package.metadata.docs.rs]
features = [
    "dap",
    "lsp",
    "system",
    "server",
]

[features]
dap = ["dapts"]
lsp = ["lsp-types"]
server = ["tokio"]
system = [
    "tokio",
    "tokio/time",
    "tokio-util",
    "clap",
    "tinymist-std/system",
]
web = [
    "js-sys",
    "wasm-bindgen",
    "serde-wasm-bindgen",
    "tinymist-std/web",
]

[lib]
name = "sync_ls"
path = "src/lib.rs"

[dependencies.anyhow]
version = "1"

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "env",
    "unicode",
]
optional = true

[dependencies.crossbeam-channel]
version = "0.5.15"

[dependencies.dapts]
version = "0.0.6"
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.js-sys]
version = "^0.3"
optional = true

[dependencies.log]
version = "0.4"

[dependencies.lsp-types]
version = "=0.95.0"
features = ["proposed"]
optional = true

[dependencies.parking_lot]
version = "0.12.1"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde-wasm-bindgen]
version = "^0.6"
optional = true

[dependencies.serde_json]
version = "1"

[dependencies.tinymist-std]
version = "0.14.6"
default-features = false

[dependencies.tokio]
version = "1.49.0"
features = [
    "macros",
    "rt",
]
optional = true

[dependencies.tokio-util]
version = "0.7.16"
features = ["compat"]
optional = true

[dependencies.wasm-bindgen]
version = "^0.2"
optional = true

[lints.clippy]
missing_safety_doc = "warn"
undocumented_unsafe_blocks = "warn"
uninlined_format_args = "warn"

[lints.rust]
missing_docs = "warn"

[lints.rust.unexpected_cfgs]
level = "allow"
priority = 0
check-cfg = [
    "cfg(wasm_bindgen_unstable_test_coverage)",
    "cfg(noop)",
    "cfg(used_linker)",
]

[lints.rustdoc]
broken_intra_doc_links = "warn"
