# 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.90"
name = "lessence"
version = "0.4.2"
build = false
exclude = [
    ".github/",
    ".ideas/",
    ".claude/",
    "examples/",
    "tests/",
    "benches/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Extract the essence of your logs — compress repetitive lines while preserving all unique information"
readme = "README.md"
keywords = [
    "log-compression",
    "cli",
    "log-analysis",
    "devops",
    "deduplication",
]
categories = [
    "command-line-utilities",
    "text-processing",
]
license = "MIT"
repository = "https://github.com/air-gapped/lessence"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }{ archive-suffix }"
bin-dir = "{ bin }{ binary-ext }"
pkg-fmt = "tgz"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"

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

[[bin]]
name = "lessence"
path = "src/main.rs"
test = false

[dependencies.ahash]
version = "0.8"

[dependencies.anyhow]
version = "1.0"

[dependencies.chrono]
version = "0.4"
features = ["clock"]
default-features = false

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

[dependencies.clap_complete]
version = "4"

[dependencies.mutants]
version = "0.0.4"

[dependencies.rand]
version = "0.9"
features = ["alloc"]
default-features = false

[dependencies.rand_chacha]
version = "0.9"

[dependencies.rayon]
version = "1.12.0"

[dependencies.regex]
version = "1.10"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.terminal_size]
version = "0.4.4"

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

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

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.regex]
version = "1.10"

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

[dev-dependencies.toml]
version = "1.1"

[target.'cfg(target_env = "musl")'.dependencies.mimalloc]
version = "0.1"
default-features = false

[lints.clippy]
case_sensitive_file_extension_comparisons = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
format_push_string = "allow"
if_not_else = "allow"
ignored_unit_patterns = "allow"
items_after_statements = "allow"
manual_split_once = "allow"
manual_strip = "allow"
match_same_arms = "allow"
match_wild_err_arm = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_bool = "allow"
needless_pass_by_value = "warn"
similar_names = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
unnecessary_wraps = "allow"
unused_self = "allow"
wildcard_in_or_patterns = "allow"

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

[lints.rust]
unsafe_code = "forbid"

[profile.bench]
debug = 2
strip = false

[profile.mutants]
opt-level = 1
debug = 0
inherits = "test"

[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true

[profile.test]
opt-level = 1
