#webp #image

sys libwebp-sys2

A handwritten raw interface to libwebp

8 releases

0.1.7 Feb 16, 2023
0.1.6 Feb 11, 2023
0.1.4 May 21, 2022
0.1.2 Jan 30, 2021
0.1.1 Mar 1, 2020

#58 in Images

Download history 1289/week @ 2023-02-15 1218/week @ 2023-02-22 1153/week @ 2023-03-01 1370/week @ 2023-03-08 1370/week @ 2023-03-15 1507/week @ 2023-03-22 1211/week @ 2023-03-29 1266/week @ 2023-04-05 1211/week @ 2023-04-12 1257/week @ 2023-04-19 1325/week @ 2023-04-26 1224/week @ 2023-05-03 1111/week @ 2023-05-10 1145/week @ 2023-05-17 1141/week @ 2023-05-24 1179/week @ 2023-05-31

4,777 downloads per month
Used in 18 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 Batch 76 SLoC Go 20 SLoC // 0.4% comments

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