safetensors 0.1.2 → 0.1.3

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: 863fc86c423c81993964f13b79dafd0b0838db8602ee8329c5519aa07582b256
4
- data.tar.gz: 5a42d1150bcc856d90e588eb474c07462547bc78b5a5469273cf2ad056ac61e1
3
+ metadata.gz: 9e6e574ddd5a4e75f46745804b8c9a3bdfad061cc05494b40eb991ca58f87f10
4
+ data.tar.gz: a8e3c1a883cb94eb363e8a5ea5441bfd1c1642c359e775db3e2dda2792e56191
5
5
  SHA512:
6
- metadata.gz: 2145d70670bb9a883ec28a881b58dc277d2aa9f31a30d24be2d3a99cc7830ea634545c6346b8d0967b8f3fd0c22e323c0e30faf2039039f92009e57ddd711a86
7
- data.tar.gz: 8c2487405ed71c7f3590bab14b4d66cd4fcb41e241dbd616358b1c33e9450db8521f830656236a0dde5aa022752731e531bc9f639c12f78d6112a3e19e69f901
6
+ metadata.gz: 29e0a1c3c8db774b77a8a953cdb0dff60c06637a304ea3b764871ed18def58493bb4835538bc0cb8c3240a749b0d7c1a75b25d720cc8fc6bc444d83845a16b3e
7
+ data.tar.gz: 06e8904ec3e525bb2080710beff4747391d5c502765829371f576fcbf84c4027d63f4f6834cee928c09b03926584947be1ade7418c9fe1a644ec10c465f589a0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.3 (2024-12-28)
2
+
3
+ - Added support for Ruby 3.4
4
+
1
5
  ## 0.1.2 (2024-09-08)
2
6
 
3
7
  - Updated Safetensors to 0.4.5
