[package]
name = "statix"
version = "0.5.5"
edition = "2018"
license = "MIT"
authors = [ "Akshay <nerdy@peppe.rs>" ]
description = "Lints and suggestions for the Nix programming language"

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

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

[dependencies]
ariadne = "0.1.3"
clap = "3.0.0-beta.4"
ignore = "0.4.18"
lib = { path = "../lib" }
rayon = "1.5.1"
rnix = "0.10.1"
similar = "2.1.0"
thiserror = "1.0.30"
toml = "0.5.8"
vfs = { path = "../vfs" }

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

[dependencies.serde_json]
version = "1.0.68"
optional = true

[dev-dependencies]
insta = "1.8.0"
strip-ansi-escapes = "0.1.1"

[features]
json = [ "lib/json-out", "serde_json" ]