Enet4 / dicom-rs

Rust implementation of the DICOM standard
https://dicom-rs.github.io
Apache License 2.0
403 stars 75 forks source link

Adjust features for easier building on Windows #433

Closed Enet4 closed 8 months ago

Enet4 commented 8 months ago

This attempts to mitigate the build error when targeting Windows without Cargo feature changes (#432). Removing feature openjp2 from the native feature list is a breaking change, but we can offer alternative feature listings for Windows.

So instead of this:

cargo build --no-default-features --features=cli,rle,jpeg,rayon

One can instead do this:

cargo build --no-default-features --features=cli,default_windows

Or this, for the reference implementation of OpenJPEG:

cargo build --no-default-features --features=cli,default_windows,openjpeg-sys,openjpeg-sys-threads

Summary