diffusion-rs
Library Listed
High level API for stable-diffusion.cpp
- Downloads
- 241
- Dependents
- 2
- Stars
- 56
- Forks
- 12
- Contributors
- 5
- Commits
- 202
- Latest release
- 0.1.20 ·
About
Rust bindings to https://github.com/leejet/stable-diffusion.cpp
Features Matrix
| Windows | Mac | Linux | |
|---|---|---|---|
| vulkan | ✅️ | ✅️ | ✅️ |
| metal | - | ✅️ | - |
| cuda | ✅️ | - | ✅️ |
| rocm | ❔ | - | ⛓️💥 |
| sycl | ❔ | - | ✅️ |
✅️: Working
❔: Not tested
❌: See this cargo issue
⛓️💥 : Issues when linking libraries
Usage
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();
Troubleshooting
- Something other than Windows/Linux isn't working!
- I don't have a way to test these platforms, so I can't really help you.
- If you can fix the issue, please open a PR!
Compatibility
- Runs on
- CUDA, Metal, Vulkan
What shows it
- CUDA: diffusion-rs feature cuda, diffusion-rs-sys feature cuda
- Metal: diffusion-rs feature metal, diffusion-rs-sys feature metal
- Vulkan: diffusion-rs feature vulkan, diffusion-rs-sys feature vulkan
- Native code
- Required
- Binds native code: diffusion-rs-sys, stable-diffusion
- Build uses a native toolchain: bindgen, cmake
- Python bindings
- No Python binding crate found
- License
- MIT
Compare with similar projects
Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days. ML Rust runs this catalogue, so its closest project always gets a row.
| Project | Downloads | Dependents | Stars | Latest release | Runs on (GPU) | Native code | License |
|---|---|---|---|---|---|---|---|
|
High level API for stable-diffusion.cpp |
241 downloads over 30 days | 2 | 56 | 0.1.20 | CUDA, Metal, Vulkan | Binds native code: diffusion-rs-sys, stable-diffusion. Build uses a native toolchain: bindgen, cmake | MIT |
|
llama-cpp-rs Featured
llama.cpp bindings for Rust |
341,382 downloads over 30 days | 98 | 665 | 0.1.161 | CUDA, WebGPU, Metal, ROCm, Vulkan | Binds native code: llama. Build uses a native toolchain: bindgen, cc, cmake | Apache-2.0 OR MIT |
|
openvino-rs Listed
High-level bindings for OpenVINO. |
218,765 downloads over 30 days | 6 | 143 | 0.11.1 | GPU support unknown | Binds native code: openvino-genai-sys, openvino-sys, openvino_c_api, openvino_genai_c_api | Apache-2.0 |
|
llama-gguf Listed
A high-performance Rust implementation of llama.cpp - LLM inference engine with full GGUF support |
1,787 downloads over 30 days | 3 | 21 | 0.14.0 | CUDA, Metal, Vulkan | Binds native code: hailort-sys (feature hailo), libsqlite3-sys (feature rag-sqlite) | Apache-2.0 OR MIT |
|
aha Listed
aha model inference library, now supports Qwen(2.5VL/3/3VL/3.5/ASR/3Embedding/3Reranker), MiniCPM(4/5), VoxCPM(0.5B/1.5/2), DeepSeek-OCR/2, Hunyuan-OCR, PaddleOCR-VL/1.5, RMBG2.0, GLM(ASR-Nano-2512/OCR), Fun-ASR-Nano-2512, LFM(2/2.5/2VL/2.5VL) |
180 downloads over 30 days | 0 | 396 | 0.2.6 | CUDA, Metal | Binds native code: sentencepiece-sys, ffmpeg-sys-next (feature ffmpeg) | Apache-2.0 |
|
Efficent platform for inference and serving local LLMs including an OpenAI compatible API server. |
138 binary downloads per release | Not applicable | 739 | Not measured | Not measured | MIT | |
|
Inference server for LLMs, speech and embeddings: OpenAI-compatible routes with streaming, plus speech synthesis (TTS) and transcription (ASR). Serves Llama, Mistral, Qwen, Mamba2, MLA+MoE and hybrid models from SafeTensors, AWQ, GPTQ and GGUF. |
8 binary downloads per release | Not applicable | 7 | 0.7.1 | CUDA, WebGPU | Binds native code: ring (feature distributed) | Apache-2.0 |
All projects in Run and serve modelsAll projects in Images and vision
Why ListedNo archive, New or Featured rule places it, so it is Listed.
What it lacks for Featured
- It has 2 active dependents and 2 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days. The repository route reads 56 stars, 12 forks and 5 contributors. It needs 4,539 stars, 434 forks and 79 contributors together.
What else the check found
- The last activity is on 30 Sep 2026, 40 days ago. The rules expect an update within 450 days. Dormancy rule
Exact rules: Listed, Featured library. The check on applied thresholds version 9.
Every rule outcome, as the check records it
expected-interval: version 0.1.20 base 450: E = 450 daysdormancy: last activity 2026-09-30, 40 days ago, E = 450: activefeatured: not featured: active_users 2 < 11 and new_adopters 2 < 9 and repository route stars 56 (needs 4539), forks 12 (needs 434), contributors 5 (needs 79)listed: listed: no archive, new or featured rule applies
Crates2 crates
- diffusion-rs Primary
- diffusion-rs-sys
Measurements and sources
Each signal row shows the raw value, its source and the fetch date. The Sources list gathers every distinct source on this page. Movement needs more history.
Sources6 sources
- Description: the crates.io description
- crates.io database dump, fetched
- RustSec advisory database, fetched
- GitHub repository, fetched
- crates.io package, fetched
- GitHub contributors, fetched
Adoption2 active dependents, 2 new dependents in 365 days1 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Active dependents | 2 | crates.io database dump | Yes | |
| New dependents (365 days) | 2 | crates.io database dump | Yes | |
| Peak active dependents | 2 | crates.io database dump | Yes | |
| Active dependents as a share of the peak | 1 | crates.io database dump | Yes | |
| Binary downloads per release | Not measured | Yes |
MaintenanceLatest human commit: 40 days ago3 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Latest human commit | 2026-09-30 | GitHub repository | Yes | |
| Latest release | 2026-06-16 | crates.io database dump | Yes | |
| First release | 2024-11-02 | crates.io database dump | Yes | |
| Latest version | 0.1.20 | crates.io database dump | Yes | |
| Days the oldest outside issue waits for a reply | 126 | GitHub repository | Yes | |
| Maintainer replies over 365 days | 7 | GitHub repository | Yes | |
| Repository archived | false | GitHub repository | Yes | |
| Repository gone | false | GitHub repository | Yes | |
| Release commit or manifest in the repo | true | crates.io package | Yes | |
| Published docs | true | crates.io database dump | Yes | |
| Latest release fails cargo check | Not measured | Yes | ||
| Build check date | Not measured | Yes | ||
| Build check toolchain | Not measured | Yes |
SecurityUnpatched vulnerabilities: none
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Unpatched vulnerabilities past the grace window | none | RustSec advisory database | Yes | |
| RustSec unmaintained advisory | none | RustSec advisory database | Yes | |
| Deprecation notice | none | crates.io database dump | Yes | |
| Deprecated requirement | none | crates.io database dump | Yes |
Distribution21 releases, 241 downloads over 30 days5 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Releases | 21 | crates.io database dump | Yes | |
| Downloads over 30 days | 241 | crates.io database dump | Yes | |
| Binary downloads over the last 3 releases | Not measured | Yes | ||
| Homebrew installs on request over 365 days | Not measured | Yes | ||
| Repology repository families | Not measured | Yes | ||
| Docker pull growth over 90 days | Not measured | Yes | ||
| Docker pulls at the growth baseline | Not measured | Yes | ||
| Every version a prerelease | false | crates.io database dump | Yes | |
| Every version 0.0.x | false | crates.io database dump | Yes | |
| Every version yanked | false | crates.io database dump | Yes | |
| Crate deleted from crates.io | false | crates.io database dump | Yes |
Repository56 stars, 12 forks, 5 contributors, 202 commits. Stars alone never qualify a project.
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| GitHub stars | 56 | GitHub repository | Yes — one part of the repository route | |
| GitHub forks | 12 | GitHub repository | Yes — one part of the repository route | |
| Contributors with a GitHub account | 5 | GitHub contributors | Yes — one part of the repository route | |
| Commits on the default branch | 202 | GitHub repository | No | |
| Repository's main crate left out of the entry | none | crates.io database dump | Yes |
Facts that never count
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| License | MIT | crates.io database dump | No | |
| Runs on, from listed crates and their direct dependencies | CUDA, Metal, Vulkan | crates.io database dump | No | |
| What shows each backend | CUDA: diffusion-rs feature cuda, diffusion-rs-sys feature cuda; Metal: diffusion-rs feature metal, diffusion-rs-sys feature metal; Vulkan: diffusion-rs feature vulkan, diffusion-rs-sys feature vulkan | crates.io database dump | No | |
| Native code, from listed crates and their dependencies | Binds native code: diffusion-rs-sys, stable-diffusion. Build uses a native toolchain: bindgen, cmake | crates.io database dump | No | |
| Python bindings, from direct dependencies of listed crates | No Python binding crate found | crates.io database dump | No | |
| Crates that depend on a listed crate directly | 2 | crates.io database dump | No |
Corrections and review history
No correction applies to this entry.
Judgments
A judgment enters only through an approved issue and a merged pull request.
No judgment applies to this entry.