# 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"
name = "lede"
version = "0.4.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Deterministic extractive summarization — stdlib + regex only"
readme = "README.md"
keywords = [
    "summarization",
    "extractive",
    "text",
    "nlp",
    "tf-idf",
]
categories = ["text-processing"]
license = "Apache-2.0"
repository = "https://github.com/yonk-labs/lede"

[features]
wordforms = ["dep:text2num"]

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

[[bin]]
name = "bench_tfidf"
path = "src/bin/bench_tfidf.rs"

[[bin]]
name = "lede"
path = "src/bin/lede.rs"

[[test]]
name = "brief"
path = "tests/brief.rs"

[[test]]
name = "clean_text"
path = "tests/clean_text.rs"

[[test]]
name = "cli"
path = "tests/cli.rs"

[[test]]
name = "coverage"
path = "tests/coverage.rs"

[[test]]
name = "determinism"
path = "tests/determinism.rs"

[[test]]
name = "extract_correlate"
path = "tests/extract_correlate.rs"

[[test]]
name = "extract_key_facts"
path = "tests/extract_key_facts.rs"

[[test]]
name = "extract_metadata"
path = "tests/extract_metadata.rs"

[[test]]
name = "extract_outline"
path = "tests/extract_outline.rs"

[[test]]
name = "extract_phrases"
path = "tests/extract_phrases.rs"

[[test]]
name = "extract_stats"
path = "tests/extract_stats.rs"

[[test]]
name = "extract_toc"
path = "tests/extract_toc.rs"

[[test]]
name = "fixtures"
path = "tests/fixtures.rs"

[[test]]
name = "float_parity"
path = "tests/float_parity.rs"

[[test]]
name = "hints"
path = "tests/hints.rs"

[[test]]
name = "hints_unit"
path = "tests/hints_unit.rs"

[[test]]
name = "keyword"
path = "tests/keyword.rs"

[[test]]
name = "pins"
path = "tests/pins.rs"

[[test]]
name = "scorer_v0_2"
path = "tests/scorer_v0_2.rs"

[[test]]
name = "sentences"
path = "tests/sentences.rs"

[[test]]
name = "strip_think"
path = "tests/strip_think.rs"

[[test]]
name = "summaryresult"
path = "tests/summaryresult.rs"

[[test]]
name = "tfidf"
path = "tests/tfidf.rs"

[[test]]
name = "zero_dep"
path = "tests/zero_dep.rs"

[dependencies.regex]
version = "1"

[dependencies.text2num]
version = "2.6"
optional = true

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

[lints.clippy]
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"

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

[lints.rust]
unsafe_code = "forbid"
