Fix features (#2234)
This commit is contained in:
parent
d710467273
commit
bc05c8c630
2 changed files with 3 additions and 2 deletions
|
|
@ -87,6 +87,7 @@ webp = ["dep:image-webp"]
|
|||
# Other features
|
||||
rayon = ["dep:rayon"] # Enables multi-threading
|
||||
nasm = ["ravif?/asm"] # Enables use of nasm by rav1e (requires nasm to be installed)
|
||||
color_quant = ["dep:color_quant"] # Enables color quantization
|
||||
avif-native = ["dep:mp4parse", "dep:dcv-color-primitives", "dep:dav1d"] # Enable native dependency libdav1d
|
||||
benchmarks = [] # Build some inline benchmarks. Useful only during development (requires nightly Rust)
|
||||
|
||||
|
|
|
|||
|
|
@ -315,7 +315,7 @@ impl ImageFormat {
|
|||
ImageFormat::Bmp => cfg!(feature = "bmp"),
|
||||
ImageFormat::Ico => cfg!(feature = "ico"),
|
||||
ImageFormat::Hdr => cfg!(feature = "hdr"),
|
||||
ImageFormat::OpenExr => cfg!(feature = "openexr"),
|
||||
ImageFormat::OpenExr => cfg!(feature = "exr"),
|
||||
ImageFormat::Pnm => cfg!(feature = "pnm"),
|
||||
ImageFormat::Farbfeld => cfg!(feature = "ff"),
|
||||
ImageFormat::Avif => cfg!(feature = "avif"),
|
||||
|
|
@ -339,7 +339,7 @@ impl ImageFormat {
|
|||
ImageFormat::Farbfeld => cfg!(feature = "ff"),
|
||||
ImageFormat::Avif => cfg!(feature = "avif"),
|
||||
ImageFormat::WebP => cfg!(feature = "webp"),
|
||||
ImageFormat::OpenExr => cfg!(feature = "openexr"),
|
||||
ImageFormat::OpenExr => cfg!(feature = "exr"),
|
||||
ImageFormat::Qoi => cfg!(feature = "qoi"),
|
||||
ImageFormat::Dds => false,
|
||||
ImageFormat::Hdr => false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue