# 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.76"
name = "speech"
version = "0.8.3"
authors = ["Per Johansson <per@doom.fish>"]
build = "build.rs"
include = [
    "src/**/*",
    "swift-bridge/Package.swift",
    "swift-bridge/Sources/**/*",
    "examples/**/*",
    "tests/**/*",
    "build.rs",
    "Cargo.toml",
    "README.md",
    "LICENSE-*",
    "CHANGELOG.md",
    "COVERAGE.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for Apple's Speech framework — on-device speech recognition (SFSpeechRecognizer) on macOS"
homepage = "https://github.com/doom-fish/speech-rs"
readme = "README.md"
keywords = [
    "speech",
    "transcription",
    "macos",
    "asr",
    "apple",
]
categories = [
    "api-bindings",
    "os::macos-apis",
    "multimedia::audio",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/speech-rs"

[package.metadata.docs.rs]
all-features = true
default-target = "aarch64-apple-darwin"
targets = [
    "aarch64-apple-darwin",
    "x86_64-apple-darwin",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[badges.maintenance]
status = "actively-developed"

[features]
async = []
default = ["recognize_url"]
recognize_url = []

[lib]
name = "speech"
crate-type = ["lib"]
path = "src/lib.rs"

[[example]]
name = "01_recognize_smoke"
path = "examples/01_recognize_smoke.rs"
required-features = ["recognize_url"]

[[example]]
name = "02_framework_smoke"
path = "examples/02_framework_smoke.rs"

[[example]]
name = "03_dictation_smoke"
path = "examples/03_dictation_smoke.rs"

[[example]]
name = "04_macos26_surface_smoke"
path = "examples/04_macos26_surface_smoke.rs"

[[example]]
name = "05_async_smoke"
path = "examples/05_async_smoke.rs"
required-features = ["async"]

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

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

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

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

[dependencies.doom-fish-utils]
version = ">=0.1, <0.3"

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

[dependencies.serde_json]
version = "1"

[dev-dependencies.pollster]
version = "0.3"

[dev-dependencies.regex-lite]
version = "0.1"

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

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

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

[lints.rust]

[profile.release]
debug = 2
strip = "none"
