# 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.92.0"
name = "beancount-language-server"
version = "1.8.0"
authors = ["Brian Ryall <polarmutex@users.noreply.github.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Language Server Protocol implementation for Beancount, providing rich editing features like completions, diagnostics, and formatting"
homepage = "https://github.com/polarmutex/beancount-language-server"
documentation = "https://docs.rs/beancount-language-server"
readme = "README.md"
keywords = [
    "beancount",
    "lsp",
    "language-server",
    "accounting",
    "finance",
]
categories = [
    "development-tools",
    "text-editors",
]
license = "MIT"
repository = "https://github.com/polarmutex/beancount-language-server"
resolver = "2"

[package.metadata.dist]
dist = true

[package.metadata.release]
tag = true

[features]
default = []
integration-tests = []
python-embedded = ["pyo3"]

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

[[bin]]
name = "beancount-language-server"
path = "src/main.rs"

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.bytes]
version = "1.11"

[dependencies.chrono]
version = "0.4"
features = ["clock"]
default-features = false

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

[dependencies.crossbeam-channel]
version = "0.5"

[dependencies.dashmap]
version = "6.1"

[dependencies.glob]
version = "0.3"

[dependencies.itertools]
version = "0.14"

[dependencies.linked-list]
version = "0.1"

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

[dependencies.lsp-types]
version = "0.97"

[dependencies.nucleo]
version = "0.5"

[dependencies.pyo3]
version = "0.27"
features = [
    "abi3-py38",
    "auto-initialize",
    "generate-import-lib",
]
optional = true

[dependencies.regex]
version = "1.0"

[dependencies.ropey]
version = "1.6"

[dependencies.rust_decimal]
version = "1.37"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_with]
version = "3.11"

[dependencies.shellexpand]
version = "3.1"

[dependencies.strum]
version = "0.27.2"

[dependencies.strum_macros]
version = "0.27.2"

[dependencies.thiserror]
version = "2.0"

[dependencies.threadpool]
version = "1.8"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
    "smallvec",
    "std",
    "tracing-log",
]
default-features = false

[dependencies.tree-sitter-beancount]
version = "2.4.2"

[dependencies.url]
version = "2.5"

[dependencies.which]
version = "6.0"

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

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.insta]
version = "1.46"
features = ["yaml"]

[dev-dependencies.tempfile]
version = "3.0"

[dev-dependencies.test-log]
version = "0.2"
features = ["trace"]
