Skip to content

Commit 21a242e

Browse files
committed
Support avif-native decoder on unix
1 parent d137bf3 commit 21a242e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

crates/sic_core/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ edition = "2021"
1111
rust-version = "1.61"
1212

1313
[dependencies]
14-
image = { version = "0.25.5", features = ["rayon"] }
1514
imageproc = { version = "0.25.0", optional = true }
1615
ab_glyph = { version = "0.2.29", optional = true }
1716
thiserror = "2"
1817

18+
[target.'cfg(unix)'.dependencies]
19+
image = { version = "0.25.5", features = ["rayon", "avif-native"] }
20+
21+
[target.'cfg(not(unix))'.dependencies]
22+
image = { version = "0.25.5", features = ["rayon"] }
23+
1924
[features]
2025
nasm = ["image/nasm"]
2126
imageproc-ops = ["imageproc", "ab_glyph"]

0 commit comments

Comments
 (0)