y-rb 0.1.4.alpha.3-x86_64-linux-musl → 0.1.4.alpha.4-x86_64-linux-musl

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: b245a7b243c3fc1dc8e5e58d9567c807806c8739ce055ca6850431c3833a3969
4
- data.tar.gz: e3ac72220ca18c3219bafaa275ad2fecea508d9f4a894bcf217997967a5476e2
3
+ metadata.gz: 01efbbaacf8667c04dd0a7a7b04d207a668aaf9f82513e6435c3f42d604a9c79
4
+ data.tar.gz: f3bfcd5b51a3f6a323c103b46acd6e003d73602ea2a7109f416a8004e818f23e
5
5
  SHA512:
6
- metadata.gz: c10e0f304ff084dcf3c9520bb56634efea89ecc26ab788cd8f70033e3e7cebe78fa2a0642a1e1917c064ef22aa0d9f1db7bf6330a5b3acfc3049b3b2a89c282e
7
- data.tar.gz: 558488118036ae1664e082d323d56d47bbce22242ece5a04bfdc6b6309582e07eb3819899f200b7f5288888dd9a55b3929262233bd70609e19c5f8fa0d881e36
6
+ metadata.gz: d9a90df96d1ff61f5f7199fee6b1b38260bd6c23f81262c556950c4c22d47d70b7bcadeefa7c54c4fd23fdca5ddd2fdc2989f95509a6aa88cc4157a8d8a99f94
7
+ data.tar.gz: 1d4a6c3cedd55b65956de899d8e0bce5d61451286a25fb2973b4c5607f6bd6b9414c9cf48fc6241e5dc9c130021e66efec98020f0cdb028def96ef9916107f60
data/ext/yrb/Cargo.lock CHANGED
@@ -11,47 +11,23 @@ dependencies = [
11
11
  "memchr",
12
12
  ]
13
13
 
14
- [[package]]
15
- name = "ansi_term"
16
- version = "0.12.1"
17
- source = "registry+https://github.com/rust-lang/crates.io-index"
18
- checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
19
- dependencies = [
20
- "winapi",
21
- ]
22
-
23
- [[package]]
24
- name = "atty"
25
- version = "0.2.14"
26
- source = "registry+https://github.com/rust-lang/crates.io-index"
27
- checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
28
- dependencies = [
29
- "hermit-abi",
30
- "libc",
31
- "winapi",
32
- ]
33
-
34
14
  [[package]]
35
15
  name = "bindgen"
36
- version = "0.59.2"
16
+ version = "0.60.1"
37
17
  source = "registry+https://github.com/rust-lang/crates.io-index"
38
- checksum = "2bd2a9a458e8f4304c52c43ebb0cfbd520289f8379a52e329a38afda99bf8eb8"
18
+ checksum = "062dddbc1ba4aca46de6338e2bf87771414c335f7b2f2036e8f3e9befebf88e6"
39
19
  dependencies = [
40
20
  "bitflags",
41
21
  "cexpr",
42
22
  "clang-sys",
43
- "clap",
44
- "env_logger",
45
23
  "lazy_static",
46
24
  "lazycell",
47
- "log",
48
25
  "peeking_take_while",
49
26
  "proc-macro2",
50
27
  "quote",
51
28
  "regex",
52
29
  "rustc-hash",
53
30
  "shlex",
54
- "which",
55
31
  ]
56
32
 
57
33
  [[package]]
@@ -92,21 +68,6 @@ dependencies = [
92
68
  "libloading",
93
69
  ]
94
70
 
95
- [[package]]
96
- name = "clap"
97
- version = "2.34.0"
98
- source = "registry+https://github.com/rust-lang/crates.io-index"
99
- checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
100
- dependencies = [
101
- "ansi_term",
102
- "atty",
103
- "bitflags",
104
- "strsim 0.8.0",
105
- "textwrap",
106
- "unicode-width",
107
- "vec_map",
108
- ]
109
-
110
71
  [[package]]
111
72
  name = "darling"
112
73
  version = "0.13.4"
@@ -127,7 +88,7 @@ dependencies = [
127
88
  "ident_case",
128
89
  "proc-macro2",
129
90
  "quote",
130
- "strsim 0.10.0",
91
+ "strsim",
131
92
  "syn",
132
93
  ]
