# 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.85.0"
name = "headson"
version = "0.13.1"
build = false
include = [
    "src/**",
    "Cargo.toml",
    "README.md",
    "docs/assets/**",
    "LICENSE*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Budget‑constrained JSON preview renderer"
homepage = "https://github.com/kantord/headson"
documentation = "https://docs.rs/headson"
readme = "README.md"
keywords = [
    "json",
    "cli",
    "render",
    "preview",
]
categories = [
    "command-line-utilities",
    "parsing",
]
license = "MIT"
repository = "https://github.com/kantord/headson"
resolver = "2"

[features]
default = []

[lib]
name = "headson"
path = "src/lib.rs"
doctest = false

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

[dependencies.anyhow]
version = "1.0.100"

[dependencies.clap]
version = "4.5.49"
features = ["derive"]

[dependencies.clap_complete]
version = "4.5.62"

[dependencies.content_inspector]
version = "0.2"

[dependencies.frecenfile]
version = "0.4"

[dependencies.git2]
version = "0.20.1"
features = ["vendored-libgit2"]
default-features = false

[dependencies.ignore]
version = "0.4"

[dependencies.once_cell]
version = "1.19"

[dependencies.prunist]
version = "0.13.1"

[dependencies.regex]
version = "1.11"

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

[dependencies.serde_json]
version = "1.0.145"

[dependencies.simd-json]
version = "0.17"
features = ["serde_impl"]

[dependencies.syntect]
version = "5"

[dependencies.unicode-segmentation]
version = "1.12.0"

[dependencies.yaml-rust2]
version = "0.11"

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

[dev-dependencies.filetime]
version = "0.2"

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

[dev-dependencies.rand]
version = "0.9"

[dev-dependencies.rand_chacha]
version = "0.9"

[dev-dependencies.serde_yaml]
version = "0.9"

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

[dev-dependencies.test_each_file]
version = "0.3"

[lints.clippy]
allow_attributes_without_reason = "deny"
bool_comparison = "deny"
branches_sharing_code = "deny"
cognitive_complexity = "deny"
collapsible_if = "deny"
dbg_macro = "deny"
float_cmp = "deny"
float_cmp_const = "deny"
if_same_then_else = "deny"
implicit_hasher = "deny"
let_and_return = "deny"
manual_flatten = "deny"
manual_let_else = "deny"
manual_map = "deny"
manual_range_contains = "deny"
manual_split_once = "deny"
manual_strip = "deny"
match_like_matches_macro = "deny"
match_ref_pats = "deny"
match_same_arms = "deny"
needless_bool = "deny"
needless_borrow = "deny"
needless_borrowed_reference = "deny"
needless_late_init = "deny"
needless_pass_by_value = "deny"
needless_return = "deny"
option_as_ref_deref = "deny"
panic_in_result_fn = "deny"
ptr_arg = "deny"
range_plus_one = "deny"
redundant_clone = "deny"
redundant_closure_for_method_calls = "deny"
redundant_else = "deny"
shadow_unrelated = "deny"
similar_names = "deny"
single_match_else = "deny"
string_add = "deny"
todo = "deny"
too_many_arguments = "deny"
too_many_lines = "deny"
trivially_copy_pass_by_ref = "deny"
type_complexity = "deny"
unimplemented = "deny"
uninlined_format_args = "deny"
unnecessary_wraps = "deny"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.cargo]
level = "deny"
priority = -1

[lints.clippy.perf]
level = "deny"
priority = -1

[lints.rust]
dead_code = "warn"

[profile.dist]
lto = "thin"
inherits = "release"

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
panic = "abort"
incremental = false
strip = "symbols"
