Cargo Features

[dependencies]
jpeg2k = { version = "0.9.1", default-features = false, features = ["strict-mode", "file-io", "threads", "image", "openjpeg-sys", "openjp2", "serde"] }
default = file-io, image, openjpeg-sys, threads

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

strict-mode
file-io default

Enable file IO APIs.

Enables file-io of optional openjp2

threads default

Enables threads of optional openjpeg-sys

openjpeg-sys:

Compile OpenJPEG with thread support.

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.

image default
openjpeg-sys default
openjp2 implicit feature

Enables openjp2

openjp2:

Rust port of Openjpeg

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework