Rust bindings to https://github.com/leejet/stable-diffusion.cpp
53
stars
200
commits
Rust
primary language
Sep 2, 2026
updated
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();
Rust
49.8%
Dart
36.8%
C++
5.2%
CMake
5.0%
Ruby
1.1%
Rust bindings to https://github.com/leejet/stable-diffusion.cpp
53
stars
200
commits
Rust
primary language
Sep 2, 2026
updated
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();
Rust
49.8%
Dart
36.8%
C++
5.2%
CMake
5.0%
Ruby
1.1%