data/Cargo.lock CHANGED
@@ -13,9 +13,9 @@ dependencies = [
13
13
 
14
14
  [[package]]
15
15
  name = "bindgen"
16
- version = "0.69.4"
16
+ version = "0.69.5"
17
17
  source = "registry+https://github.com/rust-lang/crates.io-index"
18
- checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0"
18
+ checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088"
19
19
  dependencies = [
20
20
  "bitflags",
21
21
  "cexpr",
@@ -71,9 +71,9 @@ checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"
71
71
 
72
72
  [[package]]
73
73
  name = "glob"
74
- version = "0.3.1"
74
+ version = "0.3.2"
75
75
  source = "registry+https://github.com/rust-lang/crates.io-index"
76
- checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
76
+ checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
77
77
 
78
78
  [[package]]
79
79
  name = "itertools"
@@ -86,9 +86,9 @@ dependencies = [
86
86
 
87
87
  [[package]]
88
88
  name = "itoa"
89
- version = "1.0.11"
89
+ version = "1.0.14"
90
90
  source = "registry+https://github.com/rust-lang/crates.io-index"
91
- checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"
91
+ checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674"
92
92
 
93
93
  [[package]]
94
94
  name = "lazy_static"
@@ -104,15 +104,15 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
104
104
 
105
105
  [[package]]
106
106
  name = "libc"
107
- version = "0.2.157"
107
+ version = "0.2.169"
108
108
  source = "registry+https://github.com/rust-lang/crates.io-index"
109
- checksum = "374af5f94e54fa97cf75e945cce8a6b201e88a1a07e688b47dfd2a59c66dbd86"
109
+ checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a"
110
110
 
111
111
  [[package]]
112
112
  name = "libloading"
113
- version = "0.8.5"
113
+ version = "0.8.6"
114
114
  source = "registry+https://github.com/rust-lang/crates.io-index"
115
- checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4"
115
+ checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34"
116
116
  dependencies = [
117
117
  "cfg-if",
118
118
  "windows-targets",
@@ -174,36 +174,36 @@ dependencies = [
174
174
 
175
175
  [[package]]
176
176
  name = "proc-macro2"
177
- version = "1.0.86"
177
+ version = "1.0.92"
178
178
  source = "registry+https://github.com/rust-lang/crates.io-index"
179
- checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
179
+ checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0"
180
180
  dependencies = [
181
181
  "unicode-ident",
182
182
  ]
183
183
 
184
184
  [[package]]
185
185
  name = "quote"
186
- version = "1.0.36"
186
+ version = "1.0.38"
187
187
  source = "registry+https://github.com/rust-lang/crates.io-index"
188
- checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
188
+ checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc"
189
189
  dependencies = [
190
190
  "proc-macro2",
191
191
  ]
192
192
 
193
193
  [[package]]
194
194
  name = "rb-sys"
195
- version = "0.9.101"
195
+ version = "0.9.105"
196
196
  source = "registry+https://github.com/rust-lang/crates.io-index"
197
- checksum = "1ba2704ccfa7875c91792c57a9aa7c3caac524d3036c122e36eeddad6f6e7c6f"
197
+ checksum = "4b3a1f3ce8e7c36d777d52fe7a99039fe4fea7c8ec355a4c4f3a17f92a14029f"
198
198
  dependencies = [
199
199
  "rb-sys-build",
200
200
  ]
201
201
 
202
202
  [[package]]
203
203
  name = "rb-sys-build"
204
- version = "0.9.101"
204
+ version = "0.9.105"
205
205
  source = "registry+https://github.com/rust-lang/crates.io-index"
206
- checksum = "c73585ec80c217b7a81257ca9bb89b191b5e452ec4b9106dc4c2e4e96a822242"
206
+ checksum = "3e6b246c29c0809e1cbe60a1ba9e093da72a4676d02adc68469297d1e589bbf0"
207
207
  dependencies = [
208
208
  "bindgen",
209
209
  "lazy_static",
@@ -222,9 +222,9 @@ checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
222
222
 
223
223
  [[package]]
224
224
  name = "regex"
225
- version = "1.10.6"
225
+ version = "1.11.1"
226
226
  source = "registry+https://github.com/rust-lang/crates.io-index"
227
- checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619"
227
+ checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
228
228
  dependencies = [
229
229
  "aho-corasick",
230
230
  "memchr",
@@ -234,9 +234,9 @@ dependencies = [
234
234
 
235
235
  [[package]]
236
236
  name = "regex-automata"
237
- version = "0.4.7"
237
+ version = "0.4.9"
238
238
  source = "registry+https://github.com/rust-lang/crates.io-index"
239
- checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df"
239
+ checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
240
240
  dependencies = [
241
241
  "aho-corasick",
242
242
  "memchr",
@@ -245,9 +245,9 @@ dependencies = [
245
245
 
246
246
  [[package]]
247
247
  name = "regex-syntax"
248
- version = "0.8.4"
248
+ version = "0.8.5"
249
249
  source = "registry+https://github.com/rust-lang/crates.io-index"
250
- checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b"
250
+ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
251
251
 
252
252
  [[package]]
253
253
  name = "rustc-hash"
@@ -263,7 +263,7 @@ checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"
263
263
 
264
264
  [[package]]
265
265
  name = "safetensors"
266
- version = "0.1.2"
266
+ version = "0.1.3"
267
267
  dependencies = [
268
268
  "magnus",
269
269
  "memmap2",
@@ -289,18 +289,18 @@ checksum = "a3f0bf26fd526d2a95683cd0f87bf103b8539e2ca1ef48ce002d67aad59aa0b4"
289
289
 
290
290
  [[package]]
291
291
  name = "serde"
292
- version = "1.0.208"
292
+ version = "1.0.217"
293
293
  source = "registry+https://github.com/rust-lang/crates.io-index"
294
- checksum = "cff085d2cb684faa248efb494c39b68e522822ac0de72ccf08109abde717cfb2"
294
+ checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70"
295
295
  dependencies = [
296
296
  "serde_derive",
297
297
  ]
298
298
 
299
299
  [[package]]
300
300
  name = "serde_derive"
301
- version = "1.0.208"
301
+ version = "1.0.217"
302
302
  source = "registry+https://github.com/rust-lang/crates.io-index"
303
- checksum = "24008e81ff7613ed8e5ba0cfaf24e2c2f1e5b8a0495711e44fcd4882fca62bcf"
303
+ checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0"
304
304
  dependencies = [
305
305
  "proc-macro2",
306
306
  "quote",
@@ -309,9 +309,9 @@ dependencies = [
309
309
 
310
310
  [[package]]
311
311
  name = "serde_json"
312
- version = "1.0.125"
312
+ version = "1.0.134"
313
313
  source = "registry+https://github.com/rust-lang/crates.io-index"
314
- checksum = "83c8e735a073ccf5be70aa8066aa984eaf2fa000db6c8d0100ae605b366d31ed"
314
+ checksum = "d00f4175c42ee48b15416f6193a959ba3a0d67fc699a0db9ad12df9f83991c7d"
315
315
  dependencies = [
316
316
  "itoa",
317
317
  "memchr",
@@ -333,9 +333,9 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
333
333
 
334
334
  [[package]]
335
335
  name = "syn"
336
- version = "2.0.75"
336
+ version = "2.0.93"
337
337
  source = "registry+https://github.com/rust-lang/crates.io-index"
338
- checksum = "f6af063034fc1935ede7be0122941bafa9bacb949334d090b77ca98b5817c7d9"
338
+ checksum = "9c786062daee0d6db1132800e623df74274a0a87322d8e183338e01b3d98d058"
339
339
  dependencies = [
340
340
  "proc-macro2",
341
341
  "quote",
@@ -344,9 +344,9 @@ dependencies = [
344
344
 
345
345
  [[package]]
346
346
  name = "unicode-ident"
347
- version = "1.0.12"
347
+ version = "1.0.14"
348
348
  source = "registry+https://github.com/rust-lang/crates.io-index"
349
- checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
349
+ checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83"
350
350
 
351
351
  [[package]]
352
352
  name = "windows-targets"
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "safetensors"
3
- version = "0.1.2"
3
+ version = "0.1.3"
4
4
  license = "Apache-2.0"
5
5
  authors = ["Andrew Kane <andrew@ankane.org>"]
6
6
  edition = "2021"
@@ -52,7 +52,7 @@ fn prepare(tensor_dict: &RHash) -> RbResult<HashMap<String, TensorView<'_>>> {
52
52
  // so the string will not be modified (or garbage collected)
53
53
  // while the reference is held. Also, the string is a private copy.
54
54
  let slice = unsafe { rs.as_slice() };
55
- data = Some((slice.as_ptr(), slice.len()))
55
+ data = Some((slice.as_ptr(), slice.len()));
56
56
  }
57
57
  _ => println!("Ignored unknown kwarg option {key}"),
58
58
  };
@@ -1,3 +1,3 @@
1
1
  module Safetensors
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: safetensors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-09-09 00:00:00.000000000 Z
10
+ date: 2024-12-29 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rb_sys
@@ -24,7 +23,6 @@ dependencies:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
25
  version: '0'
27
- description:
28
26
  email: andrew@ankane.org
29
27
  executables: []
30
28
  extensions:
@@ -47,7 +45,6 @@ homepage: https://github.com/ankane/safetensors-ruby
47
45
  licenses:
48
46
  - Apache-2.0
49
47
  metadata: {}
50
- post_install_message:
51
48
  rdoc_options: []
52
49
  require_paths:
53
50
  - lib
@@ -62,8 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
59
  - !ruby/object:Gem::Version
63
60
  version: '0'
64
61
  requirements: []
65
- rubygems_version: 3.5.16
66
- signing_key:
62
+ rubygems_version: 3.6.2
67
63
  specification_version: 4
68
64
  summary: Simple, safe way to store and distribute tensors
69
65
  test_files: []