# 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_code_analysis"
version = "0.23.2"
authors = ["CppCXY"]
build = false
include = [
    "Cargo.toml",
    "src/**",
    "resources/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A library for analyzing lua code."
readme = "README.md"
keywords = [
    "emmylua",
    "doc",
    "lua",
    "code_analysis",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/CppCXY/emmylua-analyzer-rust"
resolver = "2"

[package.metadata.i18n]
available-locales = [
    "en",
    "zh_CN",
    "zh_HK",
]
default-locale = "en"

[features]
default = []
reqwest = ["dep:reqwest"]

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

[dependencies.dirs]
version = "6"

[dependencies.emmylua_diagnostic_macro]
version = "0.5.0"

[dependencies.emmylua_parser]
version = "0.26.0"

[dependencies.encoding_rs]
version = "0.8"

[dependencies.flagset]
version = "0.4.7"

[dependencies.hashbrown]
version = "0.17.0"

[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_types]
version = "0.1.0"
package = "emmy_lsp_types"

[dependencies.luars]
version = "0.25.0"
features = [
    "serde",
    "sandbox",
]

[dependencies.percent-encoding]
version = "2.3"

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.13.1"
features = [
    "http2",
    "charset",
    "system-proxy",
    "native-tls-vendored",
]
optional = true
default-features = false

[dependencies.rowan]
version = "0.16.1"

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

[dependencies.schema_to_emmylua]
version = "0.1.0"

[dependencies.schemars]
version = "1.0.4"

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.serde_with]
version = "3.12.0"

[dependencies.smol_str]
version = "0.3.6"

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

[dependencies.url]
version = "2.5.7"

[dependencies.walkdir]
version = "2.5.0"

[dependencies.wax]
version = "0.6.0"

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

[dev-dependencies.ntest]
version = "0.9.5"

[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"
