diff --git a/crates/sic_core/Cargo.toml b/crates/sic_core/Cargo.toml index bbe06d6da..acfcd9fef 100644 --- a/crates/sic_core/Cargo.toml +++ b/crates/sic_core/Cargo.toml @@ -11,11 +11,16 @@ edition = "2021" rust-version = "1.61" [dependencies] -image = { version = "0.25.5", features = ["rayon"] } imageproc = { version = "0.25.0", optional = true } ab_glyph = { version = "0.2.29", optional = true } thiserror = "2" +[target.'cfg(unix)'.dependencies] +image = { version = "0.25.5", features = ["rayon", "avif-native"] } + +[target.'cfg(not(unix))'.dependencies] +image = { version = "0.25.5", features = ["rayon"] } + [features] nasm = ["image/nasm"] imageproc-ops = ["imageproc", "ab_glyph"]