-
Notifications
You must be signed in to change notification settings - Fork 29
/
Cargo.toml
196 lines (137 loc) · 3.94 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
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
[workspace]
members = [
"testing",
"resizer",
]
[package]
name = "fast_image_resize"
version = "5.0.0"
authors = ["Kirill Kuzminykh <cykooz@gmail.com>"]
edition = "2021"
license = "MIT OR Apache-2.0"
description = "Library for fast image resizing with using of SIMD instructions"
readme = "README.md"
keywords = ["image", "resize"]
repository = "https://github.com/cykooz/fast_image_resize"
documentation = "https://docs.rs/crate/fast_image_resize"
exclude = ["/data"]
[dependencies]
cfg-if = "1.0"
num-traits = "0.2.19"
thiserror = "1.0"
document-features = "0.2.10"
# Optional dependencies
image = { version = "0.25.2", optional = true, default-features = false }
bytemuck = { version = "1.16", optional = true }
rayon = { version = "1.10", optional = true }
[features]
## 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 from the `image` crate.
image = ["dep:image", "dep:bytemuck"]
## This feature enables image processing in `rayon` thread pool.
rayon = ["dep:rayon", "resize/rayon", "image/rayon", "testing/rayon"]
for_testing = ["image"]
only_u8x4 = ["testing/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.7", default-features = false, features = ["std"] }
rgb = "0.8.50"
png = "0.17.14"
serde = { version = "1.0", features = ["serde_derive"] }
serde_json = "1.0"
walkdir = "2.5"
itertools = "0.13.0"
criterion = { version = "0.5.1", default-features = false, features = ["cargo_bench_support"] }
tera = "1.20"
testing = { path = "testing" }
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
nix = { version = "0.29.0", default-features = false, features = ["sched"] }
[target.'cfg(all(not(target_arch = "wasm32"), not(target_os = "windows")))'.dev-dependencies]
libvips = "1.7"
[[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
[profile.test]
opt-level = 3
incremental = true
# debug builds for deps
[profile.dev.package.'*']
opt-level = 3
debug = false
# Strip debug symbols as they are useless with O3 anyway.
strip = "debuginfo"
# debug builds for procmacros
[profile.dev.build-override]
opt-level = 2 # reasonable optimization
codegen-units = 256 # max threading
# When possible - this is generally scary as some procmacros
# will fail without any feedback.
#debug = false
# release build for procmacros - same config as debug build for procmacros
[profile.release.build-override]
opt-level = 2
codegen-units = 256
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}}" }
]
# Header of next release in CHANGELOG.md:
# ## [Unreleased] - ReleaseDate