README.md
1# libwebp-sys
2
3This is a raw interface to [the libwebp library](https://developers.google.com/speed/webp/download).
4
5## Minimum Supported Rust Version (MSRV)
6
7Rust 1.31.0
8
9## Features
10
11- `demux` ... enables `libwebpdemux` functions.
12- `mux` ... enables `libwebpmux` functions.
13- `0_5` ... enables functions introduced in libwebp 0.5.0.
14- `0_6` ... enables functions introduced in libwebp 0.6.0.
15- `1_1` ... enables functions introduced in libwebp 1.1.0.
16- `static` ... statically link against the bundled libwebp.
17- `extern-types` ... enables `#![feature(extern_types)]`.
18
19## Linking
20
21If libwebp is found in the system, it links against the library.
22Otherwise it builds and links against the bundled libwebp.
23
24In these cases, static link is preferred:
25
26- For musl target.
27- When cross-compiling.
28- `static` feature is turned on.
29- `LIBWEBP_SYS_STATIC` environment variable is set to `1` when building.
30