lz4_flex 0.1.2 → 1.0.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: bc6446715be16faf06cc746bae175fbcf9d0d534f06bb5b28f01405c4518d60f
4
- data.tar.gz: 04e36844f3d6f75da8dfeb157eb35eb1b9ad2e23553898685c6217876434dbd6
3
+ metadata.gz: '0759a785da9bfce484174c96f8f3319e72c16b90208af9fa3ea40f50cec9c599'
4
+ data.tar.gz: 8e2fb1b9b4571c27977ea87ce74a868e136aa89e735163e92230bb16b9f63f51
5
5
  SHA512:
6
- metadata.gz: 31f7c3aad56593ff178f18334121aaa16ecc1ab2a19f0fa2b744f967a8fbd30ec623c410291fd50e3165c209840b684045329c2e733d0c8b9c65075cc3592250
7
- data.tar.gz: 7a3cb83b51bde3ab3bf3b157b2f43a4bc848b9bb49b0f0810f7bc9a12be86f18e2ffba8ee616884e3a33c702ab983f922bb3d1857310b61a44a5daba62db4d4b
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
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.3.0"
25
+ version = "1.4.0"
26
26
  source = "registry+https://github.com/rust-lang/crates.io-index"
27
- checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"
27
+ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
28
28
 
29
29
  [[package]]
30
30
  name = "bindgen"
31
- version = "0.69.4"
31
+ version = "0.69.5"
32
32
  source = "registry+https://github.com/rust-lang/crates.io-index"
33
- checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0"
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.6.0"
51
+ version = "2.7.0"
52
52
  source = "registry+https://github.com/rust-lang/crates.io-index"
53
- checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
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.1.2"
95
+ version = "1.2.0"
96
96
  source = "registry+https://github.com/rust-lang/crates.io-index"
97
- checksum = "7059fff8937831a9ae6f0fe4d658ffabf58f2ca96aa9dec1c889f936f705f216"
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.1"
107
+ version = "0.3.2"
108
108
  source = "registry+https://github.com/rust-lang/crates.io-index"
109
- checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
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.155"
157
+ version = "0.2.169"
158
158
  source = "registry+https://github.com/rust-lang/crates.io-index"
159
- checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c"
159
+ checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a"
160
160
 
161
161
  [[package]]
162
162
  name = "libloading"
163
- version = "0.8.5"
163
+ version = "0.8.6"
164
164
  source = "registry+https://github.com/rust-lang/crates.io-index"
165
- checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4"
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.0.8"
250
+ version = "1.1.1"
250
251
  source = "registry+https://github.com/rust-lang/crates.io-index"
251
- checksum = "a55c51ee6c0db07e68448e336cf8ea4131a620edefebf9893e759b2d793420f8"
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.86"
261
+ version = "1.0.93"
261
262
  source = "registry+https://github.com/rust-lang/crates.io-index"
262
- checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
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.36"
270
+ version = "1.0.38"
270
271
  source = "registry+https://github.com/rust-lang/crates.io-index"
271
- checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
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.102"
279
+ version = "0.9.107"
279
280
  source = "registry+https://github.com/rust-lang/crates.io-index"
280
- checksum = "df4dec4b1d304c3b308a2cd86b1216ea45dd4361f4e9fa056f108332d0a450c1"
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.102"
288
+ version = "0.9.107"
288
289
  source = "registry+https://github.com/rust-lang/crates.io-index"
289
- checksum = "1d71de3e29d174b8fb17b5d4470f27d7aa2605f8a9d05fda0d3aeff30e05a570"
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.10.6"
315
+ version = "1.11.1"
309
316
  source = "registry+https://github.com/rust-lang/crates.io-index"
310
- checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619"
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.7"
327
+ version = "0.4.9"
321
328
  source = "registry+https://github.com/rust-lang/crates.io-index"
322
- checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df"
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.4"
338
+ version = "0.8.5"
332
339
  source = "registry+https://github.com/rust-lang/crates.io-index"
333
- checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b"
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.0"
350
+ version = "0.4.1"
344
351
  source = "registry+https://github.com/rust-lang/crates.io-index"
345
- checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366"
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.23"
365
+ version = "1.0.24"
359
366
  source = "registry+https://github.com/rust-lang/crates.io-index"
360
- checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b"
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.208"
377
+ version = "1.0.217"
371
378
  source = "registry+https://github.com/rust-lang/crates.io-index"
372
- checksum = "cff085d2cb684faa248efb494c39b68e522822ac0de72ccf08109abde717cfb2"
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.208"
386
+ version = "1.0.217"
380
387
  source = "registry+https://github.com/rust-lang/crates.io-index"
381
- checksum = "24008e81ff7613ed8e5ba0cfaf24e2c2f1e5b8a0495711e44fcd4882fca62bcf"
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.74"
430
+ version = "2.0.96"
424
431
  source = "registry+https://github.com/rust-lang/crates.io-index"
425
- checksum = "1fceb41e3d546d0bd83421d3409b1460cc7444cd389341a4c880fe7a042cb3d7"
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.12"
451
+ version = "1.0.14"
445
452
  source = "registry+https://github.com/rust-lang/crates.io-index"
446
- checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
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 = LZ4Flex.compress("Hello, World!")
48
+ compressed = Lz4Flex.compress("Hello, World!")
49
49
 
50
50
  # Decompress data
51
- decompressed = LZ4Flex.decompress(compressed)
51
+ decompressed = Lz4Flex.decompress(compressed)
52
52
 
53
53
  puts decompressed # => "Hello, World!"
54
54
  puts decompressed.encoding # => Encoding::UTF_8
@@ -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.8"
15
+ postcard = "1.0.10"
16
16
  rb-sys = { version = "0.9.101", features = ["stable-api-compiled-fallback"] }
17
- serde = { version = "1.0.208", features = ["derive"] }
17
+ serde = { version = "1.0.210", features = ["derive"] }
18
18
  static_assertions = "1.1.0"
19
+
20
+ [build-dependencies]
21
+ rb-sys-env = "*"
@@ -0,0 +1,4 @@
1
+ fn main() -> Result<(), Box<dyn std::error::Error>> {
2
+ rb_sys_env::activate()?;
3
+ Ok(())
4
+ }
@@ -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);
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Lz4Flex
5
- VERSION = "0.1.2"
5
+ VERSION = "1.0.0"
6
6
  end
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.2
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: 2024-08-20 00:00:00.000000000 Z
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.5.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.