[[bin]]
bench = false
name = "bench"
path = "src/bin/bench.rs"
[[bin]]
name = "sqruff"
path = "src/main.rs"
[dependencies.clap]
features = ["derive"]
version = "4"
[dependencies.console]
version = "0.15.8"
[dependencies.ignore]
version = "0.4.23"
[dependencies.pyo3]
features = ["auto-initialize"]
optional = true
version = "0.24.1"
[dependencies.sqruff-lib]
version = "0.25.25"
[dependencies.sqruff-lsp]
version = "0.25.25"
[dependencies.strum_macros]
version = "0.27.1"
[dev-dependencies.assert_cmd]
version = "2.0.16"
[dev-dependencies.expect-test]
version = "1.5.0"
[dev-dependencies.tempfile]
version = "3.19.1"
[features]
codegen-docs = ["clap-markdown", "minijinja", "serde", "python"]
python = ["sqruff-lib/python", "pyo3"]
[lints.clippy]
cloned_instead_of_copied = "warn"
perf = "warn"
[lints.rust]
unreachable_pub = "warn"
unused_qualifications = "warn"
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
default-run = "sqruff"
description = "A high-speed SQL linter."
edition = "2024"
license = "Apache-2.0"
name = "sqruff"
readme = "README.md"
repository = "https://github.com/quarylabs/sqruff"
resolver = "2"
rust-version = "1.85"
version = "0.25.25"
[package.metadata.binbstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"
pkg-url = "{ repo }/releases/download/v{ version }/sqruff-windows-x86_64.zip"
[package.metadata.binstall]
pkg-fmt = "tgz"
pkg-url = "{ repo }/releases/download/v{ version }/sqruff-{ target-family }-{ target-arch }.tar.gz"
[target.'cfg(all(not(target_os = "windows"), not(target_os = "openbsd"), any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "powerpc64")))'.dependencies.clap-markdown]
optional = true
version = "0.1.4"
[target.'cfg(all(not(target_os = "windows"), not(target_os = "openbsd"), any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "powerpc64")))'.dependencies.jemallocator]
package = "tikv-jemallocator"
version = "0.6.0"
[target.'cfg(all(not(target_os = "windows"), not(target_os = "openbsd"), any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "powerpc64")))'.dependencies.minijinja]
optional = true
version = "2.8.0"
[target.'cfg(all(not(target_os = "windows"), not(target_os = "openbsd"), any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "powerpc64")))'.dependencies.serde]
features = ["derive"]
optional = true
version = "1.0.219"
[target.'cfg(target_os = "windows")'.dependencies.mimalloc]
version = "0.1"
[[test]]
harness = false
name = "config_not_found"
path = "tests/config_not_found.rs"
[[test]]
harness = false
name = "configure_rule"
path = "tests/configure_rule.rs"
[[test]]
harness = false
name = "fix_parse_errors"
path = "tests/fix_parse_errors.rs"
[[test]]
harness = false
name = "fix_return_code"
path = "tests/fix_return_code.rs"
[[test]]
harness = false
name = "ui"
path = "tests/ui.rs"
[[test]]
harness = false
name = "ui_github"
path = "tests/ui_github.rs"
[[test]]
harness = false
name = "ui_json"
path = "tests/ui_json.rs"
[[test]]
harness = false
name = "ui_with_dbt"
path = "tests/ui_with_dbt.rs"
[[test]]
harness = false
name = "ui_with_jinja"
path = "tests/ui_with_jinja.rs"
[[test]]
harness = false
name = "ui_with_python"
path = "tests/ui_with_python.rs"