# 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"
name = "just-lsp"
version = "0.4.5"
authors = ["Liam <liam@scalzulli.com>"]
build = "build.rs"
exclude = [
    "/screenshot.png",
    "/www",
]
include = [
    "/LICENSE",
    "/README.md",
    "/build.rs",
    "/src/",
    "/queries/**",
    "/vendor/*-src/**.c",
    "/vendor/*-src/**/**.h",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A language server for just"
homepage = "https://github.com/terror/just-lsp"
readme = "README.md"
keywords = [
    "productivity",
    "compilers",
    "language-servers",
    "just",
    "tree-sitter",
]
categories = ["development-tools"]
license = "CC0-1.0"
repository = "https://github.com/terror/just-lsp"
resolver = "2"

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

[[bin]]
name = "just-lsp"
path = "src/main.rs"

[dependencies.anyhow]
version = "1.0.102"

[dependencies.ariadne]
version = "0.6.0"

[dependencies.clap]
version = "4.6.1"
features = ["derive"]

[dependencies.dirs]
version = "6.0.0"

[dependencies.env_logger]
version = "0.11.10"

[dependencies.indoc]
version = "2.0.7"

[dependencies.inventory]
version = "0.3"

[dependencies.log]
version = "0.4.29"

[dependencies.ropey]
version = "1.6.1"

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.target]
version = "2.1.0"

[dependencies.tempfile]
version = "3.27.0"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.52.3"
features = [
    "io-std",
    "io-util",
    "macros",
    "process",
    "rt-multi-thread",
]

[dependencies.tokio-stream]
version = "0.1.18"
features = ["io-util"]

[dependencies.tower-lsp]
version = "0.20.0"

[dependencies.tree-sitter]
version = "0.26.9"

[dependencies.tree-sitter-highlight]
version = "0.26.8"

[dependencies.yansi]
version = "1.0.1"

[dev-dependencies.executable-path]
version = "1.0.1"

[dev-dependencies.pretty_assertions]
version = "1.4.1"

[dev-dependencies.serde_json]
version = "1.0.149"

[dev-dependencies.tower-test]
version = "0.4.0"

[build-dependencies.cc]
version = "1.2.62"

[lints.clippy]
arbitrary-source-item-ordering = "deny"
too_many_lines = "allow"
wildcard_imports = "allow"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
unreachable_pub = "deny"

[profile.release]
lto = true
codegen-units = 1
