https://github.com/qnighy/libwebp-sys2-rs
Rust raw interface to libwebp
https://github.com/qnighy/libwebp-sys2-rs
libwebp rust webp
Last synced: about 1 year ago
JSON representation
Rust raw interface to libwebp
- Host: GitHub
- URL: https://github.com/qnighy/libwebp-sys2-rs
- Owner: qnighy
- License: bsd-3-clause
- Created: 2020-03-01T04:37:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-02-22T07:10:42.000Z (over 1 year ago)
- Last Synced: 2025-04-15T19:03:56.005Z (about 1 year ago)
- Topics: libwebp, rust, webp
- Language: Rust
- Homepage:
- Size: 2.97 MB
- Stars: 21
- Watchers: 2
- Forks: 9
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# libwebp-sys
This is a raw interface to [the libwebp library](https://developers.google.com/speed/webp/download).
## Minimum Supported Rust Version (MSRV)
Rust 1.85.0
## Features
- `std` (default) ... enables `std`-dependent functions.
This feature merely exists for future extension.
Currently, you always need to set this feature.
- `demux` ... enables `libwebpdemux` functions.
- `mux` ... enables `libwebpmux` functions.
- `0_5` (default) ... enables functions introduced in libwebp 0.5.0.
- `0_6` (default) ... enables functions introduced in libwebp 0.6.0.
- `1_1` (default) ... enables functions introduced in libwebp 1.1.0.
- `1_2` (default) ... enables functions introduced in libwebp 1.2.0.
- `1_4` ... enables functions introduced in libwebp 1.4.0.
- `1_5` ... enables functions introduced in libwebp 1.5.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.