colordom 0.6.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62b785f892ebe65a33becac3fd5e8543c19fa3b5576feb4a9a01c8f3b6797b54
4
- data.tar.gz: 8532641a0379ae5fae28c97c214a71193231e00423a8f459d3acac27f3a9207c
3
+ metadata.gz: 30e3d2955aeca515a0954b711f27a28a5f56f8209d691cd0a0d62342233a3a4c
4
+ data.tar.gz: ab16a833484169dbbfca29b97fe45a37eae9059d594a134adaa94b45d45787c1
5
5
  SHA512:
6
- metadata.gz: feb6db561a2ed9df07f4e3f3d467be59cc81d4212103a00ad9d4336068b282ca6dd8f43cf7b90ec8acb80497d07486e487fc9a8759e7d7e4a9b1ced75c66ec62
7
- data.tar.gz: 0efc3fa376b36b92cd5cc9c66ecb77acce5699f2c7fbc1b6d1c6e4a3c703613ac3ba8d8bcf6ae7c810e3e6f0d3d9f634f940fe6f0f810aaaa1af79513e74a76c
6
+ metadata.gz: 1f007efa2d93083c74aec5f37dca696d6e8d7a0dfe6aaf025e905acb0ef3e68ca7040fc9782e804cb69a6134b90fd3e3652f4b4ecfda7738ae83378e55500ae2
7
+ data.tar.gz: 7045debdfbcb5bf5e24d012f1bb32124b59345d44a54e171917f849c10d766c0db29f7f85f3a5bf45d21ce932e027595da2f3c15fab42c03d3e685b71f1783c6
@@ -6,7 +6,7 @@ edition = "2018"
6
6
 
7
7
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8
8
  [dependencies]
9
- magnus = "0.4"
9
+ magnus = "0.5"
10
10
  image = "0.24"
11
11
  dominant_color = "0.3"
12
12
  palette_extract = "0.1"
@@ -3,16 +3,13 @@ use std::path::PathBuf;
3
3
  use magnus::{
4
4
  class, define_module, function, method,
5
5
  prelude::*, gc::register_mark_object, memoize,
6
- Error, ExceptionClass, RModule
6
+ Error, ExceptionClass, RModule, IntoValueFromNative
7
7
  };
8
8
 
9
9
  use image::{DynamicImage};
10
10
  use palette_extract::{Quality, MaxColors, PixelEncoding, PixelFilter};
11
11
  use palette::{FromColor, IntoColor, Lab, Pixel, Srgb};
12
12
 