133
94
 
@@ -142,25 +103,6 @@ dependencies = [
142
103
  "syn",
143
104
  ]
144
105
 
145
- [[package]]
146
- name = "either"
147
- version = "1.7.0"
148
- source = "registry+https://github.com/rust-lang/crates.io-index"
149
- checksum = "3f107b87b6afc2a64fd13cac55fe06d6c8859f12d4b14cbcdd2c67d0976781be"
150
-
151
- [[package]]
152
- name = "env_logger"
153
- version = "0.9.0"
154
- source = "registry+https://github.com/rust-lang/crates.io-index"
155
- checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3"
156
- dependencies = [
157
- "atty",
158
- "humantime",
159
- "log",
160
- "regex",
161
- "termcolor",
162
- ]
163
-
164
106
  [[package]]
165
107
  name = "fnv"
166
108
  version = "1.0.7"
@@ -186,21 +128,6 @@ version = "0.3.0"
186
128
  source = "registry+https://github.com/rust-lang/crates.io-index"
187
129
  checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
188
130
 
189
- [[package]]
190
- name = "hermit-abi"
191
- version = "0.1.19"
192
- source = "registry+https://github.com/rust-lang/crates.io-index"
193
- checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
194
- dependencies = [
195
- "libc",
196
- ]
197
-
198
- [[package]]
199
- name = "humantime"
200
- version = "2.1.0"
201
- source = "registry+https://github.com/rust-lang/crates.io-index"
202
- checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
203
-
204
131
  [[package]]
205
132
  name = "ident_case"
206
133
  version = "1.0.1"
@@ -253,6 +180,15 @@ dependencies = [
253
180
  "winapi",
254
181
  ]
255
182
 
183
+ [[package]]
184
+ name = "linkify"
185
+ version = "0.9.0"
186
+ source = "registry+https://github.com/rust-lang/crates.io-index"
187
+ checksum = "96dd5884008358112bc66093362197c7248ece00d46624e2cf71e50029f8cff5"
188
+ dependencies = [
189
+ "memchr",
190
+ ]
191
+
256
192
  [[package]]
257
193
  name = "log"
258
194
  version = "0.4.17"
