lz4_flex 0.1.2 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Cargo.lock +83 -80
- data/README.md +2 -2
- data/ext/lz4_flex_ext/Cargo.toml +8 -4
- data/ext/lz4_flex_ext/build.rs +4 -0
- data/ext/lz4_flex_ext/src/lib.rs +0 -3
- data/lib/lz4_flex/version.rb +1 -1
- metadata +4 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 704da109f34b786c37a82c7d15df418f903755a1050444516371f747646454b7
|
4
|
+
data.tar.gz: 93363083abed2dadb418ee24dbfb2338f28ab96ede07641c726e82e70b4b9495
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6004d3a69f8945a06b0aa716071ae01480ef9c1373d4e880eeeb54cbc05fbe48e59eef2f853af9523f13f7c308c391ec88c2f17ee212424d1a65894865c3b6d1
|
7
|
+
data.tar.gz: adc7562d7112a07c9b8bf2b81b798f424f30fd5c8c675f13cb11dc265e4dbae532e19451d9ec9b8ca92961d89a99e74710ff15f28489ae663893321541524e7e
|
data/Cargo.lock
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This file is automatically @generated by Cargo.
|
2
2
|
# It is not intended for manual editing.
|
3
|
-
version =
|
3
|
+
version = 4
|
4
4
|
|
5
5
|
[[package]]
|
6
6
|
name = "aho-corasick"
|
@@ -22,15 +22,15 @@ dependencies = [
|
|
22
22
|
|
23
23
|
[[package]]
|
24
24
|
name = "autocfg"
|
25
|
-
version = "1.
|
25
|
+
version = "1.5.0"
|
26
26
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
27
|
-
checksum = "
|
27
|
+
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
28
28
|
|
29
29
|
[[package]]
|
30
30
|
name = "bindgen"
|
31
|
-
version = "0.69.
|
31
|
+
version = "0.69.5"
|
32
32
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
33
|
-
checksum = "
|
33
|
+
checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088"
|
34
34
|
dependencies = [
|
35
35
|
"bitflags",
|
36
36
|
"cexpr",
|
@@ -48,9 +48,9 @@ dependencies = [
|
|
48
48
|
|
49
49
|
[[package]]
|
50
50
|
name = "bitflags"
|
51
|
-
version = "2.
|
51
|
+
version = "2.9.1"
|
52
52
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
53
|
-
checksum = "
|
53
|
+
checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967"
|
54
54
|
|
55
55
|
[[package]]
|
56
56
|
name = "byteorder"
|
@@ -69,9 +69,9 @@ dependencies = [
|
|
69
69
|
|
70
70
|
[[package]]
|
71
71
|
name = "cfg-if"
|
72
|
-
version = "1.0.
|
72
|
+
version = "1.0.1"
|
73
73
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
74
|
-
checksum = "
|
74
|
+
checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268"
|
75
75
|
|
76
76
|
[[package]]
|
77
77
|
name = "clang-sys"
|
@@ -92,21 +92,21 @@ checksum = "67ba02a97a2bd10f4b59b25c7973101c79642302776489e030cd13cdab09ed15"
|
|
92
92
|
|
93
93
|
[[package]]
|
94
94
|
name = "critical-section"
|
95
|
-
version = "1.
|
95
|
+
version = "1.2.0"
|
96
96
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
97
|
-
checksum = "
|
97
|
+
checksum = "790eea4361631c5e7d22598ecd5723ff611904e3344ce8720784c93e3d83d40b"
|
98
98
|
|
99
99
|
[[package]]
|
100
100
|
name = "either"
|
101
|
-
version = "1.
|
101
|
+
version = "1.15.0"
|
102
102
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
103
|
-
checksum = "
|
103
|
+
checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
|
104
104
|
|
105
105
|
[[package]]
|
106
106
|
name = "glob"
|
107
|
-
version = "0.3.
|
107
|
+
version = "0.3.2"
|
108
108
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
109
|
-
checksum = "
|
109
|
+
checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
|
110
110
|
|
111
111
|
[[package]]
|
112
112
|
name = "hash32"
|
@@ -154,15 +154,15 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
|
|
154
154
|
|
155
155
|
[[package]]
|
156
156
|
name = "libc"
|
157
|
-
version = "0.2.
|
157
|
+
version = "0.2.174"
|
158
158
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
159
|
-
checksum = "
|
159
|
+
checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776"
|
160
160
|
|
161
161
|
[[package]]
|
162
162
|
name = "libloading"
|
163
|
-
version = "0.8.
|
163
|
+
version = "0.8.8"
|
164
164
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
165
|
-
checksum = "
|
165
|
+
checksum = "07033963ba89ebaf1584d767badaa2e8fcec21aedea6b8c0346d487d49c28667"
|
166
166
|
dependencies = [
|
167
167
|
"cfg-if",
|
168
168
|
"windows-targets",
|
@@ -170,9 +170,9 @@ dependencies = [
|
|
170
170
|
|
171
171
|
[[package]]
|
172
172
|
name = "lock_api"
|
173
|
-
version = "0.4.
|
173
|
+
version = "0.4.13"
|
174
174
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
175
|
-
checksum = "
|
175
|
+
checksum = "96936507f153605bddfcda068dd804796c84324ed2510809e5b2a624c81da765"
|
176
176
|
dependencies = [
|
177
177
|
"autocfg",
|
178
178
|
"scopeguard",
|
@@ -180,9 +180,9 @@ dependencies = [
|
|
180
180
|
|
181
181
|
[[package]]
|
182
182
|
name = "lz4_flex"
|
183
|
-
version = "0.11.
|
183
|
+
version = "0.11.5"
|
184
184
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
185
|
-
checksum = "
|
185
|
+
checksum = "08ab2867e3eeeca90e844d1940eab391c9dc5228783db2ed999acbc0a9ed375a"
|
186
186
|
dependencies = [
|
187
187
|
"twox-hash",
|
188
188
|
]
|
@@ -195,6 +195,7 @@ dependencies = [
|
|
195
195
|
"magnus",
|
196
196
|
"postcard",
|
197
197
|
"rb-sys",
|
198
|
+
"rb-sys-env 0.2.2",
|
198
199
|
"serde",
|
199
200
|
"static_assertions",
|
200
201
|
]
|
@@ -207,7 +208,7 @@ checksum = "3d87ae53030f3a22e83879e666cb94e58a7bdf31706878a0ba48752994146dab"
|
|
207
208
|
dependencies = [
|
208
209
|
"magnus-macros",
|
209
210
|
"rb-sys",
|
210
|
-
"rb-sys-env",
|
211
|
+
"rb-sys-env 0.1.2",
|
211
212
|
"seq-macro",
|
212
213
|
]
|
213
214
|
|
@@ -224,9 +225,9 @@ dependencies = [
|
|
224
225
|
|
225
226
|
[[package]]
|
226
227
|
name = "memchr"
|
227
|
-
version = "2.7.
|
228
|
+
version = "2.7.5"
|
228
229
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
229
|
-
checksum = "
|
230
|
+
checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0"
|
230
231
|
|
231
232
|
[[package]]
|
232
233
|
name = "minimal-lexical"
|
@@ -246,9 +247,9 @@ dependencies = [
|
|
246
247
|
|
247
248
|
[[package]]
|
248
249
|
name = "postcard"
|
249
|
-
version = "1.
|
250
|
+
version = "1.1.1"
|
250
251
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
251
|
-
checksum = "
|
252
|
+
checksum = "170a2601f67cc9dba8edd8c4870b15f71a6a2dc196daec8c83f72b59dff628a8"
|
252
253
|
dependencies = [
|
253
254
|
"cobs",
|
254
255
|
"heapless",
|
@@ -257,36 +258,36 @@ dependencies = [
|
|
257
258
|
|
258
259
|
[[package]]
|
259
260
|
name = "proc-macro2"
|
260
|
-
version = "1.0.
|
261
|
+
version = "1.0.95"
|
261
262
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
262
|
-
checksum = "
|
263
|
+
checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
|
263
264
|
dependencies = [
|
264
265
|
"unicode-ident",
|
265
266
|
]
|
266
267
|
|
267
268
|
[[package]]
|
268
269
|
name = "quote"
|
269
|
-
version = "1.0.
|
270
|
+
version = "1.0.40"
|
270
271
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
271
|
-
checksum = "
|
272
|
+
checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
|
272
273
|
dependencies = [
|
273
274
|
"proc-macro2",
|
274
275
|
]
|
275
276
|
|
276
277
|
[[package]]
|
277
278
|
name = "rb-sys"
|
278
|
-
version = "0.9.
|
279
|
+
version = "0.9.116"
|
279
280
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
280
|
-
checksum = "
|
281
|
+
checksum = "7059846f68396df83155779c75336ca24567741cb95256e6308c9fcc370e8dad"
|
281
282
|
dependencies = [
|
282
283
|
"rb-sys-build",
|
283
284
|
]
|
284
285
|
|
285
286
|
[[package]]
|
286
287
|
name = "rb-sys-build"
|
287
|
-
version = "0.9.
|
288
|
+
version = "0.9.116"
|
288
289
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
289
|
-
checksum = "
|
290
|
+
checksum = "ac217510df41b9ffc041573e68d7a02aaff770c49943c7494441c4b224b0ecd0"
|
290
291
|
dependencies = [
|
291
292
|
"bindgen",
|
292
293
|
"lazy_static",
|
@@ -303,11 +304,17 @@ version = "0.1.2"
|
|
303
304
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
304
305
|
checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
|
305
306
|
|
307
|
+
[[package]]
|
308
|
+
name = "rb-sys-env"
|
309
|
+
version = "0.2.2"
|
310
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
311
|
+
checksum = "08f8d2924cf136a1315e2b4c7460a39f62ef11ee5d522df9b2750fab55b868b6"
|
312
|
+
|
306
313
|
[[package]]
|
307
314
|
name = "regex"
|
308
|
-
version = "1.
|
315
|
+
version = "1.11.1"
|
309
316
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
310
|
-
checksum = "
|
317
|
+
checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
|
311
318
|
dependencies = [
|
312
319
|
"aho-corasick",
|
313
320
|
"memchr",
|
@@ -317,9 +324,9 @@ dependencies = [
|
|
317
324
|
|
318
325
|
[[package]]
|
319
326
|
name = "regex-automata"
|
320
|
-
version = "0.4.
|
327
|
+
version = "0.4.9"
|
321
328
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
322
|
-
checksum = "
|
329
|
+
checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
|
323
330
|
dependencies = [
|
324
331
|
"aho-corasick",
|
325
332
|
"memchr",
|
@@ -328,9 +335,9 @@ dependencies = [
|
|
328
335
|
|
329
336
|
[[package]]
|
330
337
|
name = "regex-syntax"
|
331
|
-
version = "0.8.
|
338
|
+
version = "0.8.5"
|
332
339
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
333
|
-
checksum = "
|
340
|
+
checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
|
334
341
|
|
335
342
|
[[package]]
|
336
343
|
name = "rustc-hash"
|
@@ -340,9 +347,9 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
|
340
347
|
|
341
348
|
[[package]]
|
342
349
|
name = "rustc_version"
|
343
|
-
version = "0.4.
|
350
|
+
version = "0.4.1"
|
344
351
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
345
|
-
checksum = "
|
352
|
+
checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
|
346
353
|
dependencies = [
|
347
354
|
"semver",
|
348
355
|
]
|
@@ -355,30 +362,30 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
|
355
362
|
|
356
363
|
[[package]]
|
357
364
|
name = "semver"
|
358
|
-
version = "1.0.
|
365
|
+
version = "1.0.26"
|
359
366
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
360
|
-
checksum = "
|
367
|
+
checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0"
|
361
368
|
|
362
369
|
[[package]]
|
363
370
|
name = "seq-macro"
|
364
|
-
version = "0.3.
|
371
|
+
version = "0.3.6"
|
365
372
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
366
|
-
checksum = "
|
373
|
+
checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
|
367
374
|
|
368
375
|
[[package]]
|
369
376
|
name = "serde"
|
370
|
-
version = "1.0.
|
377
|
+
version = "1.0.219"
|
371
378
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
372
|
-
checksum = "
|
379
|
+
checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6"
|
373
380
|
dependencies = [
|
374
381
|
"serde_derive",
|
375
382
|
]
|
376
383
|
|
377
384
|
[[package]]
|
378
385
|
name = "serde_derive"
|
379
|
-
version = "1.0.
|
386
|
+
version = "1.0.219"
|
380
387
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
381
|
-
checksum = "
|
388
|
+
checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
|
382
389
|
dependencies = [
|
383
390
|
"proc-macro2",
|
384
391
|
"quote",
|
@@ -420,9 +427,9 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
|
|
420
427
|
|
421
428
|
[[package]]
|
422
429
|
name = "syn"
|
423
|
-
version = "2.0.
|
430
|
+
version = "2.0.104"
|
424
431
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
425
|
-
checksum = "
|
432
|
+
checksum = "17b6f705963418cdb9927482fa304bc562ece2fdd4f616084c50b7023b435a40"
|
426
433
|
dependencies = [
|
427
434
|
"proc-macro2",
|
428
435
|
"quote",
|
@@ -431,25 +438,21 @@ dependencies = [
|
|
431
438
|
|
432
439
|
[[package]]
|
433
440
|
name = "twox-hash"
|
434
|
-
version = "1.
|
441
|
+
version = "2.1.1"
|
435
442
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
436
|
-
checksum = "
|
437
|
-
dependencies = [
|
438
|
-
"cfg-if",
|
439
|
-
"static_assertions",
|
440
|
-
]
|
443
|
+
checksum = "8b907da542cbced5261bd3256de1b3a1bf340a3d37f93425a07362a1d687de56"
|
441
444
|
|
442
445
|
[[package]]
|
443
446
|
name = "unicode-ident"
|
444
|
-
version = "1.0.
|
447
|
+
version = "1.0.18"
|
445
448
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
446
|
-
checksum = "
|
449
|
+
checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
|
447
450
|
|
448
451
|
[[package]]
|
449
452
|
name = "windows-targets"
|
450
|
-
version = "0.
|
453
|
+
version = "0.53.2"
|
451
454
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
452
|
-
checksum = "
|
455
|
+
checksum = "c66f69fcc9ce11da9966ddb31a40968cad001c5bedeb5c2b82ede4253ab48aef"
|
453
456
|
dependencies = [
|
454
457
|
"windows_aarch64_gnullvm",
|
455
458
|
"windows_aarch64_msvc",
|
@@ -463,48 +466,48 @@ dependencies = [
|
|
463
466
|
|
464
467
|
[[package]]
|
465
468
|
name = "windows_aarch64_gnullvm"
|
466
|
-
version = "0.
|
469
|
+
version = "0.53.0"
|
467
470
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
468
|
-
checksum = "
|
471
|
+
checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764"
|
469
472
|
|
470
473
|
[[package]]
|
471
474
|
name = "windows_aarch64_msvc"
|
472
|
-
version = "0.
|
475
|
+
version = "0.53.0"
|
473
476
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
474
|
-
checksum = "
|
477
|
+
checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c"
|
475
478
|
|
476
479
|
[[package]]
|
477
480
|
name = "windows_i686_gnu"
|
478
|
-
version = "0.
|
481
|
+
version = "0.53.0"
|
479
482
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
480
|
-
checksum = "
|
483
|
+
checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3"
|
481
484
|
|
482
485
|
[[package]]
|
483
486
|
name = "windows_i686_gnullvm"
|
484
|
-
version = "0.
|
487
|
+
version = "0.53.0"
|
485
488
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
486
|
-
checksum = "
|
489
|
+
checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11"
|
487
490
|
|
488
491
|
[[package]]
|
489
492
|
name = "windows_i686_msvc"
|
490
|
-
version = "0.
|
493
|
+
version = "0.53.0"
|
491
494
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
492
|
-
checksum = "
|
495
|
+
checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d"
|
493
496
|
|
494
497
|
[[package]]
|
495
498
|
name = "windows_x86_64_gnu"
|
496
|
-
version = "0.
|
499
|
+
version = "0.53.0"
|
497
500
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
498
|
-
checksum = "
|
501
|
+
checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba"
|
499
502
|
|
500
503
|
[[package]]
|
501
504
|
name = "windows_x86_64_gnullvm"
|
502
|
-
version = "0.
|
505
|
+
version = "0.53.0"
|
503
506
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
504
|
-
checksum = "
|
507
|
+
checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57"
|
505
508
|
|
506
509
|
[[package]]
|
507
510
|
name = "windows_x86_64_msvc"
|
508
|
-
version = "0.
|
511
|
+
version = "0.53.0"
|
509
512
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
510
|
-
checksum = "
|
513
|
+
checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486"
|
data/README.md
CHANGED
@@ -45,10 +45,10 @@ record the string's size and encoding.
|
|
45
45
|
require 'lz4_flex'
|
46
46
|
|
47
47
|
# Compress data
|
48
|
-
compressed =
|
48
|
+
compressed = Lz4Flex.compress("Hello, World!")
|
49
49
|
|
50
50
|
# Decompress data
|
51
|
-
decompressed =
|
51
|
+
decompressed = Lz4Flex.decompress(compressed)
|
52
52
|
|
53
53
|
puts decompressed # => "Hello, World!"
|
54
54
|
puts decompressed.encoding # => Encoding::UTF_8
|
data/ext/lz4_flex_ext/Cargo.toml
CHANGED
@@ -5,14 +5,18 @@ edition = "2021"
|
|
5
5
|
authors = ["Ian Ker-Seymer <ian.kerseymer@shopify.com>"]
|
6
6
|
license = "MIT"
|
7
7
|
publish = false
|
8
|
+
rust-version = "1.81.0"
|
8
9
|
|
9
10
|
[lib]
|
10
11
|
crate-type = ["cdylib"]
|
11
12
|
|
12
13
|
[dependencies]
|
13
|
-
lz4_flex = { version = "0.11.
|
14
|
+
lz4_flex = { version = "0.11.5", default-features = true }
|
14
15
|
magnus = { version = "0.7.1", features = ["rb-sys"] }
|
15
|
-
postcard = "1.
|
16
|
-
rb-sys = { version = "0.9.
|
17
|
-
serde = { version = "1.0.
|
16
|
+
postcard = "1.1.1"
|
17
|
+
rb-sys = { version = "0.9.116", features = ["stable-api-compiled-fallback"] }
|
18
|
+
serde = { version = "1.0.219", features = ["derive"] }
|
18
19
|
static_assertions = "1.1.0"
|
20
|
+
|
21
|
+
[build-dependencies]
|
22
|
+
rb-sys-env = "0.2.2"
|
data/ext/lz4_flex_ext/src/lib.rs
CHANGED
@@ -12,7 +12,6 @@ use magnus::{
|
|
12
12
|
value::{InnerValue, Lazy},
|
13
13
|
Error, ExceptionClass, RModule, Ruby,
|
14
14
|
};
|
15
|
-
use rb_sys::ruby_abi_version;
|
16
15
|
|
17
16
|
static MODULE_ROOT: Lazy<RModule> = Lazy::new(|ruby| ruby.define_module("Lz4Flex").unwrap());
|
18
17
|
|
@@ -46,8 +45,6 @@ pub(crate) fn decode_error_class() -> ExceptionClass {
|
|
46
45
|
unsafe { DECODE_ERROR_CLASS.get_inner_with(&Ruby::get_unchecked()) }
|
47
46
|
}
|
48
47
|
|
49
|
-
ruby_abi_version!();
|
50
|
-
|
51
48
|
#[magnus::init]
|
52
49
|
fn init(ruby: &Ruby) -> Result<(), Error> {
|
53
50
|
let module = MODULE_ROOT.get_inner_with(ruby);
|
data/lib/lz4_flex/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lz4_flex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify Engineering
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: rb_sys
|
@@ -39,6 +38,7 @@ files:
|
|
39
38
|
- LICENSE.md
|
40
39
|
- README.md
|
41
40
|
- ext/lz4_flex_ext/Cargo.toml
|
41
|
+
- ext/lz4_flex_ext/build.rs
|
42
42
|
- ext/lz4_flex_ext/extconf.rb
|
43
43
|
- ext/lz4_flex_ext/src/block.rs
|
44
44
|
- ext/lz4_flex_ext/src/header.rs
|
@@ -54,7 +54,6 @@ metadata:
|
|
54
54
|
homepage_uri: https://github.com/Shopify/lz4-flex-rb
|
55
55
|
source_code_uri: https://github.com/Shopify/lz4-flex-rb
|
56
56
|
changelog_uri: https://github.com/Shopify/lz4-flex-rb/releases
|
57
|
-
post_install_message:
|
58
57
|
rdoc_options: []
|
59
58
|
require_paths:
|
60
59
|
- lib
|
@@ -69,8 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
68
|
- !ruby/object:Gem::Version
|
70
69
|
version: '0'
|
71
70
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
73
|
-
signing_key:
|
71
|
+
rubygems_version: 3.6.7
|
74
72
|
specification_version: 4
|
75
73
|
summary: A modern LZ4 compression library for Ruby, leveraging the `lz4_flex` Rust
|
76
74
|
crate.
|