Skip to content

Commit

Permalink
Support avif-native decoder on unix
Browse files Browse the repository at this point in the history
  • Loading branch information
foresterre committed Jan 3, 2025
1 parent d137bf3 commit 21a242e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/sic_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 21a242e

Please sign in to comment.