10 releases

0.1.9 Sep 14, 2023
0.1.8 Sep 12, 2023
0.1.7 Feb 16, 2023
0.1.4 May 21, 2022
0.1.1 Mar 1, 2020

#71 in Images

Download history 1787/week @ 2024-03-14 1790/week @ 2024-03-21 2129/week @ 2024-03-28 2189/week @ 2024-04-04 2270/week @ 2024-04-11 1934/week @ 2024-04-18 2372/week @ 2024-04-25 2008/week @ 2024-05-02 2233/week @ 2024-05-09 2326/week @ 2024-05-16 2766/week @ 2024-05-23 1678/week @ 2024-05-30 1771/week @ 2024-06-06 2142/week @ 2024-06-13 2005/week @ 2024-06-20 1716/week @ 2024-06-27

7,958 downloads per month
Used in 20 crates (4 directly)

BSD-3-Clause

3.5MB
68K SLoC

C 64K SLoC // 0.1% comments Rust 1.5K SLoC // 0.0% comments Shell 1K SLoC // 0.2% comments Automake 578 SLoC // 0.0% comments Python 386 SLoC // 0.1% comments C++ 262 SLoC // 0.2% 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, 29KB) 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