13
- use dominant_color;
14
- use kmeans_colors;
15
-
16
13
  fn colordom_error() -> ExceptionClass {
17
14
  *memoize!(ExceptionClass: {
18
15
  let ex = class::object().const_get::<_, RModule>("Colordom").unwrap().const_get("Error").unwrap();
@@ -29,6 +26,10 @@ struct Color {
29
26
  b: u8
30
27
  }
31
28
 
29
+ // This is safe as Color does not contain any Ruby types
30
+ // check issue https://github.com/matsadler/magnus/issues/66
31
+ unsafe impl IntoValueFromNative for Color {}
32
+
32
33
  impl Color {
33
34
  fn new(r: u8, g: u8, b: u8) -> Self {
34
35
  Self { r, g, b }
@@ -125,7 +126,7 @@ impl Image {
125
126
  fn init() -> Result<(), Error> {
126
127
  let module = define_module("Colordom")?;
127
128
 
128
- let colorc = module.define_class("Color", Default::default())?;
129
+ let colorc = module.define_class("Color", class::object())?;
129
130
 
130
131
  colorc.define_singleton_method("new", function!(Color::new, 3))?;
131
132
  colorc.define_method("r", method!(Color::r, 0))?;
@@ -141,7 +142,7 @@ fn init() -> Result<(), Error> {
141
142
  colorc.define_alias("to_rgb", "rgb")?;
142
143
  colorc.define_alias("to_hex", "hex")?;
143
144
 
144
- let imagec = module.define_class("Image", Default::default())?;
145
+ let imagec = module.define_class("Image", class::object())?;
145
146
 
146
147
  imagec.define_singleton_method("new", function!(Image::new, 1))?;
147
148
  imagec.define_method("histogram", method!(Image::histogram, 1))?;
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Colordom
4
- VERSION = '0.6.0'
4
+ VERSION = '0.8.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: colordom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonian Guveli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-18 00:00:00.000000000 Z
11
+ date: 2023-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys
@@ -78,7 +78,6 @@ files:
78
78
  - CODE_OF_CONDUCT.md
79
79
  - LICENSE.txt
80
80
  - README.md
81
- - ext/colordom/Cargo.lock
82
81
  - ext/colordom/Cargo.toml
83
82
  - ext/colordom/extconf.rb
84
83
  - ext/colordom/src/lib.rs
@@ -106,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
105
  - !ruby/object:Gem::Version
107
106
  version: '0'
108
107
  requirements: []
109
- rubygems_version: 3.3.26
108
+ rubygems_version: 3.4.19
110
109
  signing_key:
111
110
  specification_version: 4
112
111
  summary: Extract dominant colors from images
@@ -1,891 +0,0 @@
1
- # This file is automatically @generated by Cargo.
2
- # It is not intended for manual editing.
3
- version = 3
4
-
5
- [[package]]
6
- name = "adler"
7
- version = "1.0.2"
8
- source = "registry+https://github.com/rust-lang/crates.io-index"
9
- checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
10
-
11
- [[package]]
12
- name = "aho-corasick"
13
- version = "0.7.20"
14
- source = "registry+https://github.com/rust-lang/crates.io-index"
15
- checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac"
16
- dependencies = [
17
- "memchr",
18
- ]
19
-
20
- [[package]]
21
- name = "approx"
22
- version = "0.5.1"
23
- source = "registry+https://github.com/rust-lang/crates.io-index"
24
- checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6"
25
- dependencies = [
26
- "num-traits",
27
- ]
28
-
29
- [[package]]
30
- name = "autocfg"
31
- version = "1.1.0"
32
- source = "registry+https://github.com/rust-lang/crates.io-index"
33
- checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
34
-
35
- [[package]]
36
- name = "bindgen"
37
- version = "0.60.1"
38
- source = "registry+https://github.com/rust-lang/crates.io-index"
39
- checksum = "062dddbc1ba4aca46de6338e2bf87771414c335f7b2f2036e8f3e9befebf88e6"
40
- dependencies = [
41
- "bitflags",
42
- "cexpr",
43
- "clang-sys",
44
- "lazy_static",
45
- "lazycell",
46
- "peeking_take_while",
47
- "proc-macro2",
48
- "quote",
49
- "regex",
50
- "rustc-hash",
51
- "shlex",
52
- ]
53
-
54
- [[package]]
55
- name = "bit_field"
56
- version = "0.10.1"
57
- source = "registry+https://github.com/rust-lang/crates.io-index"
58
- checksum = "dcb6dd1c2376d2e096796e234a70e17e94cc2d5d54ff8ce42b28cef1d0d359a4"
59
-
60
- [[package]]
61
- name = "bitflags"
62
- version = "1.3.2"
63
- source = "registry+https://github.com/rust-lang/crates.io-index"
64
- checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
65
-
66
- [[package]]
67
- name = "bumpalo"
68
- version = "3.11.1"
69
- source = "registry+https://github.com/rust-lang/crates.io-index"
70
- checksum = "572f695136211188308f16ad2ca5c851a712c464060ae6974944458eb83880ba"
71
-
72
- [[package]]
73
- name = "bytemuck"
74
- version = "1.12.3"
75
- source = "registry+https://github.com/rust-lang/crates.io-index"
76
- checksum = "aaa3a8d9a1ca92e282c96a32d6511b695d7d994d1d102ba85d279f9b2756947f"
77
-
78
- [[package]]
79
- name = "byteorder"
80
- version = "1.4.3"
81
- source = "registry+https://github.com/rust-lang/crates.io-index"
82
- checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
83
-
84
- [[package]]
85
- name = "cexpr"
86
- version = "0.6.0"
87
- source = "registry+https://github.com/rust-lang/crates.io-index"
88
- checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
89
- dependencies = [
90
- "nom",
91
- ]
92
-
93
- [[package]]
94
- name = "cfg-if"
95
- version = "1.0.0"
96
- source = "registry+https://github.com/rust-lang/crates.io-index"
97
- checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
98
-
99
- [[package]]
100
- name = "clang-sys"
101
- version = "1.4.0"
102
- source = "registry+https://github.com/rust-lang/crates.io-index"
103
- checksum = "fa2e27ae6ab525c3d369ded447057bca5438d86dc3a68f6faafb8269ba82ebf3"
104
- dependencies = [
105
- "glob",
106
- "libc",
107
- "libloading",
108
- ]
109
-
110
- [[package]]
111
- name = "color_quant"
112
- version = "1.1.0"
113
- source = "registry+https://github.com/rust-lang/crates.io-index"
114
- checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"
115
-
116
- [[package]]
117
- name = "colordom"
118
- version = "0.1.0"
119
- dependencies = [
120
- "dominant_color",
121
- "image",
122
- "kmeans_colors",
123
- "magnus",
124
- "palette",
125
- "palette_extract",
126
- ]
127
-
128
- [[package]]
129
- name = "crc32fast"
130
- version = "1.3.2"
131
- source = "registry+https://github.com/rust-lang/crates.io-index"
132
- checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d"
133
- dependencies = [
134
- "cfg-if",
135
- ]
136
-
137
- [[package]]
138
- name = "crossbeam-channel"
139
- version = "0.5.6"
140
- source = "registry+https://github.com/rust-lang/crates.io-index"
141
- checksum = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521"
142
- dependencies = [
143
- "cfg-if",
144
- "crossbeam-utils",
145
- ]
146
-
147
- [[package]]
148
- name = "crossbeam-deque"
149
- version = "0.8.2"
150
- source = "registry+https://github.com/rust-lang/crates.io-index"
151
- checksum = "715e8152b692bba2d374b53d4875445368fdf21a94751410af607a5ac677d1fc"
152
- dependencies = [
153
- "cfg-if",
154
- "crossbeam-epoch",
155
- "crossbeam-utils",
156
- ]
157
-
158
- [[package]]
159
- name = "crossbeam-epoch"
160
- version = "0.9.13"
161
- source = "registry+https://github.com/rust-lang/crates.io-index"
162
- checksum = "01a9af1f4c2ef74bb8aa1f7e19706bc72d03598c8a570bb5de72243c7a9d9d5a"
163
- dependencies = [
164
- "autocfg",
165
- "cfg-if",
166
- "crossbeam-utils",
167
- "memoffset",
168
- "scopeguard",
169
- ]
170
-
171
- [[package]]
172
- name = "crossbeam-utils"
173
- version = "0.8.14"
174
- source = "registry+https://github.com/rust-lang/crates.io-index"
175
- checksum = "4fb766fa798726286dbbb842f174001dab8abc7b627a1dd86e0b7222a95d929f"
176
- dependencies = [
177
- "cfg-if",
178
- ]
179
-
180
- [[package]]
181
- name = "crunchy"
182
- version = "0.2.2"
183
- source = "registry+https://github.com/rust-lang/crates.io-index"
184
- checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7"
185
-
186
- [[package]]
187
- name = "dominant_color"
188
- version = "0.3.0"
189
- source = "registry+https://github.com/rust-lang/crates.io-index"
190
- checksum = "2494b5d589b485e8b75ef5e81b4dc271fb0d5814132c308d5d11f0de9b300d96"
191
-
192
- [[package]]
193
- name = "either"
194
- version = "1.8.0"
195
- source = "registry+https://github.com/rust-lang/crates.io-index"
196
- checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797"
197
-
198
- [[package]]
199
- name = "exr"
200
- version = "1.5.2"
201
- source = "registry+https://github.com/rust-lang/crates.io-index"
202
- checksum = "8eb5f255b5980bb0c8cf676b675d1a99be40f316881444f44e0462eaf5df5ded"
203
- dependencies = [
204
- "bit_field",
205
- "flume",
206
- "half",
207
- "lebe",
208
- "miniz_oxide",
209
- "smallvec",
210
- "threadpool",
211
- ]
212
-
213
- [[package]]
214
- name = "find-crate"
215
- version = "0.6.3"
216
- source = "registry+https://github.com/rust-lang/crates.io-index"
217
- checksum = "59a98bbaacea1c0eb6a0876280051b892eb73594fd90cf3b20e9c817029c57d2"
218
- dependencies = [
219
- "toml",
220
- ]
221
-
222
- [[package]]
223
- name = "flate2"
224
- version = "1.0.25"
225
- source = "registry+https://github.com/rust-lang/crates.io-index"
226
- checksum = "a8a2db397cb1c8772f31494cb8917e48cd1e64f0fa7efac59fbd741a0a8ce841"
227
- dependencies = [
228
- "crc32fast",
229
- "miniz_oxide",
230
- ]
231
-
232
- [[package]]
233
- name = "flume"
234
- version = "0.10.14"
235
- source = "registry+https://github.com/rust-lang/crates.io-index"
236
- checksum = "1657b4441c3403d9f7b3409e47575237dac27b1b5726df654a6ecbf92f0f7577"
237
- dependencies = [
238
- "futures-core",
239
- "futures-sink",
240
- "nanorand",
241
- "pin-project",
242
- "spin",
243
- ]
244
-
245
- [[package]]
246
- name = "futures-core"
247
- version = "0.3.25"
248
- source = "registry+https://github.com/rust-lang/crates.io-index"
249
- checksum = "04909a7a7e4633ae6c4a9ab280aeb86da1236243a77b694a49eacd659a4bd3ac"
250
-
251
- [[package]]
252
- name = "futures-sink"
253
- version = "0.3.25"
254
- source = "registry+https://github.com/rust-lang/crates.io-index"
255
- checksum = "39c15cf1a4aa79df40f1bb462fb39676d0ad9e366c2a33b590d7c66f4f81fcf9"
256
-
257
- [[package]]
258
- name = "getrandom"
259
- version = "0.2.8"
260
- source = "registry+https://github.com/rust-lang/crates.io-index"
261
- checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31"
262
- dependencies = [
263
- "cfg-if",
264
- "js-sys",
265
- "libc",
266
- "wasi",
267
- "wasm-bindgen",
268
- ]
269
-
270
- [[package]]
271
- name = "gif"
272
- version = "0.11.4"
273
- source = "registry+https://github.com/rust-lang/crates.io-index"
274
- checksum = "3edd93c6756b4dfaf2709eafcc345ba2636565295c198a9cfbf75fa5e3e00b06"
275
- dependencies = [
276
- "color_quant",
277
- "weezl",
278
- ]
279
-
280
- [[package]]
281
- name = "glob"
282
- version = "0.3.0"
283
- source = "registry+https://github.com/rust-lang/crates.io-index"
284
- checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
285
-
286
- [[package]]
287
- name = "half"
288
- version = "2.1.0"
289
- source = "registry+https://github.com/rust-lang/crates.io-index"
290
- checksum = "ad6a9459c9c30b177b925162351f97e7d967c7ea8bab3b8352805327daf45554"
291
- dependencies = [
292
- "crunchy",
293
- ]
294
-
295
- [[package]]
296
- name = "hermit-abi"
297
- version = "0.1.19"
298
- source = "registry+https://github.com/rust-lang/crates.io-index"
299
- checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
300
- dependencies = [
301
- "libc",
302
- ]
303
-
304
- [[package]]
305
- name = "image"
306
- version = "0.24.5"
307
- source = "registry+https://github.com/rust-lang/crates.io-index"
308
- checksum = "69b7ea949b537b0fd0af141fff8c77690f2ce96f4f41f042ccb6c69c6c965945"
309
- dependencies = [
310
- "bytemuck",
311
- "byteorder",
312
- "color_quant",
313
- "exr",
314
- "gif",
315
- "jpeg-decoder",
316
- "num-rational",
317
- "num-traits",
318
- "png",
319
- "scoped_threadpool",
320
- "tiff",
321
- ]
322
-
323
- [[package]]
324
- name = "jpeg-decoder"
325
- version = "0.3.0"
326
- source = "registry+https://github.com/rust-lang/crates.io-index"
327
- checksum = "bc0000e42512c92e31c2252315bda326620a4e034105e900c98ec492fa077b3e"
328
- dependencies = [
329
- "rayon",
330
- ]
331
-
332
- [[package]]
333
- name = "js-sys"
334
- version = "0.3.60"
335
- source = "registry+https://github.com/rust-lang/crates.io-index"
336
- checksum = "49409df3e3bf0856b916e2ceaca09ee28e6871cf7d9ce97a692cacfdb2a25a47"
337
- dependencies = [
338
- "wasm-bindgen",
339
- ]
340
-
341
- [[package]]
342
- name = "kmeans_colors"
343
- version = "0.5.0"
344
- source = "registry+https://github.com/rust-lang/crates.io-index"
345
- checksum = "1d9f1da1000eb32cea537203e5ea121eb06e66c5e5f3420a1e9f11a57676f55b"
346
- dependencies = [
347
- "palette",
348
- "rand",
349
- "rand_chacha",
350
- ]
351
-
352
- [[package]]
353
- name = "lazy_static"
354
- version = "1.4.0"
355
- source = "registry+https://github.com/rust-lang/crates.io-index"
356
- checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
357
-
358
- [[package]]
359
- name = "lazycell"
360
- version = "1.3.0"
361
- source = "registry+https://github.com/rust-lang/crates.io-index"
362
- checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
363
-
364
- [[package]]
365
- name = "lebe"
366
- version = "0.5.2"
367
- source = "registry+https://github.com/rust-lang/crates.io-index"
368
- checksum = "03087c2bad5e1034e8cace5926dec053fb3790248370865f5117a7d0213354c8"
369
-
370
- [[package]]
371
- name = "libc"
372
- version = "0.2.138"
373
- source = "registry+https://github.com/rust-lang/crates.io-index"
374
- checksum = "db6d7e329c562c5dfab7a46a2afabc8b987ab9a4834c9d1ca04dc54c1546cef8"
375
-
376
- [[package]]
377
- name = "libloading"
378
- version = "0.7.4"
379
- source = "registry+https://github.com/rust-lang/crates.io-index"
380
- checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f"
381
- dependencies = [
382
- "cfg-if",
383
- "winapi",
384
- ]
385
-
386
- [[package]]
387
- name = "lock_api"
388
- version = "0.4.9"
389
- source = "registry+https://github.com/rust-lang/crates.io-index"
390
- checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df"
391
- dependencies = [
392
- "autocfg",
393
- "scopeguard",
394
- ]
395
-
396
- [[package]]
397
- name = "log"
398
- version = "0.4.17"
399
- source = "registry+https://github.com/rust-lang/crates.io-index"
400
- checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e"
401
- dependencies = [
402
- "cfg-if",
403
- ]
404
-
405
- [[package]]
406
- name = "magnus"
407
- version = "0.4.3"
408
- source = "registry+https://github.com/rust-lang/crates.io-index"
409
- checksum = "c7d904f55da4e2b0ac7f133257af80580ff4ca17bcca67f51ea06be46aa634ac"
410
- dependencies = [
411
- "magnus-macros",
412
- "rb-sys",
413
- "rb-sys-env",
414
- ]
415
-
416
- [[package]]
417
- name = "magnus-macros"
418
- version = "0.2.0"
419
- source = "registry+https://github.com/rust-lang/crates.io-index"
420
- checksum = "acc8ba6908cb0f67a4e75cb48fc81a1f0e6a6dd1501936e0c9e2c7c8f9f18e05"
421
- dependencies = [
422
- "proc-macro2",
423
- "quote",
424
- "syn",
425
- ]
426
-
427
- [[package]]
428
- name = "memchr"
429
- version = "2.5.0"
430
- source = "registry+https://github.com/rust-lang/crates.io-index"
431
- checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
432
-
433
- [[package]]
434
- name = "memoffset"
435
- version = "0.7.1"
436
- source = "registry+https://github.com/rust-lang/crates.io-index"
437
- checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4"
438
- dependencies = [
439
- "autocfg",
440
- ]
441
-
442
- [[package]]
443
- name = "minimal-lexical"
444
- version = "0.2.1"
445
- source = "registry+https://github.com/rust-lang/crates.io-index"
446
- checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
447
-
448
- [[package]]
449
- name = "miniz_oxide"
450
- version = "0.6.2"
451
- source = "registry+https://github.com/rust-lang/crates.io-index"
452
- checksum = "b275950c28b37e794e8c55d88aeb5e139d0ce23fdbbeda68f8d7174abdf9e8fa"
453
- dependencies = [
454
- "adler",
455
- ]
456
-
457
- [[package]]
458
- name = "nanorand"
459
- version = "0.7.0"
460
- source = "registry+https://github.com/rust-lang/crates.io-index"
461
- checksum = "6a51313c5820b0b02bd422f4b44776fbf47961755c74ce64afc73bfad10226c3"
462
- dependencies = [
463
- "getrandom",
464
- ]
465
-
466
- [[package]]
467
- name = "nom"
468
- version = "7.1.1"
469
- source = "registry+https://github.com/rust-lang/crates.io-index"
470
- checksum = "a8903e5a29a317527874d0402f867152a3d21c908bb0b933e416c65e301d4c36"
471
- dependencies = [
472
- "memchr",
473
- "minimal-lexical",
474
- ]
475
-
476
- [[package]]
477
- name = "num-integer"
478
- version = "0.1.45"
479
- source = "registry+https://github.com/rust-lang/crates.io-index"
480
- checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9"
481
- dependencies = [
482
- "autocfg",
483
- "num-traits",
484
- ]
485
-
486
- [[package]]
487
- name = "num-rational"
488
- version = "0.4.1"
489
- source = "registry+https://github.com/rust-lang/crates.io-index"
490
- checksum = "0638a1c9d0a3c0914158145bc76cff373a75a627e6ecbfb71cbe6f453a5a19b0"
491
- dependencies = [
492
- "autocfg",
493
- "num-integer",
494
- "num-traits",
495
- ]
496
-
497
- [[package]]
498
- name = "num-traits"
499
- version = "0.2.15"
500
- source = "registry+https://github.com/rust-lang/crates.io-index"
501
- checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd"
502
- dependencies = [
503
- "autocfg",
504
- ]
505
-
506
- [[package]]
507
- name = "num_cpus"
508
- version = "1.14.0"
509
- source = "registry+https://github.com/rust-lang/crates.io-index"
510
- checksum = "f6058e64324c71e02bc2b150e4f3bc8286db6c83092132ffa3f6b1eab0f9def5"
511
- dependencies = [
512
- "hermit-abi",
513
- "libc",
514
- ]
515
-
516
- [[package]]
517
- name = "once_cell"
518
- version = "1.16.0"
519
- source = "registry+https://github.com/rust-lang/crates.io-index"
520
- checksum = "86f0b0d4bf799edbc74508c1e8bf170ff5f41238e5f8225603ca7caaae2b7860"
521
-
522
- [[package]]
523
- name = "palette"
524
- version = "0.6.1"
525
- source = "registry+https://github.com/rust-lang/crates.io-index"
526
- checksum = "8f9cd68f7112581033f157e56c77ac4a5538ec5836a2e39284e65bd7d7275e49"
527
- dependencies = [
528
- "approx",
529
- "num-traits",
530
- "palette_derive",
531
- ]
532
-
533
- [[package]]
534
- name = "palette_derive"
535
- version = "0.6.1"
536
- source = "registry+https://github.com/rust-lang/crates.io-index"
537
- checksum = "05eedf46a8e7c27f74af0c9cfcdb004ceca158cb1b918c6f68f8d7a549b3e427"
538
- dependencies = [
539
- "find-crate",
540
- "proc-macro2",
541
- "quote",
542
- "syn",
543
- ]
544
-
545
- [[package]]
546
- name = "palette_extract"
547
- version = "0.1.0"
548
- source = "registry+https://github.com/rust-lang/crates.io-index"
549
- checksum = "37152de66c36e76d4637af2a51310ede2c0e42b80357fa517bf1b595b56489a4"
550
-
551
- [[package]]
552
- name = "peeking_take_while"
553
- version = "0.1.2"
554
- source = "registry+https://github.com/rust-lang/crates.io-index"
555
- checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099"
556
-
557
- [[package]]
558
- name = "pin-project"
559
- version = "1.0.12"
560
- source = "registry+https://github.com/rust-lang/crates.io-index"
561
- checksum = "ad29a609b6bcd67fee905812e544992d216af9d755757c05ed2d0e15a74c6ecc"
562
- dependencies = [
563
- "pin-project-internal",
564
- ]
565
-
566
- [[package]]
567
- name = "pin-project-internal"
568
- version = "1.0.12"
569
- source = "registry+https://github.com/rust-lang/crates.io-index"
570
- checksum = "069bdb1e05adc7a8990dce9cc75370895fbe4e3d58b9b73bf1aee56359344a55"
571
- dependencies = [
572
- "proc-macro2",
573
- "quote",
574
- "syn",
575
- ]
576
-
577
- [[package]]
578
- name = "png"
579
- version = "0.17.7"
580
- source = "registry+https://github.com/rust-lang/crates.io-index"
581
- checksum = "5d708eaf860a19b19ce538740d2b4bdeeb8337fa53f7738455e706623ad5c638"
582
- dependencies = [
583
- "bitflags",
584
- "crc32fast",
585
- "flate2",
586
- "miniz_oxide",
587
- ]
588
-
589
- [[package]]
590
- name = "ppv-lite86"
591
- version = "0.2.17"
592
- source = "registry+https://github.com/rust-lang/crates.io-index"
593
- checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
594
-
595
- [[package]]
596
- name = "proc-macro2"
597
- version = "1.0.48"
598
- source = "registry+https://github.com/rust-lang/crates.io-index"
599
- checksum = "e9d89e5dba24725ae5678020bf8f1357a9aa7ff10736b551adbcd3f8d17d766f"
600
- dependencies = [
601
- "unicode-ident",
602
- ]
603
-
604
- [[package]]
605
- name = "quote"
606
- version = "1.0.22"
607
- source = "registry+https://github.com/rust-lang/crates.io-index"
608
- checksum = "556d0f47a940e895261e77dc200d5eadfc6ef644c179c6f5edfc105e3a2292c8"
609
- dependencies = [
610
- "proc-macro2",
611
- ]
612
-
613
- [[package]]
614
- name = "rand"
615
- version = "0.8.5"
616
- source = "registry+https://github.com/rust-lang/crates.io-index"
617
- checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
618
- dependencies = [
619
- "libc",
620
- "rand_chacha",
621
- "rand_core",
622
- ]
623
-
624
- [[package]]
625
- name = "rand_chacha"
626
- version = "0.3.1"
627
- source = "registry+https://github.com/rust-lang/crates.io-index"
628
- checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
629
- dependencies = [
630
- "ppv-lite86",
631
- "rand_core",
632
- ]
633
-
634
- [[package]]
635
- name = "rand_core"
636
- version = "0.6.4"
637
- source = "registry+https://github.com/rust-lang/crates.io-index"
638
- checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
639
- dependencies = [
640
- "getrandom",
641
- ]
642
-
643
- [[package]]
644
- name = "rayon"
645
- version = "1.6.1"
646
- source = "registry+https://github.com/rust-lang/crates.io-index"
647
- checksum = "6db3a213adf02b3bcfd2d3846bb41cb22857d131789e01df434fb7e7bc0759b7"
648
- dependencies = [
649
- "either",
650
- "rayon-core",
651
- ]
652
-
653
- [[package]]
654
- name = "rayon-core"
655
- version = "1.10.1"
656
- source = "registry+https://github.com/rust-lang/crates.io-index"
657
- checksum = "cac410af5d00ab6884528b4ab69d1e8e146e8d471201800fa1b4524126de6ad3"
658
- dependencies = [
659
- "crossbeam-channel",
660
- "crossbeam-deque",
661
- "crossbeam-utils",
662
- "num_cpus",
663
- ]
664
-
665
- [[package]]
666
- name = "rb-sys"
667
- version = "0.9.52"
668
- source = "registry+https://github.com/rust-lang/crates.io-index"
669
- checksum = "02fffdb0162fc4cc1b6509b2d9b32a75f7e7ed392f58bde639e0c33b23e74b97"
670
- dependencies = [
671
- "rb-sys-build",
672
- ]
673
-
674
- [[package]]
675
- name = "rb-sys-build"
676
- version = "0.9.52"
677
- source = "registry+https://github.com/rust-lang/crates.io-index"
678
- checksum = "85d1a236755f879fc155d16d9ba4cd3b1975fd52ef6a28113702ae3881b73c03"
679
- dependencies = [
680
- "bindgen",
681
- "regex",
682
- "shell-words",
683
- ]
684
-
685
- [[package]]
686
- name = "rb-sys-env"
687
- version = "0.1.1"
688
- source = "registry+https://github.com/rust-lang/crates.io-index"
689
- checksum = "74c38752410925faeb82c400c06ba2fd9ee6aa8f719dd33994c9e53f5242d25f"
690
-
691
- [[package]]
692
- name = "regex"
693
- version = "1.7.0"
694
- source = "registry+https://github.com/rust-lang/crates.io-index"
695
- checksum = "e076559ef8e241f2ae3479e36f97bd5741c0330689e217ad51ce2c76808b868a"
696
- dependencies = [
697
- "aho-corasick",
698
- "memchr",
699
- "regex-syntax",
700
- ]
701
-
702
- [[package]]
703
- name = "regex-syntax"
704
- version = "0.6.28"
705
- source = "registry+https://github.com/rust-lang/crates.io-index"
706
- checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848"
707
-
708
- [[package]]
709
- name = "rustc-hash"
710
- version = "1.1.0"
711
- source = "registry+https://github.com/rust-lang/crates.io-index"
712
- checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
713
-
714
- [[package]]
715
- name = "scoped_threadpool"
716
- version = "0.1.9"
717
- source = "registry+https://github.com/rust-lang/crates.io-index"
718
- checksum = "1d51f5df5af43ab3f1360b429fa5e0152ac5ce8c0bd6485cae490332e96846a8"
719
-
720
- [[package]]
721
- name = "scopeguard"
722
- version = "1.1.0"
723
- source = "registry+https://github.com/rust-lang/crates.io-index"
724
- checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
725
-
726
- [[package]]
727
- name = "serde"
728
- version = "1.0.151"
729
- source = "registry+https://github.com/rust-lang/crates.io-index"
730
- checksum = "97fed41fc1a24994d044e6db6935e69511a1153b52c15eb42493b26fa87feba0"
731
-
732
- [[package]]
733
- name = "shell-words"
734
- version = "1.1.0"
735
- source = "registry+https://github.com/rust-lang/crates.io-index"
736
- checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde"
737
-
738
- [[package]]
739
- name = "shlex"
740
- version = "1.1.0"
741
- source = "registry+https://github.com/rust-lang/crates.io-index"
742
- checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3"
743
-
744
- [[package]]
745
- name = "smallvec"
746
- version = "1.10.0"
747
- source = "registry+https://github.com/rust-lang/crates.io-index"
748
- checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0"
749
-
750
- [[package]]
751
- name = "spin"
752
- version = "0.9.4"
753
- source = "registry+https://github.com/rust-lang/crates.io-index"
754
- checksum = "7f6002a767bff9e83f8eeecf883ecb8011875a21ae8da43bffb817a57e78cc09"
755
- dependencies = [
756
- "lock_api",
757
- ]
758
-
759
- [[package]]
760
- name = "syn"
761
- version = "1.0.106"
762
- source = "registry+https://github.com/rust-lang/crates.io-index"
763
- checksum = "09ee3a69cd2c7e06684677e5629b3878b253af05e4714964204279c6bc02cf0b"
764
- dependencies = [
765
- "proc-macro2",
766
- "quote",
767
- "unicode-ident",
768
- ]
769
-
770
- [[package]]
771
- name = "threadpool"
772
- version = "1.8.1"
773
- source = "registry+https://github.com/rust-lang/crates.io-index"
774
- checksum = "d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa"
775
- dependencies = [
776
- "num_cpus",
777
- ]
778
-
779
- [[package]]
780
- name = "tiff"
781
- version = "0.8.1"
782
- source = "registry+https://github.com/rust-lang/crates.io-index"
783
- checksum = "7449334f9ff2baf290d55d73983a7d6fa15e01198faef72af07e2a8db851e471"
784
- dependencies = [
785
- "flate2",
786
- "jpeg-decoder",
787
- "weezl",
788
- ]
789
-
790
- [[package]]
791
- name = "toml"
792
- version = "0.5.10"
793
- source = "registry+https://github.com/rust-lang/crates.io-index"
794
- checksum = "1333c76748e868a4d9d1017b5ab53171dfd095f70c712fdb4653a406547f598f"
795
- dependencies = [
796
- "serde",
797
- ]
798
-
799
- [[package]]
800
- name = "unicode-ident"
801
- version = "1.0.6"
802
- source = "registry+https://github.com/rust-lang/crates.io-index"
803
- checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc"
804
-
805
- [[package]]
806
- name = "wasi"
807
- version = "0.11.0+wasi-snapshot-preview1"
808
- source = "registry+https://github.com/rust-lang/crates.io-index"
809
- checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
810
-
811
- [[package]]
812
- name = "wasm-bindgen"
813
- version = "0.2.83"
814
- source = "registry+https://github.com/rust-lang/crates.io-index"
815
- checksum = "eaf9f5aceeec8be17c128b2e93e031fb8a4d469bb9c4ae2d7dc1888b26887268"
816
- dependencies = [
817
- "cfg-if",
818
- "wasm-bindgen-macro",
819
- ]
820
-
821
- [[package]]
822
- name = "wasm-bindgen-backend"
823
- version = "0.2.83"
824
- source = "registry+https://github.com/rust-lang/crates.io-index"
825
- checksum = "4c8ffb332579b0557b52d268b91feab8df3615f265d5270fec2a8c95b17c1142"
826
- dependencies = [
827
- "bumpalo",
828
- "log",
829
- "once_cell",
830
- "proc-macro2",
831
- "quote",
832
- "syn",
833
- "wasm-bindgen-shared",
834
- ]
835
-
836
- [[package]]
837
- name = "wasm-bindgen-macro"
838
- version = "0.2.83"
839
- source = "registry+https://github.com/rust-lang/crates.io-index"
840
- checksum = "052be0f94026e6cbc75cdefc9bae13fd6052cdcaf532fa6c45e7ae33a1e6c810"
841
- dependencies = [
842
- "quote",
843
- "wasm-bindgen-macro-support",
844
- ]
845
-
846
- [[package]]
847
- name = "wasm-bindgen-macro-support"
848
- version = "0.2.83"
849
- source = "registry+https://github.com/rust-lang/crates.io-index"
850
- checksum = "07bc0c051dc5f23e307b13285f9d75df86bfdf816c5721e573dec1f9b8aa193c"
851
- dependencies = [
852
- "proc-macro2",
853
- "quote",
854
- "syn",
855
- "wasm-bindgen-backend",
856
- "wasm-bindgen-shared",
857
- ]
858
-
859
- [[package]]
860
- name = "wasm-bindgen-shared"
861
- version = "0.2.83"
862
- source = "registry+https://github.com/rust-lang/crates.io-index"
863
- checksum = "1c38c045535d93ec4f0b4defec448e4291638ee608530863b1e2ba115d4fff7f"
864
-
865
- [[package]]
866
- name = "weezl"
867
- version = "0.1.7"
868
- source = "registry+https://github.com/rust-lang/crates.io-index"
869
- checksum = "9193164d4de03a926d909d3bc7c30543cecb35400c02114792c2cae20d5e2dbb"
870
-
871
- [[package]]
872
- name = "winapi"
873
- version = "0.3.9"
874
- source = "registry+https://github.com/rust-lang/crates.io-index"
875
- checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
876
- dependencies = [
877
- "winapi-i686-pc-windows-gnu",
878
- "winapi-x86_64-pc-windows-gnu",
879
- ]
880
-
881
- [[package]]
882
- name = "winapi-i686-pc-windows-gnu"
883
- version = "0.4.0"
884
- source = "registry+https://github.com/rust-lang/crates.io-index"
885
- checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
886
-
887
- [[package]]
888
- name = "winapi-x86_64-pc-windows-gnu"
889
- version = "0.4.0"
890
- source = "registry+https://github.com/rust-lang/crates.io-index"
891
- checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"