[package] name = "stable-diffusion" readme = "README.md" version.workspace = true description.workspace = true license.workspace = true documentation.workspace = true repository.workspace = true homepage.workspace = true edition.workspace = true authors.workspace = true keywords.workspace = true [features] default = ["cuda"] cuda = ["candle/cuda", "candle-nn/cuda", "candle-transformers/cuda", "dep:bindgen_cuda"] cudnn = ["candle/cudnn"] flash-attn = ["cuda", "candle-transformers/flash-attn", "dep:candle-flash-attn"] mkl = ["dep:intel-mkl-src", "candle/mkl", "candle-nn/mkl", "candle-transformers/mkl"] nccl = ["cuda", "cudarc/nccl", "dep:half"] onnx = ["candle-onnx"] metal = ["candle/metal", "candle-nn/metal"] [dependencies] candle = { workspace = true } candle-nn = { workspace = true } candle-transformers = { workspace = true } candle-flash-attn = { workspace = true, optional = true } candle-onnx = { workspace = true, optional = true } cudarc = { workspace = true, optional = true } half = { workspace = true, optional = true } hf-hub = { workspace = true, features = ["tokio"] } image = { workspace = true } intel-mkl-src = { workspace = true, optional = true } safetensors = { workspace = true } tokenizers = { workspace = true, features = ["onig"] } anyhow = { workspace = true } imageproc = { workspace = true } rand = { workspace = true } [build-dependencies] anyhow = { workspace = true } bindgen_cuda = { version = "0.1.1", optional = true }