Cargo Features

[dependencies]
dicom-transfer-syntax-registry = { version = "0.7.0", default-features = false, features = ["inventory-registry", "native", "native_windows", "jpeg", "openjp2", "rle", "rayon", "simd", "openjpeg-sys", "openjpeg-sys-threads"] }
default = rayon, simd

These default features are set whenever dicom-transfer-syntax-registry is added without default-features = false somewhere in the dependency tree.

inventory-registry

inventory for compile time plugin-based transfer syntax registration

Enables inventory-registry of dicom-encoding

native = jpeg, rle

natively implemented image encodings

native_windows = jpeg, rle

native implementations that work on Windows

jpeg native? native_windows? = jpeg-decoder, jpeg-encoder

native JPEG support

Affects adapters::jpeg, entries::JPEG_BASELINE, entries::JPEG_EXTENDED, entries::JPEG_LOSSLESS_NON_HIERARCHICAL, entries::JPEG_LOSSLESS_NON_HIERARCHICAL_FIRST_ORDER_PREDICTION

openjp2

JPEG 2000 support via the OpenJPEG Rust port,
works on Linux and a few other platforms

Enables openjp2 of jpeg2k

Affects adapters::jpeg2k, entries::JPEG_2000_IMAGE_COMPRESSION_LOSSLESS_ONLY, entries::JPEG_2000_IMAGE_COMPRESSION, entries::JPEG_2000_PART2_MULTI_COMPONENT_IMAGE_COMPRESSION_LOSSLESS_ONLY, entries::JPEG_2000_PART2_MULTI_COMPONENT_IMAGE_COMPRESSION

rle native? native_windows?

native RLE lossless support

Affects adapters::rle_lossless, entries::RLE_LOSSLESS

rayon default openjpeg-sys-threads?

enable Rayon for JPEG decoding

Enables rayon of optional jpeg-decoder

simd default

enable SIMD operations for JPEG encoding

Enables simd of optional jpeg-encoder

openjpeg-sys

JPEG 2000 support via the OpenJPEG native bindings, conflicts with openjp2

Enables openjpeg-sys of jpeg2k

Affects adapters::jpeg2k, entries::JPEG_2000_IMAGE_COMPRESSION_LOSSLESS_ONLY, entries::JPEG_2000_IMAGE_COMPRESSION, entries::JPEG_2000_PART2_MULTI_COMPONENT_IMAGE_COMPRESSION_LOSSLESS_ONLY, entries::JPEG_2000_PART2_MULTI_COMPONENT_IMAGE_COMPRESSION

openjpeg-sys-threads = rayon

build OpenJPEG with multithreading,
implies "rayon"

Enables threads of optional jpeg2k

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.

jpeg-decoder jpeg?
jpeg-encoder jpeg?