Disabled using libvips under Windows.

This commit is contained in:
Kirill Kuzminykh
2024-02-05 00:14:56 +03:00
parent 31bdc0ecd8
commit 25ea0da382
2 changed files with 5 additions and 3 deletions
+3
View File
@@ -47,6 +47,9 @@ testing = { path = "testing" }
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
nix = { version = "0.27", default-features = false, features = ["sched"] }
[target.'cfg(all(not(target_arch = "wasm32"), not(target_os = "windows")))'.dev-dependencies]
libvips = "=1.4.3"
+2 -3
View File
@@ -86,11 +86,11 @@ pub fn resize_resize<Format, Out>(
/// Resize image with help of "libvips" crate (https://crates.io/crates/libvips)
pub fn libvips_resize<P: PixelTestingExt>(bench_group: &mut BenchGroup, has_alpha: bool) {
#[cfg(not(target_arch = "wasm32"))]
#[cfg(all(not(target_arch = "wasm32"), not(target_os = "windows")))]
vips::libvips_resize_inner::<P>(bench_group, has_alpha);
}
#[cfg(not(target_arch = "wasm32"))]
#[cfg(all(not(target_arch = "wasm32"), not(target_os = "windows")))]
mod vips {
use libvips::ops::{self, BandFormat, Kernel, ReduceOptions};
use libvips::{VipsApp, VipsImage};
@@ -99,7 +99,6 @@ mod vips {
const SAMPLE_SIZE: usize = 100;
#[cfg(not(target_arch = "wasm32"))]
pub(crate) fn libvips_resize_inner<P: PixelTestingExt>(
bench_group: &mut BenchGroup,
has_alpha: bool,