# 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 = "2021"
rust-version = "1.78"
name = "mla-titlecase"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "MLA title casing library"
homepage = "https://github.com/Pajn/mla-titlecase"
documentation = "https://docs.rs/mla-titlecase"
readme = "README.md"
keywords = [
    "mla",
    "titlecase",
    "style",
    "text",
]
categories = ["text-processing"]
license = "MIT"
repository = "https://github.com/Pajn/mla-titlecase"

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

[[example]]
name = "basic"
path = "examples/basic.rs"

[[example]]
name = "with_plugins_fst"
path = "examples/with_plugins_fst.rs"

[[example]]
name = "with_plugins_json"
path = "examples/with_plugins_json.rs"

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

[[bench]]
name = "lexicon_lookup"
path = "benches/lexicon_lookup.rs"
harness = false

[[bench]]
name = "plugin_load"
path = "benches/plugin_load.rs"
harness = false

[[bench]]
name = "titlecase"
path = "benches/titlecase.rs"
harness = false

[dependencies.fst]
version = "0.4"

[dependencies.memmap2]
version = "0.9"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.criterion]
version = "0.5"
default-features = false

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

[lints.clippy]
dbg_macro = "deny"
todo = "deny"
unimplemented = "deny"

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
