# 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.87"
name = "rlsp-yaml"
version = "0.12.0"
authors = ["Christoph Dalski"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A fast, lightweight YAML language server"
homepage = "https://github.com/chdalski/rlsp"
readme = "README.md"
keywords = [
    "yaml",
    "lsp",
    "language-server",
]
categories = [
    "development-tools",
    "text-editors",
]
license = "MIT"
repository = "https://github.com/chdalski/rlsp"
resolver = "2"

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

[[bin]]
name = "rlsp-yaml"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "hot_path"
path = "benches/hot_path.rs"
harness = false

[[bench]]
name = "insight"
path = "benches/insight.rs"
harness = false

[[bench]]
name = "latency"
path = "benches/latency.rs"
harness = false

[dependencies.data-encoding]
version = "2.11"

[dependencies.idna]
version = "1.1"

[dependencies.iri-string]
version = "0.7"

[dependencies.once_cell]
version = "1"

[dependencies.regex]
version = "1"

[dependencies.rlsp-fmt]
version = "0.1.8"

[dependencies.rlsp-yaml-parser]
version = "0.11"

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

[dependencies.serde_json]
version = "1"

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

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

[dependencies.ureq]
version = "3"
features = ["rustls"]

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

[dev-dependencies.futures]
version = "0.3"

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

[dev-dependencies.rstest]
version = "0.26"

[dev-dependencies.tiny_http]
version = "0.12"

[dev-dependencies.tower]
version = "0.5"

[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
expect_used = "deny"
fallible_impl_from = "deny"
fn_params_excessive_bools = "deny"
indexing_slicing = "deny"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
must_use_candidate = "deny"
panic = "deny"
unneeded_field_pattern = "deny"
unwrap_used = "deny"
wildcard_enum_match_arm = "deny"

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

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

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

[lints.rust]
missing_docs = "warn"
warnings = "deny"
