Cargo Features

[dependencies]
image2 = { version = "1.9.2", default-features = false, features = ["window", "oiio", "oiio-custom", "parallel", "serialize", "text", "glfw-sys", "magick", "opengl", "mmap"] }
default = mmap, oiio, parallel, text

These default features are set whenever image2 is added without default-features = false somewhere in the dependency tree.

window = glfw, opengl

Affects image2::window

oiio default = cpp, cpp_build

Affects io::oiio

oiio-custom = cpp, cpp_build
parallel default = rayon
serialize = serde

Enables serde of euclid

text default = rusttype

Affects image2::text

glfw-sys

Enables glfw-sys of glfw ^0.51

magick

Affects io::magick

opengl window? = glow

Affects image2::texture

mmap default = memmap2

Affects image_data::mmap

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

memmap2 mmap

Enables memmap2 ^0.5

cpp oiio oiio-custom?
rayon parallel
serde serialize?
rusttype text
glfw glfw-sys? window?

Enables glfw ^0.51

glow opengl?

Enables glow ^0.12

cpp_build build oiio oiio-custom?