-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
167 lines (135 loc) · 4.25 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
[package]
name = "mzdata"
version = "0.37.0"
edition = "2018"
keywords = ['mass-spectrometry', 'mzml', 'mgf']
categories = ["science", "parser-implementations", "data-structures"]
description = "A library to read mass spectrometry data formats"
license = "Apache-2.0"
repository = "https://github.com/mobiusklein/mzdata"
documentation = "https://docs.rs/mzdata"
exclude = ["tmp/*", "test/data/*"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "mzdata"
# src = "src/main.rs"
[[example]]
name = "async_mzcat"
required-features = ["async"]
[[example]]
name = "mzcat"
required-features = ["parallelism"]
[[example]]
name = "averaging_writer"
required-features = ["parallelism", "mzsignal", "nalgebra"]
[[example]]
name = "random_access_iter"
required-features = ["nalgebra"]
[lib]
name = "mzdata"
# src = "src/lib.rs"
[profile.release]
lto = true
debug = true
[features]
# default = ["nalgebra", "parallelism", "mzsignal", "zlib-ng-compat"]
default = ["zlib-ng-compat"]
openblas = ["mzsignal", "mzsignal/openblas"]
netlib = ["mzsignal", "mzsignal/netlib"]
intel-mkl = ["mzsignal", "mzsignal/intel-mkl"]
nalgebra = ["mzsignal", "mzsignal/nalgebra"]
parallelism = ["rayon", "mzsignal/parallelism"]
# The zlib feature makes the code faster unoptimized, but with LTO the default
# algorithm is faster on tests. Odds are on real data, this will vary with the
# size of the data being shuttled back and forth, and on the quality of the data
# (de)compression.
zlib = ["flate2/zlib"]
zlib-ng-compat = ["flate2/zlib-ng-compat"]
zlib-ng = ["flate2/zlib-ng"]
miniz_oxide = ["flate2/rust_backend"]
# Enables reading mzMLb
mzmlb = ["hdf5", "ndarray", "hdf5-sys"]
# Enable compiling and statically linking HDF5, which requires building
# libz-sys in static mode, which conflicts with flate2/zlib-ng-compat
# but not flate2/zlib
hdf5_static = ["mzmlb", "hdf5-sys/static", "hdf5-sys/zlib", "libz-sys"]
thermo = [
"thermorawfilereader",
"thermorawfilereader/net8_0",
"thermorawfilereader/nethost-download",
]
doc-only = []
async = ["tokio", "quick-xml/async-tokio"]
proxi = ["reqwest"]
proxi-async = ["proxi", "futures"]
[dependencies]
regex = "1"
lazy_static = "1.4.0"
serde = { version = "1.0.204", features = ["derive"] }
serde_json = "1.0.120"
quick-xml = { version = "0.30", features = ["serialize"] }
num-traits = "0.2"
log = "0.4.20"
indexmap = { version = "2.0.0", features = ["serde"] }
chrono = "0.4.37"
bitflags = "2.5.0"
identity-hash = "0.1.0"
thiserror = "2.0.2"
mzpeaks = { version = ">=0.23.0,<1.0.0" }
# Internal parallelism
rayon = { version = ">=1.8.0,<2.0", optional = true }
# Internal signal processing
mzsignal = { version = ">=0.27.0,<1.0.0", default-features = false, optional = true, features = [
'avx',
] }
# Checksums and hashing
sha1 = "0.10.6"
md5 = "0.7.0"
base16ct = { version = "0.2.0", features = ["alloc"] }
# Bytes and compression
flate2 = { version = "1.0.20" }
numpress = { version = "1.1.0", optional = true }
bytemuck = { version = "1.18.0", features = ["extern_crate_alloc"] }
base64-simd = "0.8.0"
# Async reader features
tokio = { version = "1.32.0", optional = true, features = [
"macros",
"rt",
"fs",
"rt-multi-thread",
] }
# mzMLb-related features
hdf5 = { version = "0.8.1", optional = true, features = ["blosc", "lzf"] }
hdf5-sys = { version = "0.8.1", optional = true }
libz-sys = { version = "1.1", default-features = false, features = [
"static",
], optional = true }
ndarray = { version = "0.15.6", optional = true }
filename = { version = "0.1.1", optional = true }
# PROXI-related behaviors
reqwest = { version = "0.12", features = ["json", "blocking"], optional = true }
futures = { version = "0.3", optional = true }
# Thermo RAW-related features
thermorawfilereader = { version = "0.3.0", default-features = false, optional = true }
[dev-dependencies]
criterion = { version = "0.5.1", features = ["html_reports"] }
test-log = "0.2.12 "
env_logger = "0.10.0"
tempfile = "3.10"
clap = { version = "4.4.11", features = ["derive"] }
[[bench]]
name = "mzml"
harness = false
[package.metadata.docs.rs]
features = [
"parallelism",
"mzsignal",
"nalgebra",
"mzmlb",
"async",
"proxi",
"proxi-async",
# "thermo",
"doc-only",
]
no-default-features = true