# 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.95"
name = "mnem-extract"
version = "0.1.3"
authors = ["mnem contributors"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Statistical, embedding-based entity + relation extraction for mnem (KeyBERT-style, co-occurrence PMI). Sync, no LLM, no network."
homepage = "https://github.com/Uranid/mnem"
documentation = "https://docs.rs/mnem-extract"
readme = "README.md"
keywords = [
    "mnem",
    "keybert",
    "extraction",
    "ner",
    "knowledge-graph",
]
categories = [
    "text-processing",
    "science",
]
license = "Apache-2.0"
repository = "https://github.com/Uranid/mnem"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
typed-relations = ["dep:sha2"]

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

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

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

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

[dependencies.mnem-core]
version = "=0.1.3"

[dependencies.mnem-embed-providers]
version = "=0.1.3"

[dependencies.serde]
version = "1"
features = [
    "derive",
    "alloc",
    "derive",
]
default-features = false

[dependencies.sha2]
version = "0.11"
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0"
default-features = false

[dependencies.tracing]
version = "0.1"
features = [
    "std",
    "attributes",
]
default-features = false

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

[dev-dependencies.mnem-embed-providers]
version = "=0.1.3"
features = ["mock"]
default-features = false

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

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

[lints.clippy]
assertions_on_constants = "allow"
assigning_clones = "allow"
bool_assert_comparison = "allow"
case_sensitive_file_extension_comparisons = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clone_on_copy = "allow"
cloned_ref_to_slice_refs = "allow"
collapsible_if = "allow"
copy_iterator = "allow"
default_trait_access = "allow"
doc_lazy_continuation = "allow"
doc_markdown = "allow"
doc_overindented_list_items = "allow"
elidable_lifetime_names = "allow"
explicit_into_iter_loop = "allow"
explicit_iter_loop = "allow"
field_reassign_with_default = "allow"
flat_map_option = "allow"
float_cmp = "allow"
fn_params_excessive_bools = "allow"
format_collect = "allow"
format_push_string = "allow"
ignored_unit_patterns = "allow"
implicit_clone = "allow"
inefficient_to_string = "allow"
items_after_statements = "allow"
items_after_test_module = "allow"
iter_on_single_items = "allow"
iter_without_into_iter = "allow"
large_enum_variant = "allow"
len_zero = "allow"
literal_string_with_formatting_args = "allow"
manual_assert = "allow"
manual_is_multiple_of = "allow"
manual_is_variant_and = "allow"
manual_let_else = "allow"
manual_range_contains = "allow"
manual_string_new = "allow"
map_flatten = "allow"
map_unwrap_or = "allow"
match_bool = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
misnamed_getters = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
must_use_unit = "allow"
mut_mut = "allow"
needless_borrows_for_generic_args = "allow"
needless_collect = "allow"
needless_continue = "allow"
needless_for_each = "allow"
needless_pass_by_value = "allow"
needless_range_loop = "allow"
no_effect_underscore_binding = "allow"
option_if_let_else = "allow"
option_option = "allow"
or_fun_call = "allow"
ptr_arg = "allow"
range_plus_one = "allow"
redundant_clone = "allow"
redundant_else = "allow"
redundant_pub_crate = "allow"
ref_as_ptr = "allow"
ref_option = "allow"
result_large_err = "allow"
return_self_not_must_use = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
single_element_loop = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
suboptimal_flops = "allow"
too_long_first_doc_paragraph = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
tuple_array_conversions = "allow"
uninlined_format_args = "allow"
unnecessary_box_returns = "allow"
unnecessary_cast = "allow"
unnecessary_literal_bound = "allow"
unnecessary_map_or = "allow"
unnecessary_sort_by = "allow"
unnecessary_trailing_comma = "allow"
unnecessary_wraps = "allow"
unreadable_literal = "allow"
unused_peekable = "allow"
unused_self = "allow"
use_self = "allow"
used_underscore_binding = "allow"
wildcard_imports = "allow"

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

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

[lints.rust]
missing_docs = "deny"
unknown_lints = "allow"
unreachable_pub = "warn"
unsafe_code = "forbid"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1

[lints.rustdoc]
bare_urls = "allow"
broken_intra_doc_links = "allow"
doc_lazy_continuation = "allow"
invalid_html_tags = "allow"
private_intra_doc_links = "allow"
