# 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 = "shotpaste"
version = "0.3.0"
authors = ["Ebrahim Sameh <ebrahimsameh16@gmail.com>"]
build = false
exclude = [
    "assets/demo.gif",
    "assets/demo.png",
    "assets/tray-menu.png",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "One screenshot, three pastes. Atomic multi-format clipboard (image + file + path) on Windows, macOS, and Linux."
homepage = "https://github.com/ebrahim-sameh/shotpaste"
documentation = "https://github.com/ebrahim-sameh/shotpaste"
readme = "README.md"
keywords = [
    "screenshot",
    "clipboard",
    "cli",
    "paste",
    "cross-platform",
]
categories = [
    "command-line-utilities",
    "filesystem",
]
license = "MIT"
repository = "https://github.com/ebrahim-sameh/shotpaste"

[features]
default = ["tray"]
tray = [
    "dep:tao",
    "dep:tray-icon",
    "dep:notify-rust",
    "dep:tracing-appender",
    "dep:rfd",
]

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

[[example]]
name = "gen_icons"
path = "examples/gen_icons.rs"

[dependencies.anyhow]
version = "1"

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

[dependencies.dirs]
version = "5"

[dependencies.fs2]
version = "0.4"

[dependencies.image]
version = "0.25"
features = ["png"]
default-features = false

[dependencies.notify]
version = "8"

[dependencies.notify-debouncer-full]
version = "0.7"

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

[dependencies.rfd]
version = "0.17"
features = ["gtk3"]
optional = true
default-features = false

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

[dependencies.tao]
version = "0.35"
optional = true

[dependencies.thiserror]
version = "1"

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-appender]
version = "0.2"
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
    "ansi",
]
default-features = false

[dependencies.tray-icon]
version = "0.24"
features = ["gtk"]
optional = true
default-features = false

[dependencies.url]
version = "2"

[target.'cfg(not(target_os = "windows"))'.dependencies.clipboard-rs]
version = "0.3"
features = ["image"]

[target.'cfg(target_os = "windows")'.dependencies.clipboard-win]
version = "5"

[target.'cfg(target_os = "windows")'.dependencies.image]
version = "0.25"
features = [
    "png",
    "bmp",
]
default-features = false

[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.61"
features = [
    "Win32_Foundation",
    "Win32_System_Threading",
]

[profile.dist]
lto = "thin"
inherits = "release"

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