Cargo Features

[dependencies]
lcms2-sys = { version = "4.0.5", default-features = false, features = ["dynamic", "parallel", "static", "static-fallback", "lcms2-strict-cgats"] }
default = dynamic, parallel, static-fallback

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

dynamic build default

Try pkg-config to link dynamically. You can also set LCMS2_LIB_DIR and LCMS2_INCLUDE_DIR instead.

Enables pkg-config

parallel build default

Makes static builds faster

Enables parallel of optional cc

static build

Prefer static build

Enables cc

static-fallback build default

Allow static build if dynamic linking fails. You can set LCMS2_STATIC env var to prefer static.

Enables cc

lcms2-strict-cgats

If building lcms2 from source, configure it to be strict about parsing CGATS.13.