# 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 = "2021"
rust-version = "1.85"
name = "cmakefmt-rust"
version = "0.3.0"
build = "build.rs"
include = [
    "/build.rs",
    "/Cargo.toml",
    "/LICENSE",
    "/LICENSES/Apache-2.0.txt",
    "/LICENSES/MIT.txt",
    "/README.md",
    "/src/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A fast, correct CMake formatter"
homepage = "https://github.com/cmakefmt/cmakefmt"
documentation = "https://cmakefmt.github.io/cmakefmt/"
readme = "README.md"
keywords = [
    "cmake",
    "formatter",
    "formatting",
    "cli",
    "developer-tools",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/cmakefmt/cmakefmt"

[package.metadata.wasm-pack.profile.release]
wasm-opt = false

[features]
cli = [
    "lsp",
    "clap",
    "clap_complete",
    "clap_mangen",
    "schemars",
    "walkdir",
    "ignore",
    "rayon",
    "indicatif",
    "similar",
]
default = ["cli"]
lsp = [
    "lsp-server",
    "lsp-types",
]

[lib]
name = "cmakefmt"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

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

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.clap_complete]
version = "4"
optional = true

[dependencies.clap_mangen]
version = "0.3.0"
optional = true

[dependencies.ignore]
version = "0.4"
optional = true

[dependencies.indexmap]
version = "2.13"
features = ["serde"]

[dependencies.indicatif]
version = "0.18"
optional = true

[dependencies.lsp-server]
version = "0.7"
optional = true

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

[dependencies.pest]
version = "2"

[dependencies.pest_derive]
version = "2"

[dependencies.pretty]
version = "0.12"

[dependencies.rayon]
version = "1"
optional = true

[dependencies.regex]
version = "1.12"

[dependencies.schemars]
version = "^1.2"
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.10"
package = "serde_yaml_ng"

[dependencies.similar]
version = "3.0"
optional = true

[dependencies.thiserror]
version = "2.0.18"

[dependencies.toml]
version = "1.1.2"

[dependencies.walkdir]
version = "2"
optional = true

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

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

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

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[profile.release]
strip = "symbols"
