11 releases

0.1.10 Dec 21, 2024
0.1.9 Sep 14, 2023
0.1.7 Feb 16, 2023
0.1.4 May 21, 2022
0.1.1 Mar 1, 2020

#69 in Images

Download history 2958/week @ 2024-10-14 3195/week @ 2024-10-21 3315/week @ 2024-10-28 2784/week @ 2024-11-04 2856/week @ 2024-11-11 2552/week @ 2024-11-18 2619/week @ 2024-11-25 2924/week @ 2024-12-02 2754/week @ 2024-12-09 2649/week @ 2024-12-16 1697/week @ 2024-12-23 2383/week @ 2024-12-30 3173/week @ 2025-01-06 2740/week @ 2025-01-13 2658/week @ 2025-01-20 2377/week @ 2025-01-27

11,259 downloads per month
Used in 21 crates (5 directly)

BSD-3-Clause

4MB
76K SLoC

C 71K SLoC // 0.1% comments Rust 1.5K SLoC // 0.0% comments C++ 1K SLoC // 0.2% comments Shell 1K SLoC // 0.2% comments Automake 581 SLoC // 0.0% comments Python 386 SLoC // 0.1% comments M4 168 SLoC // 0.4% comments Batch 76 SLoC Go 20 SLoC // 0.4% comments

Contains (JAR file, 59KB) c_src/gradle/wrapper/gradle-wrapper.jar, (obscure autoconf code, 30KB) c_src/configure.ac, (JAR file, 3KB) c_src/swig/libwebp.jar

libwebp-sys

This is a raw interface to the libwebp library.

Minimum Supported Rust Version (MSRV)

Rust 1.31.0

Features

  • demux ... enables libwebpdemux functions.
  • mux ... enables libwebpmux functions.
  • 0_5 ... enables functions introduced in libwebp 0.5.0.
  • 0_6 ... enables functions introduced in libwebp 0.6.0.
  • 1_1 ... enables functions introduced in libwebp 1.1.0.
  • 1_2 ... enables functions introduced in libwebp 1.2.0.
  • static ... statically link against the bundled libwebp.
  • extern-types ... enables #![feature(extern_types)].

Linking

If libwebp is found in the system, it links against the library. Otherwise it builds and links against the bundled libwebp.

In these cases, static link is preferred:

  • For musl target.
  • When cross-compiling.
  • static feature is turned on.
  • LIBWEBP_SYS_STATIC environment variable is set to 1 when building.

Dependencies