-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathCargo.toml
More file actions
213 lines (146 loc) · 4.7 KB
/
Copy pathCargo.toml
File metadata and controls
213 lines (146 loc) · 4.7 KB
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
[workspace]
members = [
"resizer",
]
[package]
name = "fast_image_resize"
version = "6.1.0"
authors = ["Kirill Kuzminykh <cykooz@gmail.com>"]
edition = "2021"
rust-version = "1.87.0"
license = "MIT OR Apache-2.0"
description = "Library for fast image resizing with using of SIMD instructions"
readme = "README.md"
keywords = ["image", "resize", "no_std"]
repository = "https://github.com/cykooz/fast_image_resize"
documentation = "https://docs.rs/fast_image_resize"
exclude = ["/data", "/.github"]
[dependencies]
cfg-if = "1.0"
num-traits = { version = "0.2.19", default-features = false }
thiserror = { version = "2.0", default-features = false }
# Optional dependencies
document-features = { version = "0.2.12", optional = true }
image = { version = "0.25.6", optional = true, default-features = false }
bytemuck = { version = "1.25", optional = true }
rayon = { version = "1.12", optional = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
cpufeatures = { version = "0.3.0", optional = true }
[features]
default = ["std"]
## It must be enabled to use the crate in `std` environment.
std = ["thiserror/std", "num-traits/std", "dep:document-features"]
## This feature must be enabled to use the crate in `no_std` environment.
## To prevent conflicts with the `std` feature it is not used for
## conditional compilation. It just installs additional dependencies
## or activates some features of existing dependencies.
no_std = ["num-traits/libm", 'dep:cpufeatures']
## Enable this feature to implement traits [IntoImageView](crate::IntoImageView) and
## [IntoImageViewMut](crate::IntoImageViewMut) for the
## [DynamicImage](https://docs.rs/image/latest/image/enum.DynamicImage.html)
## type and some variants of
## [ImageBuffer](https://docs.rs/image/latest/image/struct.ImageBuffer.html)
## type from the `image` crate.
image = ["std", "dep:image", "dep:bytemuck"]
## Enable this feature to implement traits [bytemuck::Pod] and
## [bytemuck::Zeroable] for the `Pixel` type.
bytemuck = ["dep:bytemuck"]
## This feature enables image processing in the ` rayon ` thread pool.
rayon = ["std", "dep:rayon", "resize/rayon", "image/rayon"]
for_testing = ["std", "image", "image/png", "bytemuck"]
only_u8x4 = [] # This can be used to experiment with the crate's code.
[dev-dependencies]
fast_image_resize = { path = ".", features = ["for_testing"] }
resize = { version = "0.8.9", default-features = false, features = ["std"] }
rgb = "0.8.53"
png = "0.18.1"
serde = { version = "1.0", features = ["serde_derive"] }
serde_json = "1.0"
walkdir = "2.5"
itertools = "0.15.0"
criterion = { version = "0.7.0", default-features = false, features = ["cargo_bench_support"] }
tera = { version = "2.0.0-alpha.9", features = ["glob_fs"] }
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
nix = { version = "0.31.3", default-features = false, features = ["sched"] }
[target.'cfg(all(not(target_arch = "wasm32"), not(target_os = "windows")))'.dev-dependencies]
libvips = "1.7"
[package.metadata.docs.rs]
features = ["image", "bytemuck"]
[profile.test]
opt-level = 1
incremental = true
# debug builds for deps
[profile.dev.package.'*']
opt-level = 3
# release build for procmacros - the same config as debug build for procmacros
[profile.release.build-override]
opt-level = 2
debug = false # when possible
[profile.release]
opt-level = 3
incremental = true
#lto = true
#codegen-units = 1
strip = true
#[profile.release.package.fast_image_resize]
#codegen-units = 1
[profile.release.package.image]
codegen-units = 1
[profile.release.package.resize]
codegen-units = 1
[package.metadata.release]
pre-release-replacements = [
{ file = "CHANGELOG.md", search = "Unreleased", replace = "{{version}}" },
{ file = "CHANGELOG.md", search = "ReleaseDate", replace = "{{date}}" }
]
[[bench]]
name = "bench_resize"
harness = false
[[bench]]
name = "bench_alpha"
harness = false
[[bench]]
name = "bench_compare_rgb"
harness = false
[[bench]]
name = "bench_compare_rgb16"
harness = false
[[bench]]
name = "bench_compare_rgb32f"
harness = false
[[bench]]
name = "bench_compare_rgba"
harness = false
[[bench]]
name = "bench_compare_rgba16"
harness = false
[[bench]]
name = "bench_compare_rgba32f"
harness = false
[[bench]]
name = "bench_compare_l"
harness = false
[[bench]]
name = "bench_compare_la"
harness = false
[[bench]]
name = "bench_compare_l16"
harness = false
[[bench]]
name = "bench_compare_la16"
harness = false
[[bench]]
name = "bench_compare_l32f"
harness = false
[[bench]]
name = "bench_compare_la32f"
harness = false
[[bench]]
name = "bench_color_mapper"
harness = false
[[bench]]
name = "bench_threads"
harness = false
required-features = ["rayon"]
# Header of the next release in CHANGELOG.md:
# ## [Unreleased] - ReleaseDate