Fixed compat module.

This commit is contained in:
Kirill Kuzminykh
2026-01-07 16:00:22 +03:00
parent 1206c38104
commit 0bf866f9e8
+6 -2
View File
@@ -28,7 +28,11 @@ document-features = { version = "0.2.12", optional = true }
image = { version = "0.25.6", optional = true, default-features = false }
bytemuck = { version = "1.24", optional = true }
rayon = { version = "1.11", optional = true }
cpufeatures = { version = "0.2.17", optional = true }
[target.'cfg(all(not(target_arch = "wasm32"), features = "no_std"))'.dependencies]
cpufeatures = "0.2.17"
[features]
default = ["std"]
@@ -38,7 +42,7 @@ std = ["thiserror/std", "num-traits/std", "dep:document-features"]
## To prevent conflicts with the `std` feature it is not used for
## conditional compilation. It just installs additional dependencies
## or activates some features of existing dependencies.
no_std = ["num-traits/libm", "dep:cpufeatures"]
no_std = ["num-traits/libm"]
## Enable this feature to implement traits [IntoImageView](crate::IntoImageView) and
## [IntoImageViewMut](crate::IntoImageViewMut) for the
## [DynamicImage](https://docs.rs/image/latest/image/enum.DynamicImage.html)