@@ -265,18 +201,16 @@ dependencies = [
265
201
  [[package]]
266
202
  name = "magnus"
267
203
  version = "0.3.2"
268
- source = "registry+https://github.com/rust-lang/crates.io-index"
269
- checksum = "983e15338a2e9644f804de8b5e52fb930bcd53b6859de4f4feb85753532b69d3"
204
+ source = "git+https://github.com/matsadler/magnus#cc852bfa31992d882d42509b1165eb5f67f9dc2c"
270
205
  dependencies = [
271
- "bindgen",
272
206
  "magnus-macros",
207
+ "rb-sys",
273
208
  ]
274
209
 
275
210
  [[package]]
276
211
  name = "magnus-macros"
277
212
  version = "0.1.0"
278
- source = "registry+https://github.com/rust-lang/crates.io-index"
279
- checksum = "27968fcabe2ef7e35b8331d71a62882282996f6222c133c0255cf7f33b8d9b48"
213
+ source = "git+https://github.com/matsadler/magnus#cc852bfa31992d882d42509b1165eb5f67f9dc2c"
280
214
  dependencies = [
281
215
  "darling",
282
216
  "proc-macro2",
@@ -377,6 +311,27 @@ dependencies = [
377
311
  "rand_core",
378
312
  ]
379
313
 
314
+ [[package]]
315
+ name = "rb-sys"
316
+ version = "0.9.30"
317
+ source = "registry+https://github.com/rust-lang/crates.io-index"
318
+ checksum = "24b22a374fc2e92eb6f49d7efe4eb7663655c6e9455d9259ed3342cc1599da85"
319
+ dependencies = [
320
+ "bindgen",
321
+ "linkify",
322
+ "rb-sys-build",
323
+ ]
324
+
325
+ [[package]]
326
+ name = "rb-sys-build"
327
+ version = "0.9.30"
328
+ source = "registry+https://github.com/rust-lang/crates.io-index"
329
+ checksum = "3cd23b6dd929b7d50ccb35a6d3aa77dec364328ab9cb304dd32c629332491671"
330
+ dependencies = [
331
+ "regex",
332
+ "shell-words",
333
+ ]
334
+
380
335
  [[package]]
381
336
  name = "regex"
382
337
  version = "1.6.0"
@@ -400,6 +355,12 @@ version = "1.1.0"
400
355
  source = "registry+https://github.com/rust-lang/crates.io-index"
401
356
  checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
402
357
 
358
+ [[package]]
359
+ name = "shell-words"
360
+ version = "1.1.0"
361
+ source = "registry+https://github.com/rust-lang/crates.io-index"
362
+ checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde"
363
+
403
364
  [[package]]
404
365
  name = "shlex"
405
366
  version = "1.1.0"
@@ -421,12 +382,6 @@ version = "1.9.0"
421
382
  source = "registry+https://github.com/rust-lang/crates.io-index"
422
383
  checksum = "2fd0db749597d91ff862fd1d55ea87f7855a744a8425a64695b6fca237d1dad1"
423
384
 
424
- [[package]]
425
- name = "strsim"
426
- version = "0.8.0"
427
- source = "registry+https://github.com/rust-lang/crates.io-index"
428
- checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
429
-
430
385
  [[package]]
431
386
  name = "strsim"
432
387
  version = "0.10.0"
@@ -444,24 +399,6 @@ dependencies = [
444
399
  "unicode-ident",
445
400
  ]
446
401
 
447
- [[package]]
448
- name = "termcolor"
449
- version = "1.1.3"
450
- source = "registry+https://github.com/rust-lang/crates.io-index"
451
- checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755"
452
- dependencies = [
453
- "winapi-util",
454
- ]
455
-
456
- [[package]]
457
- name = "textwrap"
458
- version = "0.11.0"
459
- source = "registry+https://github.com/rust-lang/crates.io-index"
460
- checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
461
- dependencies = [
462
- "unicode-width",
463
- ]
464
-
465
402
  [[package]]
466
403
  name = "thiserror"
467
404
  version = "1.0.31"
@@ -488,18 +425,6 @@ version = "1.0.2"
488
425
  source = "registry+https://github.com/rust-lang/crates.io-index"
489
426
  checksum = "15c61ba63f9235225a22310255a29b806b907c9b8c964bcbd0a2c70f3f2deea7"
490
427
 
491
- [[package]]
492
- name = "unicode-width"
493
- version = "0.1.9"
494
- source = "registry+https://github.com/rust-lang/crates.io-index"
495
- checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973"
496
-
497
- [[package]]
498
- name = "vec_map"
499
- version = "0.8.2"
500
- source = "registry+https://github.com/rust-lang/crates.io-index"
501
- checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
502
-
503
428
  [[package]]
504
429
  name = "wasi"
505
430
  version = "0.9.0+wasi-snapshot-preview1"
@@ -560,17 +485,6 @@ version = "0.2.81"
560
485
  source = "registry+https://github.com/rust-lang/crates.io-index"
561
486
  checksum = "6a89911bd99e5f3659ec4acf9c4d93b0a90fe4a2a11f15328472058edc5261be"
562
487
 
563
- [[package]]
564
- name = "which"
565
- version = "4.2.5"
566
- source = "registry+https://github.com/rust-lang/crates.io-index"
567
- checksum = "5c4fb54e6113b6a8772ee41c3404fb0301ac79604489467e0a9ce1f3e97c24ae"
568
- dependencies = [
569
- "either",
570
- "lazy_static",
571
- "libc",
572
- ]
573
-
574
488
  [[package]]
575
489
  name = "winapi"
576
490
  version = "0.3.9"
@@ -587,15 +501,6 @@ version = "0.4.0"
587
501
  source = "registry+https://github.com/rust-lang/crates.io-index"
588
502
  checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
589
503
 
590
- [[package]]
591
- name = "winapi-util"
592
- version = "0.1.5"
593
- source = "registry+https://github.com/rust-lang/crates.io-index"
594
- checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
595
- dependencies = [
596
- "winapi",
597
- ]
598
-
599
504
  [[package]]
600
505
  name = "winapi-x86_64-pc-windows-gnu"
601
506
  version = "0.4.0"
data/ext/yrb/Cargo.toml CHANGED
@@ -8,9 +8,12 @@ repository = "https://github.com/y-crdt/yrb"
8
8
 
9
9
  [dependencies]
10
10
  lib0 = "0.11.2" # must match yrs version
11
- magnus = "0.3.2"
11
+ magnus = { git = "https://github.com/matsadler/magnus" } # waiting for release with full rb-sys backend
12
12
  yrs = "0.11.2"
13
13
 
14
+ [dev-dependencies]
15
+ magnus = { git = "https://github.com/matsadler/magnus", features = ["embed"] } # waiting for release with full rb-sys backend
16
+
14
17
  [lib]
15
18
  name = "yrb"
16
19
  crate-type = ["cdylib"]
@@ -11,6 +11,9 @@ use yrs::Array;
11
11
  #[magnus::wrap(class = "Y::Array")]
12
12
  pub(crate) struct YArray(pub(crate) RefCell<Array>);
13
13
 
14
+ /// SAFETY: This is safe because we only access this data when the GVL is held.
15
+ unsafe impl Send for YArray {}
16
+
14
17
  impl YArray {
15
18
  pub(crate) fn yarray_each(&self, block: Proc) -> () {
16
19
  self.0.borrow_mut().iter().for_each(|val| {
data/ext/yrb/src/ymap.rs CHANGED
@@ -11,6 +11,9 @@ use yrs::Map;
11
11
  #[magnus::wrap(class = "Y::Map")]
12
12
  pub(crate) struct YMap(pub(crate) RefCell<Map>);
13
13
 
14
+ /// SAFETY: This is safe because we only access this data when the GVL is held.
15
+ unsafe impl Send for YMap {}
16
+
14
17
  impl YMap {
15
18
  pub(crate) fn ymap_clear(&self, transaction: &YTransaction) {
16
19
  self.0.borrow_mut().clear(&mut *transaction.0.borrow_mut());
data/ext/yrb/src/ytext.rs CHANGED
@@ -12,6 +12,9 @@ use yrs::Text;
12
12
  #[magnus::wrap(class = "Y::Text")]
13
13
  pub(crate) struct YText(pub(crate) RefCell<Text>);
14
14
 
15
+ /// SAFETY: This is safe because we only access this data when the GVL is held.
16
+ unsafe impl Send for YText {}
17
+
15
18
  impl YText {
16
19
  pub(crate) fn ytext_format(
17
20
  &self,
@@ -12,6 +12,9 @@ use yrs::{Transaction, Update};
12
12
  #[magnus::wrap(class = "Y::Transaction")]
13
13
  pub(crate) struct YTransaction(pub(crate) RefCell<Transaction>);
14
14
 
15
+ /// SAFETY: This is safe because we only access this data when the GVL is held.
16
+ unsafe impl Send for YTransaction {}
17
+
15
18
  impl YTransaction {
16
19
  pub(crate) fn ytransaction_apply_update(
17
20
  &self,
@@ -10,6 +10,9 @@ use yrs::{Xml, XmlElement};
10
10
  #[magnus::wrap(class = "Y::XMLElement")]
11
11
  pub(crate) struct YXmlElement(pub(crate) RefCell<XmlElement>);
12
12
 
13
+ /// SAFETY: This is safe because we only access this data when the GVL is held.
14
+ unsafe impl Send for YXmlElement {}
15
+
13
16
  impl YXmlElement {
14
17
  pub(crate) fn yxml_element_attributes(&self) -> RHash {
15
18
  RHash::from_iter(self.0.borrow().attributes().into_iter())
@@ -9,6 +9,9 @@ use yrs::{Xml, XmlText};
9
9
  #[magnus::wrap(class = "Y::XMLText")]
10
10
  pub(crate) struct YXmlText(pub(crate) RefCell<XmlText>);
11
11
 
12
+ /// SAFETY: This is safe because we only access this data when the GVL is held.
13
+ unsafe impl Send for YXmlText {}
14
+
12
15
  impl YXmlText {
13
16
  pub(crate) fn yxml_text_attributes(&self) -> RHash {
14
17
  RHash::from_iter(self.0.borrow().attributes().into_iter())