[package]
edition = "2024"
rust-version = "1.88"
name = "jsonvet-cli"
version = "3.3.1"
authors = ["Simon van Lierde"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The jsonvet command: checks JSON, I-JSON, JSONC, JWCC (HuJSON), JSON5 and JSON Lines files, with JSON Schema checks, SARIF output, fixes and a formatter."
homepage = "https://github.com/simonvanlierde/jsonvet"
readme = "README.md"
keywords = [
"json",
"json5",
"jsonc",
"lint",
"pre-commit",
]
categories = [
"command-line-utilities",
"development-tools",
"parser-implementations",
]
license = "MIT"
repository = "https://github.com/simonvanlierde/jsonvet"
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/jsonvet-{ target }.tar.gz"
bin-dir = "{ bin }{ binary-ext }"
pkg-fmt = "tgz"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-url = "{ repo }/releases/download/v{ version }/jsonvet-{ target }.zip"
pkg-fmt = "zip"
[package.metadata.binstall.overrides.aarch64-pc-windows-msvc]
pkg-url = "{ repo }/releases/download/v{ version }/jsonvet-{ target }.zip"
pkg-fmt = "zip"
[lib]
name = "jsonvet_cli"
path = "src/lib.rs"
[[bin]]
name = "check-json5"
path = "src/bin/check-json5.rs"
[[bin]]
name = "jsonvet"
path = "src/main.rs"
doc = false
[[test]]
name = "cli"
path = "tests/cli.rs"
[[test]]
name = "corpus"
path = "tests/corpus.rs"
[[test]]
name = "file_lists"
path = "tests/file_lists.rs"
[[test]]
name = "fix"
path = "tests/fix.rs"
[[test]]
name = "fmt"
path = "tests/fmt.rs"
[[test]]
name = "format_memory"
path = "tests/format_memory.rs"
[[test]]
name = "scaling"
path = "tests/scaling.rs"
[[test]]
name = "schema_memory"
path = "tests/schema_memory.rs"
[[test]]
name = "schemastore"
path = "tests/schemastore.rs"
[[bench]]
name = "codspeed"
path = "benches/codspeed.rs"
harness = false
[[bench]]
name = "schema"
path = "benches/schema.rs"
harness = false
[dependencies.annotate-snippets]
version = "0.12.17"
[dependencies.ignore]
version = "0.4.33"
[dependencies.jsonschema]
version = "0.60.1"
default-features = false
[dependencies.jsonschema-value]
version = "=0.60.1"
default-features = false
[dependencies.jsonvet]
version = "=3.3.1"
[dependencies.lexopt]
version = "0.3.2"
[dependencies.memchr]
version = "2.8.3"
[dependencies.referencing]
version = "0.60.1"
default-features = false
[dependencies.serde_json]
version = "1.0.154"
[dependencies.toml]
version = "1.1.8"
features = [
"parse",
"serde",
]
default-features = false
[dev-dependencies.divan]
version = "6.0.0"
package = "codspeed-divan-compat"
[dev-dependencies.gungraun]
version = "0.20.0"
[dev-dependencies.insta]
version = "1.49.0"
[dev-dependencies.peak_alloc]
version = "0.3.0"
[dev-dependencies.proptest]
version = "1.12.0"
[lints.clippy]
allow_attributes_without_reason = "warn"
dbg_macro = "warn"
expect_used = "warn"
must_use_candidate = "allow"
todo = "warn"
unimplemented = "warn"
unwrap_used = "warn"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"