async-matrix 2.0.0 → 2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b22a524df6b1dabf1a9b39a5d483f42185ffa33dea24ec714da460dee7d4350
4
- data.tar.gz: 79307bffc1d8461fc9e31c8395545d5ec43181b9298f21c3a5e23179af1a66ee
3
+ metadata.gz: 9cde8ca8632d237c371ec9a8a4ee8a422414b7e69222ca263ba505107d1dd234
4
+ data.tar.gz: 24583da0bbd5f8552990e5e1ce21d1b89dbdc41f7024da7d0377e5393665ce4e
5
5
  SHA512:
6
- metadata.gz: fae7b428ac3c1f896dc01684710dd41f115551ec0bdc31719110ca0be0a352e9ce6a656b69f3805db1a5949eb1c675e1d1c2b8703ffdbedd295aea79b95d21c0
7
- data.tar.gz: 959d7af1a0c7b2adab25f608e8834ff8493b7055a4bf9f4a0ba8673c6e5ab62f0320d78a6d559aa6e71c62157fae32b9db23bb18242fdebc42599925922cdbf2
6
+ metadata.gz: f2d44ac4cbd06266e2988bb99af9de6051a0504e448ec8c730fc8978d5e91e023eae0f2dc01b7c45100344285b2e591237ffa349f72e8466dc634552947e7e74
7
+ data.tar.gz: aaaf8397d618585875a7447c7b46ca8e1d4802cda7dbbf98d6a3b66e9e3decda4a29d6f61ae9a04acaa12abaebb888d18137bc2efed91ec628b5eedd9a4332ca
data/Cargo.lock ADDED
@@ -0,0 +1,990 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "aead"
7
+ version = "0.5.2"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0"
10
+ dependencies = [
11
+ "crypto-common",
12
+ "generic-array",
13
+ ]
14
+
15
+ [[package]]
16
+ name = "aes"
17
+ version = "0.8.4"
18
+ source = "registry+https://github.com/rust-lang/crates.io-index"
19
+ checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0"
20
+ dependencies = [
21
+ "cfg-if",
22
+ "cipher",
23
+ "cpufeatures",
24
+ ]
25
+
26
+ [[package]]
27
+ name = "aho-corasick"
28
+ version = "1.1.4"
29
+ source = "registry+https://github.com/rust-lang/crates.io-index"
30
+ checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
31
+ dependencies = [
32
+ "memchr",
33
+ ]
34
+
35
+ [[package]]
36
+ name = "anyhow"
37
+ version = "1.0.103"
38
+ source = "registry+https://github.com/rust-lang/crates.io-index"
39
+ checksum = "2a4385e2e34eb35d6b3efe798b9eb88096925d87726c0798709bf56d9ed84af3"
40
+
41
+ [[package]]
42
+ name = "arrayvec"
43
+ version = "0.7.8"
44
+ source = "registry+https://github.com/rust-lang/crates.io-index"
45
+ checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"
46
+ dependencies = [
47
+ "serde",
48
+ ]
49
+
50
+ [[package]]
51
+ name = "async_matrix_e2ee"
52
+ version = "0.1.0"
53
+ dependencies = [
54
+ "magnus",
55
+ "vodozemac",
56
+ ]
57
+
58
+ [[package]]
59
+ name = "base64"
60
+ version = "0.22.1"
61
+ source = "registry+https://github.com/rust-lang/crates.io-index"
62
+ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
63
+
64
+ [[package]]
65
+ name = "base64ct"
66
+ version = "1.8.3"
67
+ source = "registry+https://github.com/rust-lang/crates.io-index"
68
+ checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06"
69
+
70
+ [[package]]
71
+ name = "bindgen"
72
+ version = "0.72.1"
73
+ source = "registry+https://github.com/rust-lang/crates.io-index"
74
+ checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
75
+ dependencies = [
76
+ "bitflags",
77
+ "cexpr",
78
+ "clang-sys",
79
+ "itertools 0.13.0",
80
+ "proc-macro2",
81
+ "quote",
82
+ "regex",
83
+ "rustc-hash",
84
+ "shlex",
85
+ "syn",
86
+ ]
87
+
88
+ [[package]]
89
+ name = "bitflags"
90
+ version = "2.13.0"
91
+ source = "registry+https://github.com/rust-lang/crates.io-index"
92
+ checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"
93
+
94
+ [[package]]
95
+ name = "block-buffer"
96
+ version = "0.10.4"
97
+ source = "registry+https://github.com/rust-lang/crates.io-index"
98
+ checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
99
+ dependencies = [
100
+ "generic-array",
101
+ ]
102
+
103
+ [[package]]
104
+ name = "block-padding"
105
+ version = "0.3.3"
106
+ source = "registry+https://github.com/rust-lang/crates.io-index"
107
+ checksum = "a8894febbff9f758034a5b8e12d87918f56dfc64a8e1fe757d65e29041538d93"
108
+ dependencies = [
109
+ "generic-array",
110
+ ]
111
+
112
+ [[package]]
113
+ name = "bytes"
114
+ version = "1.12.1"
115
+ source = "registry+https://github.com/rust-lang/crates.io-index"
116
+ checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
117
+
118
+ [[package]]
119
+ name = "cbc"
120
+ version = "0.1.2"
121
+ source = "registry+https://github.com/rust-lang/crates.io-index"
122
+ checksum = "26b52a9543ae338f279b96b0b9fed9c8093744685043739079ce85cd58f289a6"
123
+ dependencies = [
124
+ "cipher",
125
+ ]
126
+
127
+ [[package]]
128
+ name = "cexpr"
129
+ version = "0.6.0"
130
+ source = "registry+https://github.com/rust-lang/crates.io-index"
131
+ checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
132
+ dependencies = [
133
+ "nom",
134
+ ]
135
+
136
+ [[package]]
137
+ name = "cfg-if"
138
+ version = "1.0.4"
139
+ source = "registry+https://github.com/rust-lang/crates.io-index"
140
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
141
+
142
+ [[package]]
143
+ name = "chacha20"
144
+ version = "0.9.1"
145
+ source = "registry+https://github.com/rust-lang/crates.io-index"
146
+ checksum = "c3613f74bd2eac03dad61bd53dbe620703d4371614fe0bc3b9f04dd36fe4e818"
147
+ dependencies = [
148
+ "cfg-if",
149
+ "cipher",
150
+ "cpufeatures",
151
+ ]
152
+
153
+ [[package]]
154
+ name = "chacha20poly1305"
155
+ version = "0.10.1"
156
+ source = "registry+https://github.com/rust-lang/crates.io-index"
157
+ checksum = "10cd79432192d1c0f4e1a0fef9527696cc039165d729fb41b3f4f4f354c2dc35"
158
+ dependencies = [
159
+ "aead",
160
+ "chacha20",
161
+ "cipher",
162
+ "poly1305",
163
+ "zeroize",
164
+ ]
165
+
166
+ [[package]]
167
+ name = "cipher"
168
+ version = "0.4.4"
169
+ source = "registry+https://github.com/rust-lang/crates.io-index"
170
+ checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad"
171
+ dependencies = [
172
+ "crypto-common",
173
+ "inout",
174
+ "zeroize",
175
+ ]
176
+
177
+ [[package]]
178
+ name = "clang-sys"
179
+ version = "1.8.1"
180
+ source = "registry+https://github.com/rust-lang/crates.io-index"
181
+ checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4"
182
+ dependencies = [
183
+ "glob",
184
+ "libc",
185
+ "libloading",
186
+ ]
187
+
188
+ [[package]]
189
+ name = "const-oid"
190
+ version = "0.9.6"
191
+ source = "registry+https://github.com/rust-lang/crates.io-index"
192
+ checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8"
193
+
194
+ [[package]]
195
+ name = "cpufeatures"
196
+ version = "0.2.17"
197
+ source = "registry+https://github.com/rust-lang/crates.io-index"
198
+ checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
199
+ dependencies = [
200
+ "libc",
201
+ ]
202
+
203
+ [[package]]
204
+ name = "crypto-common"
205
+ version = "0.1.7"
206
+ source = "registry+https://github.com/rust-lang/crates.io-index"
207
+ checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
208
+ dependencies = [
209
+ "generic-array",
210
+ "rand_core",
211
+ "typenum",
212
+ ]
213
+
214
+ [[package]]
215
+ name = "curve25519-dalek"
216
+ version = "4.1.3"
217
+ source = "registry+https://github.com/rust-lang/crates.io-index"
218
+ checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be"
219
+ dependencies = [
220
+ "cfg-if",
221
+ "cpufeatures",
222
+ "curve25519-dalek-derive",
223
+ "digest",
224
+ "fiat-crypto",
225
+ "rustc_version",
226
+ "serde",
227
+ "subtle",
228
+ "zeroize",
229
+ ]
230
+
231
+ [[package]]
232
+ name = "curve25519-dalek-derive"
233
+ version = "0.1.1"
234
+ source = "registry+https://github.com/rust-lang/crates.io-index"
235
+ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3"
236
+ dependencies = [
237
+ "proc-macro2",
238
+ "quote",
239
+ "syn",
240
+ ]
241
+
242
+ [[package]]
243
+ name = "der"
244
+ version = "0.7.10"
245
+ source = "registry+https://github.com/rust-lang/crates.io-index"
246
+ checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb"
247
+ dependencies = [
248
+ "const-oid",
249
+ "zeroize",
250
+ ]
251
+
252
+ [[package]]
253
+ name = "digest"
254
+ version = "0.10.7"
255
+ source = "registry+https://github.com/rust-lang/crates.io-index"
256
+ checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
257
+ dependencies = [
258
+ "block-buffer",
259
+ "crypto-common",
260
+ "subtle",
261
+ ]
262
+
263
+ [[package]]
264
+ name = "ed25519"
265
+ version = "2.2.3"
266
+ source = "registry+https://github.com/rust-lang/crates.io-index"
267
+ checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53"
268
+ dependencies = [
269
+ "pkcs8",
270
+ "serde",
271
+ "signature",
272
+ ]
273
+
274
+ [[package]]
275
+ name = "ed25519-dalek"
276
+ version = "2.2.0"
277
+ source = "registry+https://github.com/rust-lang/crates.io-index"
278
+ checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9"
279
+ dependencies = [
280
+ "curve25519-dalek",
281
+ "ed25519",
282
+ "rand_core",
283
+ "serde",
284
+ "sha2",
285
+ "subtle",
286
+ "zeroize",
287
+ ]
288
+
289
+ [[package]]
290
+ name = "either"
291
+ version = "1.16.0"
292
+ source = "registry+https://github.com/rust-lang/crates.io-index"
293
+ checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e"
294
+
295
+ [[package]]
296
+ name = "equivalent"
297
+ version = "1.0.2"
298
+ source = "registry+https://github.com/rust-lang/crates.io-index"
299
+ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
300
+
301
+ [[package]]
302
+ name = "fiat-crypto"
303
+ version = "0.2.9"
304
+ source = "registry+https://github.com/rust-lang/crates.io-index"
305
+ checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d"
306
+
307
+ [[package]]
308
+ name = "generic-array"
309
+ version = "0.14.7"
310
+ source = "registry+https://github.com/rust-lang/crates.io-index"
311
+ checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
312
+ dependencies = [
313
+ "typenum",
314
+ "version_check",
315
+ ]
316
+
317
+ [[package]]
318
+ name = "getrandom"
319
+ version = "0.2.17"
320
+ source = "registry+https://github.com/rust-lang/crates.io-index"
321
+ checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
322
+ dependencies = [
323
+ "cfg-if",
324
+ "libc",
325
+ "wasi",
326
+ ]
327
+
328
+ [[package]]
329
+ name = "glob"
330
+ version = "0.3.3"
331
+ source = "registry+https://github.com/rust-lang/crates.io-index"
332
+ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
333
+
334
+ [[package]]
335
+ name = "hashbrown"
336
+ version = "0.17.1"
337
+ source = "registry+https://github.com/rust-lang/crates.io-index"
338
+ checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
339
+
340
+ [[package]]
341
+ name = "hkdf"
342
+ version = "0.12.4"
343
+ source = "registry+https://github.com/rust-lang/crates.io-index"
344
+ checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7"
345
+ dependencies = [
346
+ "hmac",
347
+ ]
348
+
349
+ [[package]]
350
+ name = "hmac"
351
+ version = "0.12.1"
352
+ source = "registry+https://github.com/rust-lang/crates.io-index"
353
+ checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"
354
+ dependencies = [
355
+ "digest",
356
+ ]
357
+
358
+ [[package]]
359
+ name = "indexmap"
360
+ version = "2.14.0"
361
+ source = "registry+https://github.com/rust-lang/crates.io-index"
362
+ checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
363
+ dependencies = [
364
+ "equivalent",
365
+ "hashbrown",
366
+ ]
367
+
368
+ [[package]]
369
+ name = "inout"
370
+ version = "0.1.4"
371
+ source = "registry+https://github.com/rust-lang/crates.io-index"
372
+ checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01"
373
+ dependencies = [
374
+ "block-padding",
375
+ "generic-array",
376
+ ]
377
+
378
+ [[package]]
379
+ name = "itertools"
380
+ version = "0.13.0"
381
+ source = "registry+https://github.com/rust-lang/crates.io-index"
382
+ checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
383
+ dependencies = [
384
+ "either",
385
+ ]
386
+
387
+ [[package]]
388
+ name = "itertools"
389
+ version = "0.14.0"
390
+ source = "registry+https://github.com/rust-lang/crates.io-index"
391
+ checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
392
+ dependencies = [
393
+ "either",
394
+ ]
395
+
396
+ [[package]]
397
+ name = "itoa"
398
+ version = "1.0.18"
399
+ source = "registry+https://github.com/rust-lang/crates.io-index"
400
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
401
+
402
+ [[package]]
403
+ name = "lazy_static"
404
+ version = "1.5.0"
405
+ source = "registry+https://github.com/rust-lang/crates.io-index"
406
+ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
407
+
408
+ [[package]]
409
+ name = "libc"
410
+ version = "0.2.186"
411
+ source = "registry+https://github.com/rust-lang/crates.io-index"
412
+ checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
413
+
414
+ [[package]]
415
+ name = "libloading"
416
+ version = "0.8.9"
417
+ source = "registry+https://github.com/rust-lang/crates.io-index"
418
+ checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
419
+ dependencies = [
420
+ "cfg-if",
421
+ "windows-link",
422
+ ]
423
+
424
+ [[package]]
425
+ name = "magnus"
426
+ version = "0.8.2"
427
+ source = "registry+https://github.com/rust-lang/crates.io-index"
428
+ checksum = "3b36a5b126bbe97eb0d02d07acfeb327036c6319fd816139a49824a83b7f9012"
429
+ dependencies = [
430
+ "magnus-macros",
431
+ "rb-sys",
432
+ "rb-sys-env",
433
+ "seq-macro",
434
+ ]
435
+
436
+ [[package]]
437
+ name = "magnus-macros"
438
+ version = "0.8.0"
439
+ source = "registry+https://github.com/rust-lang/crates.io-index"
440
+ checksum = "47607461fd8e1513cb4f2076c197d8092d921a1ea75bd08af97398f593751892"
441
+ dependencies = [
442
+ "proc-macro2",
443
+ "quote",
444
+ "syn",
445
+ ]
446
+
447
+ [[package]]
448
+ name = "matrix-pickle"
449
+ version = "0.2.3"
450
+ source = "registry+https://github.com/rust-lang/crates.io-index"
451
+ checksum = "b3d65d46b7379dd0afa4a42f9b2269821d31afdee0111b5e0d74e3bee03553a0"
452
+ dependencies = [
453
+ "matrix-pickle-derive",
454
+ "thiserror",
455
+ ]
456
+
457
+ [[package]]
458
+ name = "matrix-pickle-derive"
459
+ version = "0.2.3"
460
+ source = "registry+https://github.com/rust-lang/crates.io-index"
461
+ checksum = "414b5e4c34009f2bc3fe35dd018f25755ca38858096574841c7332f99e2c7e77"
462
+ dependencies = [
463
+ "proc-macro-crate",
464
+ "proc-macro2",
465
+ "quote",
466
+ "syn",
467
+ ]
468
+
469
+ [[package]]
470
+ name = "memchr"
471
+ version = "2.8.3"
472
+ source = "registry+https://github.com/rust-lang/crates.io-index"
473
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
474
+
475
+ [[package]]
476
+ name = "minimal-lexical"
477
+ version = "0.2.1"
478
+ source = "registry+https://github.com/rust-lang/crates.io-index"
479
+ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
480
+
481
+ [[package]]
482
+ name = "nom"
483
+ version = "7.1.3"
484
+ source = "registry+https://github.com/rust-lang/crates.io-index"
485
+ checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
486
+ dependencies = [
487
+ "memchr",
488
+ "minimal-lexical",
489
+ ]
490
+
491
+ [[package]]
492
+ name = "opaque-debug"
493
+ version = "0.3.1"
494
+ source = "registry+https://github.com/rust-lang/crates.io-index"
495
+ checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381"
496
+
497
+ [[package]]
498
+ name = "pkcs8"
499
+ version = "0.10.2"
500
+ source = "registry+https://github.com/rust-lang/crates.io-index"
501
+ checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7"
502
+ dependencies = [
503
+ "der",
504
+ "spki",
505
+ ]
506
+
507
+ [[package]]
508
+ name = "poly1305"
509
+ version = "0.8.0"
510
+ source = "registry+https://github.com/rust-lang/crates.io-index"
511
+ checksum = "8159bd90725d2df49889a078b54f4f79e87f1f8a8444194cdca81d38f5393abf"
512
+ dependencies = [
513
+ "cpufeatures",
514
+ "opaque-debug",
515
+ "universal-hash",
516
+ ]
517
+
518
+ [[package]]
519
+ name = "ppv-lite86"
520
+ version = "0.2.21"
521
+ source = "registry+https://github.com/rust-lang/crates.io-index"
522
+ checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
523
+ dependencies = [
524
+ "zerocopy",
525
+ ]
526
+
527
+ [[package]]
528
+ name = "proc-macro-crate"
529
+ version = "3.5.0"
530
+ source = "registry+https://github.com/rust-lang/crates.io-index"
531
+ checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f"
532
+ dependencies = [
533
+ "toml_edit",
534
+ ]
535
+
536
+ [[package]]
537
+ name = "proc-macro2"
538
+ version = "1.0.106"
539
+ source = "registry+https://github.com/rust-lang/crates.io-index"
540
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
541
+ dependencies = [
542
+ "unicode-ident",
543
+ ]
544
+
545
+ [[package]]
546
+ name = "prost"
547
+ version = "0.14.4"
548
+ source = "registry+https://github.com/rust-lang/crates.io-index"
549
+ checksum = "528ac67416ff8646872a3c02cad9cc4ee5dc9f9540c9b10771855c95cb2e5ae1"
550
+ dependencies = [
551
+ "bytes",
552
+ "prost-derive",
553
+ ]
554
+
555
+ [[package]]
556
+ name = "prost-derive"
557
+ version = "0.14.4"
558
+ source = "registry+https://github.com/rust-lang/crates.io-index"
559
+ checksum = "b570b25f7617e43d59005d0990ccb79e950a423952cea19671b7a876da390adf"
560
+ dependencies = [
561
+ "anyhow",
562
+ "itertools 0.14.0",
563
+ "proc-macro2",
564
+ "quote",
565
+ "syn",
566
+ ]
567
+
568
+ [[package]]
569
+ name = "quote"
570
+ version = "1.0.46"
571
+ source = "registry+https://github.com/rust-lang/crates.io-index"
572
+ checksum = "dfbc457d0c7a0759a614551b11a6409e5951f6c7537be1f1b7682b9ae9230368"
573
+ dependencies = [
574
+ "proc-macro2",
575
+ ]
576
+
577
+ [[package]]
578
+ name = "rand"
579
+ version = "0.8.6"
580
+ source = "registry+https://github.com/rust-lang/crates.io-index"
581
+ checksum = "5ca0ecfa931c29007047d1bc58e623ab12e5590e8c7cc53200d5202b69266d8a"
582
+ dependencies = [
583
+ "libc",
584
+ "rand_chacha",
585
+ "rand_core",
586
+ ]
587
+
588
+ [[package]]
589
+ name = "rand_chacha"
590
+ version = "0.3.1"
591
+ source = "registry+https://github.com/rust-lang/crates.io-index"
592
+ checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
593
+ dependencies = [
594
+ "ppv-lite86",
595
+ "rand_core",
596
+ ]
597
+
598
+ [[package]]
599
+ name = "rand_core"
600
+ version = "0.6.4"
601
+ source = "registry+https://github.com/rust-lang/crates.io-index"
602
+ checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
603
+ dependencies = [
604
+ "getrandom",
605
+ ]
606
+
607
+ [[package]]
608
+ name = "rb-sys"
609
+ version = "0.9.128"
610
+ source = "registry+https://github.com/rust-lang/crates.io-index"
611
+ checksum = "45ca28513560e56cfb79a62b1fce363c73af170a182024ce880c77ee9429920a"
612
+ dependencies = [
613
+ "rb-sys-build",
614
+ ]
615
+
616
+ [[package]]
617
+ name = "rb-sys-build"
618
+ version = "0.9.128"
619
+ source = "registry+https://github.com/rust-lang/crates.io-index"
620
+ checksum = "ce04b2c55eff3a21aaa623fcc655d94373238e72cac6b3e1a3641ff31649f99a"
621
+ dependencies = [
622
+ "bindgen",
623
+ "lazy_static",
624
+ "proc-macro2",
625
+ "quote",
626
+ "regex",
627
+ "shell-words",
628
+ "syn",
629
+ ]
630
+
631
+ [[package]]
632
+ name = "rb-sys-env"
633
+ version = "0.2.3"
634
+ source = "registry+https://github.com/rust-lang/crates.io-index"
635
+ checksum = "cca7ad6a7e21e72151d56fe2495a259b5670e204c3adac41ee7ef676ea08117a"
636
+
637
+ [[package]]
638
+ name = "regex"
639
+ version = "1.13.0"
640
+ source = "registry+https://github.com/rust-lang/crates.io-index"
641
+ checksum = "2a0e75113e14dc5acb068cd0786884f214f1312650a3d36d269f5c4f3cdee8a2"
642
+ dependencies = [
643
+ "aho-corasick",
644
+ "memchr",
645
+ "regex-automata",
646
+ "regex-syntax",
647
+ ]
648
+
649
+ [[package]]
650
+ name = "regex-automata"
651
+ version = "0.4.15"
652
+ source = "registry+https://github.com/rust-lang/crates.io-index"
653
+ checksum = "1f388202e4b80542a0921078cc23b6333bcf1409c1e3f86404cae4766a6131db"
654
+ dependencies = [
655
+ "aho-corasick",
656
+ "memchr",
657
+ "regex-syntax",
658
+ ]
659
+
660
+ [[package]]
661
+ name = "regex-syntax"
662
+ version = "0.8.11"
663
+ source = "registry+https://github.com/rust-lang/crates.io-index"
664
+ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
665
+
666
+ [[package]]
667
+ name = "rustc-hash"
668
+ version = "2.1.3"
669
+ source = "registry+https://github.com/rust-lang/crates.io-index"
670
+ checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
671
+
672
+ [[package]]
673
+ name = "rustc_version"
674
+ version = "0.4.1"
675
+ source = "registry+https://github.com/rust-lang/crates.io-index"
676
+ checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
677
+ dependencies = [
678
+ "semver",
679
+ ]
680
+
681
+ [[package]]
682
+ name = "semver"
683
+ version = "1.0.28"
684
+ source = "registry+https://github.com/rust-lang/crates.io-index"
685
+ checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
686
+
687
+ [[package]]
688
+ name = "seq-macro"
689
+ version = "0.3.6"
690
+ source = "registry+https://github.com/rust-lang/crates.io-index"
691
+ checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
692
+
693
+ [[package]]
694
+ name = "serde"
695
+ version = "1.0.228"
696
+ source = "registry+https://github.com/rust-lang/crates.io-index"
697
+ checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
698
+ dependencies = [
699
+ "serde_core",
700
+ "serde_derive",
701
+ ]
702
+
703
+ [[package]]
704
+ name = "serde_bytes"
705
+ version = "0.11.19"
706
+ source = "registry+https://github.com/rust-lang/crates.io-index"
707
+ checksum = "a5d440709e79d88e51ac01c4b72fc6cb7314017bb7da9eeff678aa94c10e3ea8"
708
+ dependencies = [
709
+ "serde",
710
+ "serde_core",
711
+ ]
712
+
713
+ [[package]]
714
+ name = "serde_core"
715
+ version = "1.0.228"
716
+ source = "registry+https://github.com/rust-lang/crates.io-index"
717
+ checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
718
+ dependencies = [
719
+ "serde_derive",
720
+ ]
721
+
722
+ [[package]]
723
+ name = "serde_derive"
724
+ version = "1.0.228"
725
+ source = "registry+https://github.com/rust-lang/crates.io-index"
726
+ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
727
+ dependencies = [
728
+ "proc-macro2",
729
+ "quote",
730
+ "syn",
731
+ ]
732
+
733
+ [[package]]
734
+ name = "serde_json"
735
+ version = "1.0.150"
736
+ source = "registry+https://github.com/rust-lang/crates.io-index"
737
+ checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
738
+ dependencies = [
739
+ "itoa",
740
+ "memchr",
741
+ "serde",
742
+ "serde_core",
743
+ "zmij",
744
+ ]
745
+
746
+ [[package]]
747
+ name = "sha2"
748
+ version = "0.10.9"
749
+ source = "registry+https://github.com/rust-lang/crates.io-index"
750
+ checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
751
+ dependencies = [
752
+ "cfg-if",
753
+ "cpufeatures",
754
+ "digest",
755
+ ]
756
+
757
+ [[package]]
758
+ name = "shell-words"
759
+ version = "1.1.1"
760
+ source = "registry+https://github.com/rust-lang/crates.io-index"
761
+ checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"
762
+
763
+ [[package]]
764
+ name = "shlex"
765
+ version = "1.3.0"
766
+ source = "registry+https://github.com/rust-lang/crates.io-index"
767
+ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
768
+
769
+ [[package]]
770
+ name = "signature"
771
+ version = "2.2.0"
772
+ source = "registry+https://github.com/rust-lang/crates.io-index"
773
+ checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de"
774
+ dependencies = [
775
+ "rand_core",
776
+ ]
777
+
778
+ [[package]]
779
+ name = "spki"
780
+ version = "0.7.3"
781
+ source = "registry+https://github.com/rust-lang/crates.io-index"
782
+ checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d"
783
+ dependencies = [
784
+ "base64ct",
785
+ "der",
786
+ ]
787
+
788
+ [[package]]
789
+ name = "subtle"
790
+ version = "2.6.1"
791
+ source = "registry+https://github.com/rust-lang/crates.io-index"
792
+ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
793
+
794
+ [[package]]
795
+ name = "syn"
796
+ version = "2.0.118"
797
+ source = "registry+https://github.com/rust-lang/crates.io-index"
798
+ checksum = "1b9ae57f904213ebb649ce6895b8a66c66f0203b9319718f69a5612a065b1422"
799
+ dependencies = [
800
+ "proc-macro2",
801
+ "quote",
802
+ "unicode-ident",
803
+ ]
804
+
805
+ [[package]]
806
+ name = "thiserror"
807
+ version = "2.0.18"
808
+ source = "registry+https://github.com/rust-lang/crates.io-index"
809
+ checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
810
+ dependencies = [
811
+ "thiserror-impl",
812
+ ]
813
+
814
+ [[package]]
815
+ name = "thiserror-impl"
816
+ version = "2.0.18"
817
+ source = "registry+https://github.com/rust-lang/crates.io-index"
818
+ checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
819
+ dependencies = [
820
+ "proc-macro2",
821
+ "quote",
822
+ "syn",
823
+ ]
824
+
825
+ [[package]]
826
+ name = "toml_datetime"
827
+ version = "1.1.1+spec-1.1.0"
828
+ source = "registry+https://github.com/rust-lang/crates.io-index"
829
+ checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7"
830
+ dependencies = [
831
+ "serde_core",
832
+ ]
833
+
834
+ [[package]]
835
+ name = "toml_edit"
836
+ version = "0.25.12+spec-1.1.0"
837
+ source = "registry+https://github.com/rust-lang/crates.io-index"
838
+ checksum = "d2153edc6955a6c354fad8f5efd38b6a8769bdccf9fe50f8e1329f81b0baa5d7"
839
+ dependencies = [
840
+ "indexmap",
841
+ "toml_datetime",
842
+ "toml_parser",
843
+ "winnow",
844
+ ]
845
+
846
+ [[package]]
847
+ name = "toml_parser"
848
+ version = "1.1.2+spec-1.1.0"
849
+ source = "registry+https://github.com/rust-lang/crates.io-index"
850
+ checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526"
851
+ dependencies = [
852
+ "winnow",
853
+ ]
854
+
855
+ [[package]]
856
+ name = "typenum"
857
+ version = "1.20.1"
858
+ source = "registry+https://github.com/rust-lang/crates.io-index"
859
+ checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
860
+
861
+ [[package]]
862
+ name = "unicode-ident"
863
+ version = "1.0.24"
864
+ source = "registry+https://github.com/rust-lang/crates.io-index"
865
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
866
+
867
+ [[package]]
868
+ name = "universal-hash"
869
+ version = "0.5.1"
870
+ source = "registry+https://github.com/rust-lang/crates.io-index"
871
+ checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea"
872
+ dependencies = [
873
+ "crypto-common",
874
+ "subtle",
875
+ ]
876
+
877
+ [[package]]
878
+ name = "version_check"
879
+ version = "0.9.5"
880
+ source = "registry+https://github.com/rust-lang/crates.io-index"
881
+ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
882
+
883
+ [[package]]
884
+ name = "vodozemac"
885
+ version = "0.10.0"
886
+ source = "registry+https://github.com/rust-lang/crates.io-index"
887
+ checksum = "b98bf83c0992966775b8012f194b07b44928996163e5a05b741b43891571ae5b"
888
+ dependencies = [
889
+ "aes",
890
+ "arrayvec",
891
+ "base64",
892
+ "base64ct",
893
+ "cbc",
894
+ "chacha20poly1305",
895
+ "curve25519-dalek",
896
+ "ed25519-dalek",
897
+ "getrandom",
898
+ "hkdf",
899
+ "hmac",
900
+ "matrix-pickle",
901
+ "prost",
902
+ "rand",
903
+ "serde",
904
+ "serde_bytes",
905
+ "serde_json",
906
+ "sha2",
907
+ "subtle",
908
+ "thiserror",
909
+ "x25519-dalek",
910
+ "zeroize",
911
+ ]
912
+
913
+ [[package]]
914
+ name = "wasi"
915
+ version = "0.11.1+wasi-snapshot-preview1"
916
+ source = "registry+https://github.com/rust-lang/crates.io-index"
917
+ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
918
+
919
+ [[package]]
920
+ name = "windows-link"
921
+ version = "0.2.1"
922
+ source = "registry+https://github.com/rust-lang/crates.io-index"
923
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
924
+
925
+ [[package]]
926
+ name = "winnow"
927
+ version = "1.0.3"
928
+ source = "registry+https://github.com/rust-lang/crates.io-index"
929
+ checksum = "0592e1c9d151f854e6fd382574c3a0855250e1d9b2f99d9281c6e6391af352f1"
930
+ dependencies = [
931
+ "memchr",
932
+ ]
933
+
934
+ [[package]]
935
+ name = "x25519-dalek"
936
+ version = "2.0.1"
937
+ source = "registry+https://github.com/rust-lang/crates.io-index"
938
+ checksum = "c7e468321c81fb07fa7f4c636c3972b9100f0346e5b6a9f2bd0603a52f7ed277"
939
+ dependencies = [
940
+ "curve25519-dalek",
941
+ "rand_core",
942
+ "serde",
943
+ "zeroize",
944
+ ]
945
+
946
+ [[package]]
947
+ name = "zerocopy"
948
+ version = "0.8.54"
949
+ source = "registry+https://github.com/rust-lang/crates.io-index"
950
+ checksum = "b7cbbc0a705a0fd05cc3676525980d2bf5a9bc4adac6d6475209a7887cf59d19"
951
+ dependencies = [
952
+ "zerocopy-derive",
953
+ ]
954
+
955
+ [[package]]
956
+ name = "zerocopy-derive"
957
+ version = "0.8.54"
958
+ source = "registry+https://github.com/rust-lang/crates.io-index"
959
+ checksum = "e2e817b7b52d0c7358d3246da9d69935ebb18116b2b102b4230dac079b4862f5"
960
+ dependencies = [
961
+ "proc-macro2",
962
+ "quote",
963
+ "syn",
964
+ ]
965
+
966
+ [[package]]
967
+ name = "zeroize"
968
+ version = "1.9.0"
969
+ source = "registry+https://github.com/rust-lang/crates.io-index"
970
+ checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e"
971
+ dependencies = [
972
+ "zeroize_derive",
973
+ ]
974
+
975
+ [[package]]
976
+ name = "zeroize_derive"
977
+ version = "1.5.0"
978
+ source = "registry+https://github.com/rust-lang/crates.io-index"
979
+ checksum = "3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328"
980
+ dependencies = [
981
+ "proc-macro2",
982
+ "quote",
983
+ "syn",
984
+ ]
985
+
986
+ [[package]]
987
+ name = "zmij"
988
+ version = "1.0.21"
989
+ source = "registry+https://github.com/rust-lang/crates.io-index"
990
+ checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
data/Cargo.toml ADDED
@@ -0,0 +1,7 @@
1
+ # Workspace root. rb_sys / rake-compiler (and rb-sys-dock during
2
+ # cross-compilation) run `cargo metadata` from the repository root, so the native
3
+ # extension crate under ext/ must be declared here as a workspace member. The
4
+ # resolved Cargo.lock also lives at the root for reproducible cross builds.
5
+ [workspace]
6
+ members = ["ext/async_matrix_e2ee"]
7
+ resolver = "2"
data/README.md CHANGED
@@ -11,8 +11,6 @@ Async-native [Matrix](https://matrix.org) Application Service SDK for Ruby. Buil
11
11
 
12
12
  Please see the [project documentation](https://general-intelligence-systems.github.io/async-matrix/) for more details.
13
13
 
14
- - [Matrix Events Reference](https://general-intelligence-systems.github.io/async-matrix/guides/matrix-events/index) - Auto-generated documentation for every Matrix event type.
15
-
16
14
  ## Install
17
15
 
18
16
  ```ruby
@@ -38,10 +36,14 @@ bot = Async::Matrix::ApplicationService::Bot.new(client) do
38
36
  end
39
37
  end
40
38
 
41
- server = Async::Matrix::ApplicationService::Server.new(hs_token: config.appservice.hs_token)
42
- server.register(bot)
39
+ app = Async::Matrix::ApplicationService::Server.new(
40
+ hs_token: config.appservice.hs_token,
41
+ client: client
42
+ ) do
43
+ dispatch bot
44
+ end
43
45
 
44
- run server
46
+ run app
45
47
  ```
46
48
 
47
49
  ```bash
@@ -67,7 +69,7 @@ class Echo
67
69
  end
68
70
  end
69
71
 
70
- server.register(Echo.new(client))
72
+ app.dispatch(Echo.new(client))
71
73
  ```
72
74
 
73
75
  Dispatch is fault-tolerant -- one handler raising won't take down the rest.
@@ -24,8 +24,16 @@ module Async
24
24
  end
25
25
  end
26
26
 
27
- # rake-compiler installs the shared object alongside this file.
28
- require_relative "async_matrix_e2ee"
27
+ # Precompiled ("fat") gems ship one .so per Ruby minor version under a versioned
28
+ # subdir (lib/async/matrix/3.3/async_matrix_e2ee.so). A locally source-compiled
29
+ # build lands flat, alongside this file. Try the versioned path first, then fall
30
+ # back to the flat one.
31
+ begin
32
+ RUBY_VERSION =~ /(\d+\.\d+)/
33
+ require_relative "#{Regexp.last_match(1)}/async_matrix_e2ee"
34
+ rescue LoadError
35
+ require_relative "async_matrix_e2ee"
36
+ end
29
37
 
30
38
  __END__
31
39
  describe "Async::Matrix::E2EE" do
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module Matrix
8
- VERSION = "2.0.0"
8
+ VERSION = "2.0.1"
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-matrix
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Kidd
@@ -200,6 +200,8 @@ extensions:
200
200
  - ext/async_matrix_e2ee/extconf.rb
201
201
  extra_rdoc_files: []
202
202
  files:
203
+ - Cargo.lock
204
+ - Cargo.toml
203
205
  - LICENSE
204
206
  - README.md
205
207
  - data/discord-api-spec/openapi.json