# 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 = "2021"
name = "mold-ai"
version = "0.4.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Local AI image generation CLI — FLUX, SDXL, SD3.5, Z-Image diffusion models on your GPU"
readme = "README.md"
keywords = [
    "ai",
    "image-generation",
    "diffusion",
    "flux",
    "gpu",
]
categories = [
    "command-line-utilities",
    "multimedia::images",
    "science",
]
license = "MIT"
repository = "https://github.com/utensils/mold"

[features]
cuda = [
    "mold-server/cuda",
    "mold-inference/cuda",
    "mold-tui?/cuda",
]
default = []
discord = ["mold-discord"]
expand = [
    "mold-inference/expand",
    "mold-server/expand",
    "mold-tui?/expand",
]
metal = [
    "mold-server/metal",
    "mold-inference/metal",
    "mold-tui?/metal",
]
preview = ["viuer"]
tui = ["dep:mold-tui"]

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

[dependencies.anyhow]
version = "1"

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
    "unstable-ext",
]

[dependencies.clap_complete]
version = "4"
features = ["unstable-dynamic"]

[dependencies.colored]
version = "3"

[dependencies.ctrlc]
version = "3"

[dependencies.dirs]
version = "6"

[dependencies.image]
version = "0.25"

[dependencies.indicatif]
version = "0.17"

[dependencies.libc]
version = "0.2"

[dependencies.mold-core]
version = "0.4.1"
package = "mold-ai-core"

[dependencies.mold-discord]
version = "0.4.1"
optional = true
package = "mold-ai-discord"

[dependencies.mold-inference]
version = "0.4.1"
package = "mold-ai-inference"

[dependencies.mold-server]
version = "0.4.1"
package = "mold-ai-server"

[dependencies.mold-tui]
version = "0.4.1"
optional = true
package = "mold-ai-tui"

[dependencies.rand]
version = "0.8"

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.sysinfo]
version = "0.34"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.toml]
version = "0.8"

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

[dependencies.viuer]
version = "0.11"
optional = true

[dependencies.walkdir]
version = "2.5.0"

[dev-dependencies.filetime]
version = "0.2"
