# 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 = "brink-lsp"
version = "0.0.5"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Language server for inkle's ink narrative scripting language"
readme = "README.md"
keywords = [
    "ink",
    "narrative",
    "compiler",
    "interactive-fiction",
]
categories = [
    "compilers",
    "game-development",
]
license = "MIT"
repository = "https://github.com/syynth/brink"
resolver = "2"

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

[[test]]
name = "integration"
path = "tests/integration.rs"

[dependencies.brink-analyzer]
version = "0.0.5"

[dependencies.brink-db]
version = "0.0.5"

[dependencies.brink-driver]
version = "0.0.5"

[dependencies.brink-fmt]
version = "0.0.5"

[dependencies.brink-ide]
version = "0.0.5"

[dependencies.brink-ir]
version = "0.0.5"

[dependencies.brink-syntax]
version = "0.0.5"

[dependencies.rowan]
version = "0.16.1"

[dependencies.serde_json]
version = "1"

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

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

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dev-dependencies.serde]
version = "1"
features = [
    "derive",
    "rc",
]

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

[lints.clippy]
allow_attributes = "warn"
clone_on_ref_ptr = "deny"
dbg_macro = "deny"
exit = "deny"
expect_used = "deny"
implicit_clone = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
rest_pat_in_fully_bound_structs = "warn"
todo = "deny"
undocumented_unsafe_blocks = "deny"
unwrap_used = "deny"
verbose_file_reads = "warn"
wildcard_dependencies = "deny"

[lints.clippy.cargo]
level = "warn"
priority = -1

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

[lints.rust]
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unsafe_code = "deny"
