diffusion-rs

Library Listed

High level API for stable-diffusion.cpp

Checked · Sources

Downloads
241
Dependents
2
Stars
56
Forks
12
Contributors
5
Commits
202
Latest release
0.1.20 ·

About

From the project README ·

Rust bindings to https://github.com/leejet/stable-diffusion.cpp

Features Matrix

WindowsMacLinux
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!
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.

diffusion-rs beside the projects that share a topic with it
ProjectDownloadsDependentsStarsLatest releaseRuns on (GPU)Native codeLicense
diffusion-rs This page Listed

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

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
candle-vllm App Listed

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
blazr App Listed

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
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 days
  • dormancy: last activity 2026-09-30, 40 days ago, E = 450: active
  • featured: 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

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
Adoption2 active dependents, 2 new dependents in 365 days1 not measured
Adoption measurements
SignalValueSourceFetchedCounts
Active dependents2crates.io database dumpYes
New dependents (365 days)2crates.io database dumpYes
Peak active dependents2crates.io database dumpYes
Active dependents as a share of the peak1crates.io database dumpYes
Binary downloads per releaseNot measuredYes
MaintenanceLatest human commit: 40 days ago3 not measured
Maintenance measurements
SignalValueSourceFetchedCounts
Latest human commit2026-09-30GitHub repositoryYes
Latest release2026-06-16crates.io database dumpYes
First release2024-11-02crates.io database dumpYes
Latest version0.1.20crates.io database dumpYes
Days the oldest outside issue waits for a reply126GitHub repositoryYes
Maintainer replies over 365 days7GitHub repositoryYes
Repository archivedfalseGitHub repositoryYes
Repository gonefalseGitHub repositoryYes
Release commit or manifest in the repotruecrates.io packageYes
Published docstruecrates.io database dumpYes
Latest release fails cargo checkNot measuredYes
Build check dateNot measuredYes
Build check toolchainNot measuredYes
SecurityUnpatched vulnerabilities: none
Security measurements
SignalValueSourceFetchedCounts
Unpatched vulnerabilities past the grace windownoneRustSec advisory databaseYes
RustSec unmaintained advisorynoneRustSec advisory databaseYes
Deprecation noticenonecrates.io database dumpYes
Deprecated requirementnonecrates.io database dumpYes
Distribution21 releases, 241 downloads over 30 days5 not measured
Distribution measurements
SignalValueSourceFetchedCounts
Releases21crates.io database dumpYes
Downloads over 30 days241crates.io database dumpYes
Binary downloads over the last 3 releasesNot measuredYes
Homebrew installs on request over 365 daysNot measuredYes
Repology repository familiesNot measuredYes
Docker pull growth over 90 daysNot measuredYes
Docker pulls at the growth baselineNot measuredYes
Every version a prereleasefalsecrates.io database dumpYes
Every version 0.0.xfalsecrates.io database dumpYes
Every version yankedfalsecrates.io database dumpYes
Crate deleted from crates.iofalsecrates.io database dumpYes
Repository56 stars, 12 forks, 5 contributors, 202 commits. Stars alone never qualify a project.
Repository measurements
SignalValueSourceFetchedCounts
GitHub stars56GitHub repositoryYes — one part of the repository route
GitHub forks12GitHub repositoryYes — one part of the repository route
Contributors with a GitHub account5GitHub contributorsYes — one part of the repository route
Commits on the default branch202GitHub repositoryNo
Repository's main crate left out of the entrynonecrates.io database dumpYes
Facts that never count
Facts that never count measurements
SignalValueSourceFetchedCounts
LicenseMITcrates.io database dumpNo
Runs on, from listed crates and their direct dependenciesCUDA, Metal, Vulkancrates.io database dumpNo
What shows each backendCUDA: 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 vulkancrates.io database dumpNo
Native code, from listed crates and their dependenciesBinds native code: diffusion-rs-sys, stable-diffusion. Build uses a native toolchain: bindgen, cmakecrates.io database dumpNo
Python bindings, from direct dependencies of listed cratesNo Python binding crate foundcrates.io database dumpNo
Crates that depend on a listed crate directly2crates.io database dumpNo

Corrections and review history

Report a correction

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.