# 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.85"
name = "syllabify-fr"
version = "0.8.0"
authors = ["Kevin Labory <kevin@dyscolor.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Syllabification française pour l'apprentissage de la lecture — port de LireCouleur 6"
readme = "README.md"
keywords = [
    "french",
    "syllables",
    "phonology",
    "dyslexia",
    "reading",
]
categories = [
    "text-processing",
    "science",
]
license = "GPL-3.0-or-later"
repository = "https://github.com/kevinlabory/syllabify-fr"

[features]
cli = [
    "regex-full",
    "dep:clap",
    "dep:clap_complete",
]
default = [
    "regex-full",
    "cli",
]
regex-full = ["dep:regex"]
regex-lite = ["dep:regex-lite"]

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

[[bin]]
name = "syllabify"
path = "src/bin/cli.rs"
required-features = ["cli"]

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

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

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

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

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

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

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.clap_complete]
version = "4"
optional = true

[dependencies.regex]
version = "1"
optional = true

[dependencies.regex-lite]
version = "0.1"
optional = true

[dev-dependencies.assert_cmd]
version = "2"

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

[dev-dependencies.predicates]
version = "3"

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

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

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

[lints.rust]
unsafe_code = "forbid"

[profile.release]
lto = true
codegen-units = 1

[profile.release.package.syllabify-fr-wasm]
opt-level = "z"
