libwebp-sys2

Crates.iolibwebp-sys2
lib.rslibwebp-sys2
version0.1.9
sourcesrc
created_at2020-03-01 04:08:33.490574
updated_at2023-09-14 13:50:17.00085
descriptionA handwritten raw interface to libwebp
homepagehttps://github.com/qnighy/libwebp-sys2-rs
repositoryhttps://github.com/qnighy/libwebp-sys2-rs
max_upload_size
id214088
size7,453,406
maintainers (github:rust-bus:maintainers)

documentation

README

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.
Commit count: 150

cargo fmt