lz4_flex 0.1.2 → 1.0.0
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 +51 -44
- data/README.md +2 -2
- data/ext/lz4_flex_ext/Cargo.toml +5 -2
- 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: '0759a785da9bfce484174c96f8f3319e72c16b90208af9fa3ea40f50cec9c599'
|
|
4
|
+
data.tar.gz: 8e2fb1b9b4571c27977ea87ce74a868e136aa89e735163e92230bb16b9f63f51
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eb5754e96a032b38cae64f21d966030d732efb5d6cd7b8d0396b809581b13ed634d4cb08b2478ee04b4d1ab054c3d8b9a6dd6d0455cd67db76ec85c7f65bada3
|
|
7
|
+
data.tar.gz: 70a5bbba2ce392e25bff7c89e19c34d68d8ded22cde978cda5a6fd77e135a0b7cbeea02c4059cdee079abc94c18f172eb27b4f02b7468a6fbe39ac175b909216
|
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.4.0"
|
|
26
26
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
-
checksum = "
|
|
27
|
+
checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
|
|
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.7.0"
|
|
52
52
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
53
|
-
checksum = "
|
|
53
|
+
checksum = "1be3f42a67d6d345ecd59f675f3f012d6974981560836e938c22b424b85ce1be"
|
|
54
54
|
|
|
55
55
|
[[package]]
|
|
56
56
|
name = "byteorder"
|
|
@@ -92,9 +92,9 @@ 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"
|
|
@@ -104,9 +104,9 @@ checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"
|
|
|
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.169"
|
|
158
158
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
159
|
-
checksum = "
|
|
159
|
+
checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a"
|
|
160
160
|
|
|
161
161
|
[[package]]
|
|
162
162
|
name = "libloading"
|
|
163
|
-
version = "0.8.
|
|
163
|
+
version = "0.8.6"
|
|
164
164
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
165
|
-
checksum = "
|
|
165
|
+
checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34"
|
|
166
166
|
dependencies = [
|
|
167
167
|
"cfg-if",
|
|
168
168
|
"windows-targets",
|
|
@@ -195,6 +195,7 @@ dependencies = [
|
|
|
195
195
|
"magnus",
|
|
196
196
|
"postcard",
|
|
197
197
|
"rb-sys",
|
|
198
|
+
"rb-sys-env 0.2.1",
|
|
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
|
|
|
@@ -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.93"
|
|
261
262
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
262
|
-
checksum = "
|
|
263
|
+
checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99"
|
|
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.38"
|
|
270
271
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
271
|
-
checksum = "
|
|
272
|
+
checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc"
|
|
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.107"
|
|
279
280
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
280
|
-
checksum = "
|
|
281
|
+
checksum = "56aaf81d9efc195606456e91896297ee5ab2002381539f8ed1ba6b4f2e467f3b"
|
|
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.107"
|
|
288
289
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
289
|
-
checksum = "
|
|
290
|
+
checksum = "035b513baded6df2b90a8559efb1973c47ba42e16c21c5f0863dd2aa4dbd6abe"
|
|
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.1"
|
|
310
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
311
|
+
checksum = "5b0412803f8fea126e8f500d8eb6d5394a983517888a790254f4190e9b16a7a5"
|
|
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,9 +362,9 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
|
|
355
362
|
|
|
356
363
|
[[package]]
|
|
357
364
|
name = "semver"
|
|
358
|
-
version = "1.0.
|
|
365
|
+
version = "1.0.24"
|
|
359
366
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
360
|
-
checksum = "
|
|
367
|
+
checksum = "3cb6eb87a131f756572d7fb904f6e7b68633f09cca868c5df1c4b8d1a694bbba"
|
|
361
368
|
|
|
362
369
|
[[package]]
|
|
363
370
|
name = "seq-macro"
|
|
@@ -367,18 +374,18 @@ checksum = "a3f0bf26fd526d2a95683cd0f87bf103b8539e2ca1ef48ce002d67aad59aa0b4"
|
|
|
367
374
|
|
|
368
375
|
[[package]]
|
|
369
376
|
name = "serde"
|
|
370
|
-
version = "1.0.
|
|
377
|
+
version = "1.0.217"
|
|
371
378
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
372
|
-
checksum = "
|
|
379
|
+
checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70"
|
|
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.217"
|
|
380
387
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
381
|
-
checksum = "
|
|
388
|
+
checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0"
|
|
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.96"
|
|
424
431
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
425
|
-
checksum = "
|
|
432
|
+
checksum = "d5d0adab1ae378d7f53bdebc67a39f1f151407ef230f0ce2883572f5d8985c80"
|
|
426
433
|
dependencies = [
|
|
427
434
|
"proc-macro2",
|
|
428
435
|
"quote",
|
|
@@ -441,9 +448,9 @@ dependencies = [
|
|
|
441
448
|
|
|
442
449
|
[[package]]
|
|
443
450
|
name = "unicode-ident"
|
|
444
|
-
version = "1.0.
|
|
451
|
+
version = "1.0.14"
|
|
445
452
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
446
|
-
checksum = "
|
|
453
|
+
checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83"
|
|
447
454
|
|
|
448
455
|
[[package]]
|
|
449
456
|
name = "windows-targets"
|
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
|
@@ -12,7 +12,10 @@ crate-type = ["cdylib"]
|
|
|
12
12
|
[dependencies]
|
|
13
13
|
lz4_flex = { version = "0.11.3", default-features = true }
|
|
14
14
|
magnus = { version = "0.7.1", features = ["rb-sys"] }
|
|
15
|
-
postcard = "1.0.
|
|
15
|
+
postcard = "1.0.10"
|
|
16
16
|
rb-sys = { version = "0.9.101", features = ["stable-api-compiled-fallback"] }
|
|
17
|
-
serde = { version = "1.0.
|
|
17
|
+
serde = { version = "1.0.210", features = ["derive"] }
|
|
18
18
|
static_assertions = "1.1.0"
|
|
19
|
+
|
|
20
|
+
[build-dependencies]
|
|
21
|
+
rb-sys-env = "*"
|
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.
|
|
4
|
+
version: 1.0.0
|
|
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: 2025-01-11 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.2
|
|
74
72
|
specification_version: 4
|
|
75
73
|
summary: A modern LZ4 compression library for Ruby, leveraging the `lz4_flex` Rust
|
|
76
74
|
crate.
|