# 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"
rust-version = "1.85"
name = "concord"
version = "2.3.1"
build = false
exclude = [
    "docs/",
    ".github/",
    "dist-workspace.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A terminal user interface client for Discord"
homepage = "https://github.com/chojs23/concord"
readme = "README.md"
keywords = [
    "discord",
    "tui",
    "terminal",
    "ratatui",
    "client",
]
categories = ["command-line-utilities"]
license = "GPL-3.0-only"
repository = "https://github.com/chojs23/concord"

[features]
default = ["voice-playback"]
voice-playback = [
    "dep:cpal",
    "dep:alsa",
]

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

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

[dependencies.aes-gcm]
version = "0.10.3"

[dependencies.arboard]
version = "3.6.1"
features = ["wayland-data-control"]

[dependencies.base64]
version = "0.22"

[dependencies.chacha20poly1305]
version = "0.10.1"

[dependencies.chrono]
version = "0.4.44"
features = ["clock"]
default-features = false

[dependencies.cpal]
version = "0.17.3"
optional = true

[dependencies.crossterm]
version = "0.29.0"
features = [
    "event-stream",
    "osc52",
]

[dependencies.davey]
version = "0.1.3"

[dependencies.dirs]
version = "6.0.0"

[dependencies.emojis]
version = "0.8.2"

[dependencies.futures]
version = "0.3.32"

[dependencies.image]
version = "0.25.10"

[dependencies.interprocess]
version = "2.4.2"
features = ["tokio"]

[dependencies.keyring]
version = "3.6.3"
features = [
    "apple-native",
    "async-secret-service",
    "crypto-rust",
    "tokio",
    "windows-native",
]
default-features = false

[dependencies.mime_guess]
version = "2.0"

[dependencies.notify-rust]
version = "4"

[dependencies.opus]
version = "0.3.1"

[dependencies.qrcode]
version = "0.14"
default-features = false

[dependencies.rand]
version = "0.8"

[dependencies.ratatui]
version = "0.30.0"

[dependencies.ratatui-image]
version = "11.0.5"
features = [
    "crossterm",
    "image-defaults",
]
default-features = false

[dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls-webpki-roots-no-provider",
    "json",
    "charset",
    "http2",
    "cookies",
    "gzip",
    "deflate",
    "brotli",
    "zstd",
    "multipart",
]
default-features = false

[dependencies.rsa]
version = "0.9"

[dependencies.rustls]
version = "0.23.39"
features = [
    "ring",
    "std",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.syntect]
version = "5.3.0"
features = ["default-fancy"]
default-features = false

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.52.1"
features = [
    "macros",
    "rt-multi-thread",
    "fs",
    "process",
    "signal",
    "net",
    "sync",
    "time",
]

[dependencies.tokio-tungstenite]
version = "0.27"
features = [
    "connect",
    "handshake",
    "rustls-tls-webpki-roots",
]
default-features = false

[dependencies.toml]
version = "1.1.2"

[dependencies.unicode-segmentation]
version = "1.12.0"

[dependencies.unicode-width]
version = "0.2.2"

[dependencies.uuid]
version = "1.23.1"
features = ["v4"]

[target.'cfg(target_os = "linux")'.dependencies.alsa]
version = "0.11"
optional = true

[profile.dist]
lto = true
codegen-units = 1
inherits = "release"
strip = true
