Rust Rewrite Index

libwebp

Lossy compression of digital photographic images (shared library)

Rust efforts

Research record · 2026-11-29

Searched libwebp Rust source ports, WebP encoders/decoders, C ABI replacements and wrappers. SafeLibs and Ferrisma document direct port attempts, while libwebp and webpx crates bind C; decoder-only projects do not cover the whole library.

Original source check. The packaged source scan found zero files with the .rs suffix. This covers the Debian 13 snapshot and excludes common vendor directories. Independent repositories are outside this count.

Partial rewrite

SafeLibs libwebp

Experimental Ubuntu 24.04 Rust libwebp package port targeting the C ABI; SafeLibs reports a test stage and says its generated ports were not human-audited.

Evidence checked 2026-11-29
Partial rewrite

Ferrisma libwebp

Mechanical Rust translation targeting libwebp 1.6.0, including encoder, decoder, mux and demux; project reports differential evidence and documents unsafe ABI/SIMD components.

Evidence checked 2026-11-29
Rust component

verilith-webp

Decoder-focused project with a libwebp-compatible decode C API; it does not implement an encoder. Proof claims apply to its stated decoder specification.

Evidence checked 2026-11-29

Project structure

Image Compression format, based on the VP8 codec. WebP uses the modern VP8 compression format to deliver efficient compression of images for the web. More than 30% extra gain over optimized JPEG, for same quality, is not unusual.

Inside the source tree

Source files by extension in this snapshot · C (156), C++ (13), Python (3), Go (1)

Selected components packaged from this source in Debian 13.

  • libwebp7 · Lossy compression of digital photographic images (shared library)
  • libwebpmux3 · Lossy compression of digital photographic images (libwebpmux library)
  • libwebpdemux2 · Lossy compression of digital photographic images (libwebpdemux library)
  • libwebpdecoder3 · Library for the WebP graphics format (decode only)
  • webp · Lossy compression of digital photographic images (utilities)
  • libsharpyuv0 · Library for sharp RGB to YUV conversion