Skip to content

Commit

Permalink
Added support for multi-thread image processing with the help of `ray…
Browse files Browse the repository at this point in the history
…on` crate.
  • Loading branch information
Cykooz committed Oct 1, 2024
1 parent 8fec02b commit a8aa894
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ rayon = { version = "1.10", optional = true }
## type from the `image` crate.
image = ["dep:image", "dep:bytemuck"]
## This feature enables image processing in `rayon` thread pool.
rayon = ["dep:rayon", "resize/rayon", "testing/rayon"]
rayon = ["dep:rayon", "resize/rayon", "image/rayon", "testing/rayon"]
for_testing = ["image"]
only_u8x4 = ["testing/only_u8x4"] # This can be used to experiment with the crate's code.

Expand Down Expand Up @@ -138,7 +138,7 @@ harness = false


[profile.test]
#opt-level = 2
opt-level = 3
incremental = true


Expand Down
4 changes: 2 additions & 2 deletions testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ edition = "2021"

[dependencies]
fast_image_resize = { path = "..", features = ["for_testing"] }
image = "0.25.2"
image = { version = "0.25.2", default-features = false, features = ["png"] }


[features]
only_u8x4 = [] # This can be used to experiment with the crate's code.
rayon = ["fast_image_resize/rayon"]
rayon = ["fast_image_resize/rayon", "image/rayon"]


[package.metadata.release]
Expand Down

0 comments on commit a8aa894

Please sign in to comment.