forked from Enet4/dicom-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
82 lines (70 loc) · 2.45 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[package]
name = "dicom-pixeldata"
version = "0.8.0"
authors = ["Eduardo Pinho <enet4mikeenet@gmail.com>", "Peter Evers <pevers90@gmail.com>"]
edition = "2018"
rust-version = "1.72.0"
license = "MIT OR Apache-2.0"
description = "A high-level API for decoding DICOM objects into images and ndarrays"
repository = "https://github.com/Enet4/dicom-rs"
categories = ["multimedia::images"]
keywords = ["dicom"]
readme = "README.md"
[[bin]]
name = "dicom-transcode"
path = "src/bin/dicom-transcode.rs"
required-features = ["cli"]
[dependencies]
dicom-object = { path = "../object", version = "0.8.0" }
dicom-core = { path = "../core", version = "0.8.0" }
dicom-encoding = { path = "../encoding", version = "0.8.0" }
dicom-transfer-syntax-registry = { path = "../transfer-syntax-registry", version = "0.8.0" }
dicom-dictionary-std = { path = "../dictionary-std", version = "0.8.0" }
snafu = "0.8"
byteorder = "1.4.3"
gdcm-rs = { version = "0.6", optional = true }
rayon = { version = "1.5.0", optional = true }
ndarray = { version = "0.15.1", optional = true }
num-traits = "0.2.12"
tracing = "0.1.34"
[dependencies.image]
version = "0.25.1"
default-features = false
features = ["jpeg", "png", "pnm", "tiff", "webp", "bmp", "exr"]
optional = true
[dependencies.clap]
version = "4.4.2"
optional = true
features = ["cargo", "derive"]
[dependencies.tracing-subscriber]
version = "0.3.17"
optional = true
[dev-dependencies]
rstest = "0.23"
dicom-test-files = "0.3"
[features]
default = ["rayon", "native"]
ndarray = ["dep:ndarray"]
image = ["dep:image"]
# Rust native image codec implementations
native = ["dicom-transfer-syntax-registry/native", "jpeg", "rle"]
# native JPEG codec implementation
jpeg = ["dicom-transfer-syntax-registry/jpeg"]
# native JPEG XL codec implementation
jpegxl = ["dicom-transfer-syntax-registry/jpegxl"]
# native RLE lossless codec implementation
rle = ["dicom-transfer-syntax-registry/rle"]
# JPEG 2000 decoding via OpenJPEG static linking
openjpeg-sys = ["dicom-transfer-syntax-registry/openjpeg-sys"]
# JPEG 2000 decoding via Rust port of OpenJPEG
openjp2 = ["dicom-transfer-syntax-registry/openjp2"]
# JpegLS via CharLS
charls = ["dicom-transfer-syntax-registry/charls"]
# replace pixel data decoding to use GDCM
gdcm = ["gdcm-rs"]
# use Rayon for image decoding
rayon = ["dep:rayon", "image?/rayon", "dicom-transfer-syntax-registry/rayon"]
# enable command line tools
cli = ["dep:clap", "dep:tracing-subscriber"]
[package.metadata.docs.rs]
features = ["image", "ndarray"]