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
somewhere in the dependency tree.default-features = false - dynamic build default
-
Try pkg-config to link dynamically. You can also set
LCMS2_LIB_DIR
andLCMS2_INCLUDE_DIR
instead.Enables pkg-config
- parallel build default
-
Makes static builds faster
- 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.