sqruff 0.34.1

A high-speed SQL linter.
# 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.88"
name = "sqruff"
version = "0.34.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "sqruff"
description = "A high-speed SQL linter."
readme = false
license = "Apache-2.0"
repository = "https://github.com/quarylabs/sqruff"
resolver = "2"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/sqruff-{ target-family }-{ target-arch }.tar.gz"
pkg-fmt = "tgz"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-url = "{ repo }/releases/download/v{ version }/sqruff-windows-x86_64.zip"
pkg-fmt = "zip"

[package.metadata.cargo-machete]
ignored = ["pyo3"]

[features]
bench = []
codegen-docs = ["sqruff-cli-lib/codegen-docs"]
default = ["mimalloc"]
dhat-heap = ["dep:dhat"]
mimalloc = ["dep:mimalloc"]
parser = ["sqruff-cli-lib/parser"]
python = [
    "sqruff-cli-lib/python",
    "pyo3",
]

[[bin]]
name = "bench"
path = "src/bin/bench.rs"
bench = false
required-features = ["bench"]

[[bin]]
name = "sqruff"
path = "src/main.rs"

[[test]]
name = "config_not_found"
path = "tests/config_not_found.rs"
harness = false

[[test]]
name = "configure_rule"
path = "tests/configure_rule.rs"
harness = false

[[test]]
name = "dialect_override"
path = "tests/dialect_override.rs"
harness = false

[[test]]
name = "fix_parse_errors"
path = "tests/fix_parse_errors.rs"
harness = false

[[test]]
name = "fix_return_code"
path = "tests/fix_return_code.rs"
harness = false

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

[[test]]
name = "ui"
path = "tests/ui.rs"
harness = false

[[test]]
name = "ui_github"
path = "tests/ui_github.rs"
harness = false

[[test]]
name = "ui_json"
path = "tests/ui_json.rs"
harness = false

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

[dependencies.dhat]
version = "0.3.3"
optional = true

[dependencies.pyo3]
version = "0.27.2"
features = ["auto-initialize"]
optional = true

[dependencies.sqruff-cli-lib]
version = "0.34.1"

[dev-dependencies.assert_cmd]
version = "2.0.16"

[dev-dependencies.expect-test]
version = "1.5.0"

[dev-dependencies.sqruff-lib]
version = "0.34.1"

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

[target.'cfg(all(target_os = "windows", not(feature = "dhat-heap")))'.dependencies.mimalloc]
version = "0.1"
optional = true

[lints.clippy]
cloned_instead_of_copied = "warn"
perf = "warn"

[lints.rust]
unreachable_pub = "warn"
unused_qualifications = "warn"