# 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 = "corky"
version = "0.13.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sync email threads from IMAP to Markdown, draft replies, manage collaborators"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/btakita/corky"

[features]
default = []
diarize = [
    "transcribe",
    "pyannote-rs",
    "ort",
]
transcribe = [
    "whisper-rs",
    "symphonia",
    "rubato",
    "hound",
]
transcribe-cuda = [
    "transcribe",
    "whisper-rs/cuda",
]
vendored-openssl = ["openssl"]

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

[[bin]]
name = "corky"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

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

[dependencies.directories]
version = "6"

[dependencies.filetime]
version = "0.2.27"

[dependencies.glob]
version = "0.3"

[dependencies.hound]
version = "3.5"
optional = true

[dependencies.imap]
version = "2"

[dependencies.instruction-files]
version = "0.1"

[dependencies.lettre]
version = "0.11"

[dependencies.libc]
version = "0.2"

[dependencies.mailparse]
version = "0.15"

[dependencies.mime_guess]
version = "2"

[dependencies.native-tls]
version = "0.2"

[dependencies.once_cell]
version = "1"

[dependencies.open]
version = "5"

[dependencies.openssl]
version = "0.10"
features = ["vendored"]
optional = true

[dependencies.ort]
version = "=2.0.0-rc.10"
features = ["ndarray"]
optional = true

[dependencies.pyannote-rs]
version = "0.3"
optional = true

[dependencies.regex]
version = "1"

[dependencies.rubato]
version = "0.16"
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.symphonia]
version = "0.5"
features = [
    "mp3",
    "isomp4",
    "aac",
    "alac",
    "pcm",
    "wav",
    "flac",
    "ogg",
    "vorbis",
]
optional = true

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

[dependencies.tiny_http]
version = "0.12"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "signal",
    "sync",
    "time",
]

[dependencies.toml]
version = "0.8"

[dependencies.toml_edit]
version = "0.22"

[dependencies.ureq]
version = "2"
features = ["json"]

[dependencies.whisper-rs]
version = "0.15"
optional = true

[dependencies.zip]
version = "2"

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

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

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

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

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

[lints.clippy]
collapsible_if = "allow"

[lints.rust]
warnings = "deny"

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