| Crates.io | diffusion-rs |
| lib.rs | diffusion-rs |
| version | 0.1.17 |
| created_at | 2024-11-02 12:26:06.92221+00 |
| updated_at | 2026-01-18 21:18:01.04086+00 |
| description | High level API for stable-diffusion.cpp |
| homepage | |
| repository | https://github.com/newfla/diffusion-rs |
| max_upload_size | |
| id | 1432825 |
| size | 220,952 |
Rust bindings to https://github.com/leejet/stable-diffusion.cpp
| Windows | Mac | Linux | |
|---|---|---|---|
| vulkan | ✅️ | ✅️ | ✅️ |
| metal | - | ✅️ | - |
| cuda | ✅️ | - | ✅️ |
| rocm | ❔ | - | ⛓️💥 |
| sycl | ❔ | - | ✅️ |
✅️: Working
❔: Not tested
❌: See this cargo issue
⛓️💥 : Issues when linking libraries
use diffusion_rs::{api::gen_img, preset::{Preset,PresetBuilder}};
let (config, mut model_config) = PresetBuilder::default()
.preset(Preset::SDXLTurbo1_0)
.prompt("a lovely duck drinking water from a bottle")
.build()
.unwrap();
gen_img(&config, &mut model_config).unwrap();