# 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 = "plasma-drop"
version = "1.4.1"
build = false
exclude = [
    "/.claude/",
    "/.code-review-graph/",
    "/.codex/",
    "/.github/",
    "/.gitignore",
    "/.mcp.json",
    "/.mise.toml",
    "/.zed/",
    "/AGENTS.md",
    "/Makefile",
    "/clippy.toml",
    "/docs/*/",
    "/packaging/dist/",
    "/release-plz.toml",
    "/target/",
    "/wtq",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "KDE Plasma 6 dropdown app launcher"
readme = "README.md"
keywords = [
    "kde",
    "plasma",
    "launcher",
    "dropdown",
    "wayland",
]
categories = ["command-line-utilities"]
license = "GPL-3.0-or-later"
repository = "https://github.com/SkeLLLa/plasma-drop"

[package.metadata.deb]
maintainer = "SkeLLLa"
copyright = "2026, SkeLLLa"
depends = "$auto"
section = "utils"
priority = "optional"
extended-description = """
plasma-drop is a KDE Plasma 6 dropdown launcher for Wayland sessions.
The package installs the binary, a user systemd unit, and an example
configuration so users can enable the service with minimal setup.
"""
assets = [
    [
    "target/release/plasma-drop",
    "usr/bin/plasma-drop",
    "755",
],
    [
    "packaging/systemd/plasma-drop.packaged.service",
    "usr/lib/systemd/user/plasma-drop.service",
    "644",
],
    [
    "resources/example-config.toml",
    "usr/share/plasma-drop/examples/config.toml",
    "644",
],
    [
    "README.md",
    "usr/share/doc/plasma-drop/README.md",
    "644",
],
    [
    "resources/icons/plasma-drop-icon.svg",
    "usr/share/doc/plasma-drop/resources/icons/plasma-drop-icon.svg",
    "644",
],
    [
    "resources/icons/plasma-drop-icon.png",
    "usr/share/doc/plasma-drop/resources/icons/plasma-drop-icon.png",
    "644",
],
    [
    "COPYING",
    "usr/share/doc/plasma-drop/COPYING",
    "644",
],
]

[package.metadata.generate-rpm]
summary = "KDE Plasma 6 dropdown app launcher"
license = "GPL-3.0-or-later"

[[package.metadata.generate-rpm.assets]]
source = "target/release/plasma-drop"
dest = "/usr/bin/plasma-drop"
mode = "755"

[[package.metadata.generate-rpm.assets]]
source = "packaging/systemd/plasma-drop.packaged.service"
dest = "/usr/lib/systemd/user/plasma-drop.service"
mode = "644"
doc = false

[[package.metadata.generate-rpm.assets]]
source = "resources/example-config.toml"
dest = "/usr/share/plasma-drop/examples/config.toml"
mode = "644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "README.md"
dest = "/usr/share/doc/plasma-drop/README.md"
mode = "644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "resources/icons/plasma-drop-icon.svg"
dest = "/usr/share/doc/plasma-drop/resources/icons/plasma-drop-icon.svg"
mode = "644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "resources/icons/plasma-drop-icon.png"
dest = "/usr/share/doc/plasma-drop/resources/icons/plasma-drop-icon.png"
mode = "644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "COPYING"
dest = "/usr/share/doc/plasma-drop/COPYING"
mode = "644"
doc = true

[[bin]]
name = "plasma-drop"
path = "src/main.rs"

[dependencies.anyhow]
version = "1.0"

[dependencies.async-trait]
version = "0.1"

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

[dependencies.libc]
version = "0.2"

[dependencies.regex]
version = "1.11"

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

[dependencies.serde_json]
version = "1.0"

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

[dependencies.toml]
version = "1.1"

[dependencies.tracing]
version = "0.1"

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

[dependencies.uuid]
version = "1.11"
features = [
    "serde",
    "v4",
]

[dependencies.zbus]
version = "5.13"
features = ["tokio"]

[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
redundant_pub_crate = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"

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

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

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

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

[lints.rust]
unsafe_op_in_unsafe_fn = "deny"
unused_lifetimes = "deny"
unused_qualifications = "warn"

[profile.release]
lto = "thin"
codegen-units = 1
strip = "symbols"
