Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Oct 13, 2023
1 parent f4eafe7 commit 6e98057
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "imagequant"
version = "4.2.1"
version = "4.2.2"
description = "Convert 24/32-bit images to 8-bit palette with alpha channel.\nFor lossy PNG compression and high-quality GIF images\nDual-licensed like pngquant. See https://pngquant.org for details."
authors = ["Kornel Lesiński <[email protected]>"]
license = "GPL-3.0-or-later"
Expand All @@ -16,7 +16,7 @@ rust-version = "1.63"

[features]
default = ["threads"]
threads = ["dep:rayon", "dep:num_cpus", "dep:thread_local"]
threads = ["dep:rayon", "dep:thread_local"]
# supports up to 2048 colors for palettes, but NOT FOR REMAPPING
large_palettes = []

Expand All @@ -36,7 +36,6 @@ rgb = { version = "0.8.33", features = ["argb"] }
rayon = { version = "1.5.3", optional = true }
thread_local = { version = "1.1.4", optional = true }
once_cell = "1.13.1"
num_cpus = { version = "1.13.1", optional = true }

[dev-dependencies]
lodepng = "3.7.0"
Expand Down
2 changes: 1 addition & 1 deletion imagequant-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "imagequant-sys"
version = "4.0.2"
version = "4.0.3"
description = "Convert 24/32-bit images to 8-bit palette with alpha channel.\nC API/FFI libimagequant that powers pngquant lossy PNG compressor.\n\nDual-licensed like pngquant. See https://pngquant.org for details."
authors = ["Kornel Lesiński <[email protected]>"]
license = "GPL-3.0-or-later"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ mod rayoff;

#[cfg(feature = "threads")]
mod rayoff {
pub(crate) use num_cpus::get as num_cpus;
pub(crate) fn num_cpus() -> usize { std::thread::available_parallelism().map(|n| n.get()).unwrap_or(1) }
pub(crate) use rayon::prelude::{ParallelBridge, ParallelIterator, ParallelSliceMut};
pub(crate) use rayon::scope;
pub(crate) use thread_local::ThreadLocal;
Expand Down

0 comments on commit 6e98057

Please sign in to comment.