# 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 = "emmylua_ls"
version = "0.23.0"
authors = ["CppCXY"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A language server for emmylua."
readme = "README.md"
keywords = [
    "emmylua",
    "doc",
    "lua",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/CppCXY/emmylua-analyzer-rust"
resolver = "2"

[features]
cli = [
    "dep:clap",
    "dep:mimalloc",
    "emmylua_code_analysis/reqwest",
]
default = ["cli"]
full-test = []

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

[[bin]]
name = "emmylua_ls"
path = "src/bin/emmylua_ls.rs"
required-features = ["cli"]

[dependencies.chrono]
version = "0.4.44"

[dependencies.clap]
version = "4.6.1"
features = [
    "derive",
    "wrap_help",
]
optional = true

[dependencies.dirs]
version = "6"

[dependencies.emmylua_code_analysis]
version = "0.23.0"

[dependencies.emmylua_formatter]
version = "0.23.0"

[dependencies.emmylua_parser]
version = "0.26.0"

[dependencies.emmylua_parser_desc]
version = "0.26.0"

[dependencies.fern]
version = "0.7.1"

[dependencies.glob]
version = "0.3"

[dependencies.include_dir]
version = "0.7.4"

[dependencies.internment]
version = "0.8.6"
features = ["arc"]

[dependencies.itertools]
version = "0.14.0"

[dependencies.log]
version = "0.4.29"

[dependencies.lsp-server]
version = "0.7.9"

[dependencies.lsp_types]
version = "0.1.0"
package = "emmy_lsp_types"

[dependencies.mimalloc]
version = "0.1.50"
optional = true

[dependencies.notify]
version = "8.2.0"
features = ["serde"]

[dependencies.rowan]
version = "0.16.1"

[dependencies.rust-i18n]
version = "3"

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.serde_yml]
version = "0.0.12"

[dependencies.tokio]
version = "1.52"
features = ["full"]

[dependencies.tokio-util]
version = "0.7.16"

[dependencies.walkdir]
version = "2.5.0"

[dependencies.wax]
version = "0.6.0"

[dev-dependencies.googletest]
version = "0.14.2"

[lints.clippy]
approx_constant = "allow"
bool_assert_comparison = "allow"
box_collection = "allow"
clone_on_copy = "allow"
cognitive_complexity = "allow"
collapsible_if = "allow"
collapsible_match = "allow"
enum_variant_names = "allow"
let_and_return = "allow"
let_unit_value = "allow"
manual_let_else = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_inception = "allow"
needless_borrow = "allow"
new_without_default = "allow"
single_component_path_imports = "allow"
too_many_arguments = "allow"
type_complexity = "allow"
undocumented_unsafe_blocks = "allow"
wrong_self_convention = "allow"

[lints.rust]
unused_qualifications = "deny"
