# 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-inference"
version = "0.5.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Candle-based inference engine for mold — FLUX, SDXL, SD3.5, Z-Image diffusion models"
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 = [
    "candle-core/cuda",
    "candle-nn/cuda",
    "candle-transformers/cuda",
]
default = []
expand = []
metal = [
    "candle-core/metal",
    "candle-nn/metal",
    "candle-transformers/metal",
]

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

[dependencies.anyhow]
version = "1"

[dependencies.candle-core]
version = "0.9.3"
package = "candle-core-mold"

[dependencies.candle-nn]
version = "0.9.3"
package = "candle-nn-mold"

[dependencies.candle-transformers]
version = "0.9.3"
package = "candle-transformers-mold"

[dependencies.image]
version = "0.25"

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

[dependencies.png]
version = "0.18"

[dependencies.rand]
version = "0.8"

[dependencies.rand_distr]
version = "0.4"

[dependencies.safetensors]
version = "0.4"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokenizers]
version = "0.21"

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

[dependencies.tracing]
version = "0.1"
