avif-rs 26.6.0

Encode AVIF images with SVT-AV1 and decode with dav1d, via statically-linked libavif.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Print the version of the statically linked libavif library.
//!
//! This is the smallest possible call into the native library — if it prints a version string, the prebuilt static
//! binaries were downloaded and linked correctly.
//!
//! Run with:
//!
//! ```text
//! cargo run --example version
//! ```

fn main() {
    println!("linked libavif version: {}", avif::libavif_version());
}