# 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"
name = "phonetik"
version = "0.1.0"
build = "build.rs"
include = [
    "src/**/*.rs",
    "build.rs",
    "cmudict.dict",
    "Cargo.toml",
    "LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Phonetic analysis engine for English. Rhyme detection, stress scanning, meter analysis, and syllable counting with a 126K-word embedded dictionary."
readme = "README.md"
keywords = [
    "phonetics",
    "rhyme",
    "prosody",
    "nlp",
    "linguistics",
]
categories = [
    "text-processing",
    "algorithms",
]
license = "MIT"
repository = "https://github.com/Void-n-Null/phonetik"

[features]
default = ["server"]
server = [
    "dep:axum",
    "dep:tokio",
    "dep:tower-http",
    "dep:tracing",
    "dep:tracing-subscriber",
    "dep:bytes",
]

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

[[bin]]
name = "phonetik-server"
path = "src/main.rs"
required-features = ["server"]

[dependencies.axum]
version = "0.8"
optional = true

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

[dependencies.flate2]
version = "1"

[dependencies.parking_lot]
version = "0.12"

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

[dependencies.serde_json]
version = "1"

[dependencies.tokio]
version = "1"
features = ["full"]
optional = true

[dependencies.tower-http]
version = "0.6"
features = ["cors"]
optional = true

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
optional = true

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