# 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-server"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP inference server for mold"
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-inference/cuda"]
default = []
metal = ["mold-inference/metal"]

[lib]
name = "mold_server"
path = "src/lib.rs"
test = false

[[bin]]
name = "mold-server"
path = "src/main.rs"
test = false

[dependencies.anyhow]
version = "1"

[dependencies.axum]
version = "0.7"

[dependencies.base64]
version = "0.22"

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

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

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

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

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

[dependencies.serde_json]
version = "1"

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

[dependencies.tokio-stream]
version = "0.1"

[dependencies.tower]
version = "0.5"

[dependencies.tower-http]
version = "0.6"
features = [
    "cors",
    "trace",
]

[dependencies.tracing]
version = "0.1"

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

[dependencies.utoipa]
version = "5"
features = ["preserve_order"]
