valo-codec-software 0.6.1

Portable image codecs for Valo: PNG, JPEG, GIF, WebP and BMP decoded on the CPU
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Defines `cfg(animation)`: true when any format with animation support is compiled in, so
//! the compositing path is gated once rather than by repeating the feature list.
fn main() {
    println!("cargo::rustc-check-cfg=cfg(animation)");
    let animated = [
        "CARGO_FEATURE_GIF",
        "CARGO_FEATURE_PNG",
        "CARGO_FEATURE_WEBP",
    ];
    if animated.iter().any(|name| std::env::var_os(name).is_some()) {
        println!("cargo::rustc-cfg=animation");
    }
}