# 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 = "plakat"
version = "0.29.0"
authors = ["Vladimir Ulogov <vulogov@gmail.com>"]
build = false
exclude = [
    "out/",
    "*.png",
    ".github/",
    ".vscode/",
    "tests/fixtures/",
    "**/.DS_Store",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Local text-to-image, style transfer, LoRA, upscale and color-key CLI built on candle"
homepage = "https://github.com/vulogov/plakat"
readme = "README.md"
keywords = [
    "stable-diffusion",
    "image-generation",
    "ai",
    "huggingface",
    "candle",
]
categories = [
    "command-line-utilities",
    "multimedia::images",
]
license = "Unlicense"
repository = "https://github.com/vulogov/plakat"

[features]
cpu = []
cuda = [
    "candle-core/cuda",
    "candle-nn/cuda",
    "candle-transformers/cuda",
]
cudnn = [
    "cuda",
    "candle-core/cudnn",
]
default = []
metal = [
    "candle-core/metal",
    "candle-nn/metal",
    "candle-transformers/metal",
]

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

[[bin]]
name = "build_catalog"
path = "src/bin/build_catalog.rs"

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.bund_language_parser]
version = "=0.14.0"

[dependencies.bundcore]
version = "=0.7.0"

[dependencies.candle-core]
version = "0.10"

[dependencies.candle-nn]
version = "0.10"

[dependencies.candle-transformers]
version = "0.10"

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

[dependencies.console]
version = "0.15"

[dependencies.deser-hjson]
version = "2"

[dependencies.directories]
version = "5"

[dependencies.easy-error]
version = "1"

[dependencies.futures-util]
version = "0.3"

[dependencies.hf-hub]
version = "0.4"
features = [
    "tokio",
    "rustls-tls",
]
default-features = false

[dependencies.image]
version = "0.25"
features = [
    "png",
    "jpeg",
    "webp",
    "gif",
]
default-features = false

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

[dependencies.indicatif]
version = "0.17"

[dependencies.png]
version = "0.18"

[dependencies.rand]
version = "0.8"

[dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls",
    "json",
    "stream",
]
default-features = false

[dependencies.rust_dynamic]
version = "=0.49.0"

[dependencies.rust_multistackvm]
version = "=0.38.0"

[dependencies.rustyline]
version = "18"

[dependencies.safetensors]
version = "0.7.0"

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "1"

[dependencies.tokenizers]
version = "0.20"
features = ["onig"]
default-features = false

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "fs",
    "io-util",
]

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

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

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