# 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.93.0"
name = "prek-identify"
version = "0.3.13"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "File identification for prek"
readme = false
license = "MIT"
repository = "https://github.com/j178/prek"

[features]
schemars = ["dep:schemars"]
serde = ["dep:serde"]

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

[dependencies.anyhow]
version = "1.0.86"

[dependencies.fs-err]
version = "3.3.0"
features = ["tokio"]

[dependencies.phf]
version = "0.13.1"
features = [
    "macros",
    "macros",
]
default-features = false

[dependencies.schemars]
version = "1.1.0"
optional = true

[dependencies.serde]
version = "1.0.210"
features = ["derive"]
optional = true

[dependencies.shlex]
version = "1.3.0"

[dependencies.thiserror]
version = "2.0.11"

[dev-dependencies.indoc]
version = "2.0.5"

[dev-dependencies.serde_json]
version = "1.0.132"
features = [
    "preserve_order",
    "unbounded_depth",
]

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

[lints.clippy]
collapsible_else_if = "allow"
collapsible_if = "allow"
dbg_macro = "warn"
empty_drop = "warn"
empty_structs_with_brackets = "warn"
exit = "warn"
get_unwrap = "warn"
if_not_else = "allow"
implicit_hasher = "allow"
items_after_statements = "allow"
iter-without-into-iter = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
print_stderr = "warn"
print_stdout = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
rest_pat_in_fully_bound_structs = "warn"
similar_names = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
used_underscore_binding = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -2

[lints.rust]
dead_code = "allow"
