xre2 0.1.0 → 0.2.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: 55ca051b3f858164be0f5e79831c1ca4b7df267d4e3597f8c128db79524b4f0a
4
- data.tar.gz: 0a2d988389268e3cac55d5970075111f74c110479bf1bfc0213b7ee989424872
3
+ metadata.gz: 919152e7fb958450194d682d69c6adc9f2ad576ff3f832e1fb913db820bd5322
4
+ data.tar.gz: 58ddf421c42e2d3b243f98904bae4f12c3c762bbdb942436d95c82494cb09b62
5
5
  SHA512:
6
- metadata.gz: 0fc6f00f3d0283128e09b16bb61210f8de3e9f74f4605b730a36d2790f8a78a6adb2e461f089a585324663b03b98545bcffedfdf59f872f285a423f1cf9d08c0
7
- data.tar.gz: ed746fbdf6a0da543a08a5b8259e34541d6feb92f46605a509a931b2419d0d6cefe70fff0cdea2163d4c0e1e153fa2833d3fa6e772160ce0e9d7306093459648
6
+ metadata.gz: 94b5efe9cd317b393e7d674da04a27a54931c51cbb27af8d8371f61a6db67935c362e0152a31e37e014575f95b09041c3a02dfea914906672a7a23dfdba4f9cf
7
+ data.tar.gz: 53fa690dbf0872e34fa190edfb03331f847a8e2b70769f7c6a3eeb7ae9b12f93efb1675e86af020579f5be90687c4844d2b753499e01253402429a83f676370b
data/README.md CHANGED
@@ -1,24 +1,20 @@
1
1
  # Xre2
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
4
-
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/xre2`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ some rust regexes for ruby
6
4
 
7
5
  ## Installation
8
6
 
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
-
11
7
  Install the gem and add to the application's Gemfile by executing:
12
8
 
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
9
+ $ bundle add xre2
14
10
 
15
11
  If bundler is not being used to manage dependencies, install the gem by executing:
16
12
 
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
13
+ $ gem install xre2
18
14
 
19
15
  ## Usage
20
16
 
21
- TODO: Write usage instructions here
17
+ todo
22
18
 
23
19
  ## Development
24
20
 
@@ -28,7 +24,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
28
24
 
29
25
  ## Contributing
30
26
 
31
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/xre2. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/xre2/blob/main/CODE_OF_CONDUCT.md).
27
+ Bug reports and pull requests are welcome on GitHub at https://github.com/vagab/xre2. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/vagab/xre2/blob/main/CODE_OF_CONDUCT.md).
32
28
 
33
29
  ## License
34
30
 
@@ -36,4 +32,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
36
32
 
37
33
  ## Code of Conduct
38
34
 
39
- Everyone interacting in the Xre2 project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/xre2/blob/main/CODE_OF_CONDUCT.md).
35
+ Everyone interacting in the Xre2 project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/vagab/xre2/blob/main/CODE_OF_CONDUCT.md).
data/ext/xre2/src/lib.rs CHANGED
@@ -1,44 +1,70 @@
1
1
  use magnus::{function, prelude::*, Error, Ruby};
2
- use pcre2::bytes::*;
3
2
 
4
- fn onig(target: String, subject: String) -> Vec<(usize, usize)> {
3
+ fn onig(target: String, subject: String) -> Vec<(String, usize)> {
4
+ let mut chars_start_iterator = subject.char_indices().enumerate();
5
+
5
6
  onig::Regex::new(&target)
6
7
  .unwrap()
7
8
  .find_iter(&subject)
9
+ .map(|m| {
10
+ (
11
+ subject[m.0..m.1].to_string(),
12
+ find_char_index(&mut chars_start_iterator, m.0),
13
+ )
14
+ })
8
15
  .collect()
9
16
  }
10
17
 
11
18
  fn fancy(target: String, subject: String) -> Vec<(String, usize)> {
19
+ let mut chars_iterator = subject.char_indices().enumerate();
20
+
12
21
  fancy_regex::RegexBuilder::new(&target)
13
- .backtrack_limit(10_000_000)
22
+ .backtrack_limit(100_000_000)
14
23
  .build()
15
24
  .unwrap()
16
25
  .find_iter(&subject)
17
26
  .map(|m| m.unwrap())
18
- .map(|m| (m.as_str().to_string(), m.start() + 1))
27
+ .map(|m| {
28
+ (
29
+ m.as_str().trim().to_string(),
30
+ find_char_index(&mut chars_iterator, m.start()),
31
+ )
32
+ })
19
33
  .collect()
20
34
  }
21
35
 
22
- fn pcre2(target: String, subject: String) -> Vec<(String, usize)> {
23
- RegexBuilder::new()
24
- .build(&target)
36
+ fn fancy_captures(target: String, subject: String) -> Vec<(String, usize)> {
37
+ let mut chars_iterator = subject.char_indices().enumerate();
38
+
39
+ fancy_regex::RegexBuilder::new(&target)
40
+ .backtrack_limit(100_000_000)
41
+ .build()
25
42
  .unwrap()
26
- .find_iter(subject.as_bytes())
27
- .map(|m| m.unwrap())
43
+ .captures_iter(&subject)
44
+ .map(|m| m.unwrap().iter().nth(1).unwrap().unwrap())
28
45
  .map(|m| {
29
46
  (
30
- std::str::from_utf8(m.as_bytes()).unwrap().to_string(),
31
- m.start() + 1,
47
+ m.as_str().trim().to_string(),
48
+ find_char_index(&mut chars_iterator, m.start()),
32
49
  )
33
50
  })
34
51
  .collect()
35
52
  }
36
53
 
54
+ fn find_char_index(
55
+ iterator: &mut std::iter::Enumerate<std::str::CharIndices>,
56
+ byte_start: usize,
57
+ ) -> usize {
58
+ iterator
59
+ .find_map(|(idx, (byte_index, _))| (byte_index >= byte_start).then_some(idx))
60
+ .unwrap_or(0)
61
+ }
62
+
37
63
  #[magnus::init]
38
64
  fn init(ruby: &Ruby) -> Result<(), Error> {
39
65
  let module = ruby.define_module("Xre2")?;
40
66
  module.define_singleton_method("fancy", function!(fancy, 2))?;
67
+ module.define_singleton_method("fancy_captures", function!(fancy_captures, 2))?;
41
68
  module.define_singleton_method("onig", function!(onig, 2))?;
42
- module.define_singleton_method("pcre2", function!(pcre2, 2))?;
43
69
  Ok(())
44
70
  }
data/lib/xre2/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Xre2
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
@@ -0,0 +1,675 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 3
4
+
5
+ [[package]]
6
+ name = "aho-corasick"
7
+ version = "1.1.3"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
10
+ dependencies = [
11
+ "memchr",
12
+ ]
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
+ [[package]]
35
+ name = "bindgen"
36
+ version = "0.59.2"
37
+ source = "registry+https://github.com/rust-lang/crates.io-index"
38
+ checksum = "2bd2a9a458e8f4304c52c43ebb0cfbd520289f8379a52e329a38afda99bf8eb8"
39
+ dependencies = [
40
+ "bitflags 1.3.2",
41
+ "cexpr",
42
+ "clang-sys",
43
+ "clap",
44
+ "env_logger",
45
+ "lazy_static",
46
+ "lazycell",
47
+ "log",
48
+ "peeking_take_while",
49
+ "proc-macro2",
50
+ "quote",
51
+ "regex",
52
+ "rustc-hash",
53
+ "shlex",
54
+ "which",
55
+ ]
56
+
57
+ [[package]]
58
+ name = "bindgen"
59
+ version = "0.69.4"
60
+ source = "registry+https://github.com/rust-lang/crates.io-index"
61
+ checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0"
62
+ dependencies = [
63
+ "bitflags 2.5.0",
64
+ "cexpr",
65
+ "clang-sys",
66
+ "itertools",
67
+ "lazy_static",
68
+ "lazycell",
69
+ "proc-macro2",
70
+ "quote",
71
+ "regex",
72
+ "rustc-hash",
73
+ "shlex",
74
+ "syn",
75
+ ]
76
+
77
+ [[package]]
78
+ name = "bit-set"
79
+ version = "0.5.3"
80
+ source = "registry+https://github.com/rust-lang/crates.io-index"
81
+ checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1"
82
+ dependencies = [
83
+ "bit-vec",
84
+ ]
85
+
86
+ [[package]]
87
+ name = "bit-vec"
88
+ version = "0.6.3"
89
+ source = "registry+https://github.com/rust-lang/crates.io-index"
90
+ checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb"
91
+
92
+ [[package]]
93
+ name = "bitflags"
94
+ version = "1.3.2"
95
+ source = "registry+https://github.com/rust-lang/crates.io-index"
96
+ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
97
+
98
+ [[package]]
99
+ name = "bitflags"
100
+ version = "2.5.0"
101
+ source = "registry+https://github.com/rust-lang/crates.io-index"
102
+ checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1"
103
+
104
+ [[package]]
105
+ name = "cc"
106
+ version = "1.0.90"
107
+ source = "registry+https://github.com/rust-lang/crates.io-index"
108
+ checksum = "8cd6604a82acf3039f1144f54b8eb34e91ffba622051189e71b781822d5ee1f5"
109
+ dependencies = [
110
+ "jobserver",
111
+ "libc",
112
+ ]
113
+
114
+ [[package]]
115
+ name = "cexpr"
116
+ version = "0.6.0"
117
+ source = "registry+https://github.com/rust-lang/crates.io-index"
118
+ checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
119
+ dependencies = [
120
+ "nom",
121
+ ]
122
+
123
+ [[package]]
124
+ name = "cfg-if"
125
+ version = "1.0.0"
126
+ source = "registry+https://github.com/rust-lang/crates.io-index"
127
+ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
128
+
129
+ [[package]]
130
+ name = "clang-sys"
131
+ version = "1.7.0"
132
+ source = "registry+https://github.com/rust-lang/crates.io-index"
133
+ checksum = "67523a3b4be3ce1989d607a828d036249522dd9c1c8de7f4dd2dae43a37369d1"
134
+ dependencies = [
135
+ "glob",
136
+ "libc",
137
+ "libloading",
138
+ ]
139
+
140
+ [[package]]
141
+ name = "clap"
142
+ version = "2.34.0"
143
+ source = "registry+https://github.com/rust-lang/crates.io-index"
144
+ checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
145
+ dependencies = [
146
+ "ansi_term",
147
+ "atty",
148
+ "bitflags 1.3.2",
149
+ "strsim",
150
+ "textwrap",
151
+ "unicode-width",
152
+ "vec_map",
153
+ ]
154
+
155
+ [[package]]
156
+ name = "either"
157
+ version = "1.10.0"
158
+ source = "registry+https://github.com/rust-lang/crates.io-index"
159
+ checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a"
160
+
161
+ [[package]]
162
+ name = "env_logger"
163
+ version = "0.9.3"
164
+ source = "registry+https://github.com/rust-lang/crates.io-index"
165
+ checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7"
166
+ dependencies = [
167
+ "atty",
168
+ "humantime",
169
+ "log",
170
+ "regex",
171
+ "termcolor",
172
+ ]
173
+
174
+ [[package]]
175
+ name = "errno"
176
+ version = "0.3.8"
177
+ source = "registry+https://github.com/rust-lang/crates.io-index"
178
+ checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245"
179
+ dependencies = [
180
+ "libc",
181
+ "windows-sys",
182
+ ]
183
+
184
+ [[package]]
185
+ name = "fancy-regex"
186
+ version = "0.13.0"
187
+ source = "registry+https://github.com/rust-lang/crates.io-index"
188
+ checksum = "531e46835a22af56d1e3b66f04844bed63158bc094a628bec1d321d9b4c44bf2"
189
+ dependencies = [
190
+ "bit-set",
191
+ "regex-automata",
192
+ "regex-syntax",
193
+ ]
194
+
195
+ [[package]]
196
+ name = "glob"
197
+ version = "0.3.1"
198
+ source = "registry+https://github.com/rust-lang/crates.io-index"
199
+ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
200
+
201
+ [[package]]
202
+ name = "hermit-abi"
203
+ version = "0.1.19"
204
+ source = "registry+https://github.com/rust-lang/crates.io-index"
205
+ checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
206
+ dependencies = [
207
+ "libc",
208
+ ]
209
+
210
+ [[package]]
211
+ name = "home"
212
+ version = "0.5.9"
213
+ source = "registry+https://github.com/rust-lang/crates.io-index"
214
+ checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5"
215
+ dependencies = [
216
+ "windows-sys",
217
+ ]
218
+
219
+ [[package]]
220
+ name = "humantime"
221
+ version = "2.1.0"
222
+ source = "registry+https://github.com/rust-lang/crates.io-index"
223
+ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
224
+
225
+ [[package]]
226
+ name = "itertools"
227
+ version = "0.12.1"
228
+ source = "registry+https://github.com/rust-lang/crates.io-index"
229
+ checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
230
+ dependencies = [
231
+ "either",
232
+ ]
233
+
234
+ [[package]]
235
+ name = "jobserver"
236
+ version = "0.1.28"
237
+ source = "registry+https://github.com/rust-lang/crates.io-index"
238
+ checksum = "ab46a6e9526ddef3ae7f787c06f0f2600639ba80ea3eade3d8e670a2230f51d6"
239
+ dependencies = [
240
+ "libc",
241
+ ]
242
+
243
+ [[package]]
244
+ name = "lazy_static"
245
+ version = "1.4.0"
246
+ source = "registry+https://github.com/rust-lang/crates.io-index"
247
+ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
248
+
249
+ [[package]]
250
+ name = "lazycell"
251
+ version = "1.3.0"
252
+ source = "registry+https://github.com/rust-lang/crates.io-index"
253
+ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
254
+
255
+ [[package]]
256
+ name = "libc"
257
+ version = "0.2.153"
258
+ source = "registry+https://github.com/rust-lang/crates.io-index"
259
+ checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
260
+
261
+ [[package]]
262
+ name = "libloading"
263
+ version = "0.8.3"
264
+ source = "registry+https://github.com/rust-lang/crates.io-index"
265
+ checksum = "0c2a198fb6b0eada2a8df47933734e6d35d350665a33a3593d7164fa52c75c19"
266
+ dependencies = [
267
+ "cfg-if",
268
+ "windows-targets",
269
+ ]
270
+
271
+ [[package]]
272
+ name = "linux-raw-sys"
273
+ version = "0.4.13"
274
+ source = "registry+https://github.com/rust-lang/crates.io-index"
275
+ checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c"
276
+
277
+ [[package]]
278
+ name = "log"
279
+ version = "0.4.21"
280
+ source = "registry+https://github.com/rust-lang/crates.io-index"
281
+ checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c"
282
+
283
+ [[package]]
284
+ name = "magnus"
285
+ version = "0.6.2"
286
+ source = "registry+https://github.com/rust-lang/crates.io-index"
287
+ checksum = "4778544796676e8428e9c622460ebf284bea52d8b10db3aeb449d8b5e61b3a13"
288
+ dependencies = [
289
+ "magnus-macros",
290
+ "rb-sys",
291
+ "rb-sys-env",
292
+ "seq-macro",
293
+ ]
294
+
295
+ [[package]]
296
+ name = "magnus-macros"
297
+ version = "0.6.0"
298
+ source = "registry+https://github.com/rust-lang/crates.io-index"
299
+ checksum = "5968c820e2960565f647819f5928a42d6e874551cab9d88d75e3e0660d7f71e3"
300
+ dependencies = [
301
+ "proc-macro2",
302
+ "quote",
303
+ "syn",
304
+ ]
305
+
306
+ [[package]]
307
+ name = "memchr"
308
+ version = "2.7.2"
309
+ source = "registry+https://github.com/rust-lang/crates.io-index"
310
+ checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d"
311
+
312
+ [[package]]
313
+ name = "minimal-lexical"
314
+ version = "0.2.1"
315
+ source = "registry+https://github.com/rust-lang/crates.io-index"
316
+ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
317
+
318
+ [[package]]
319
+ name = "nom"
320
+ version = "7.1.3"
321
+ source = "registry+https://github.com/rust-lang/crates.io-index"
322
+ checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
323
+ dependencies = [
324
+ "memchr",
325
+ "minimal-lexical",
326
+ ]
327
+
328
+ [[package]]
329
+ name = "once_cell"
330
+ version = "1.19.0"
331
+ source = "registry+https://github.com/rust-lang/crates.io-index"
332
+ checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
333
+
334
+ [[package]]
335
+ name = "onig"
336
+ version = "6.4.0"
337
+ source = "registry+https://github.com/rust-lang/crates.io-index"
338
+ checksum = "8c4b31c8722ad9171c6d77d3557db078cab2bd50afcc9d09c8b315c59df8ca4f"
339
+ dependencies = [
340
+ "bitflags 1.3.2",
341
+ "libc",
342
+ "once_cell",
343
+ "onig_sys",
344
+ ]
345
+
346
+ [[package]]
347
+ name = "onig_sys"
348
+ version = "69.8.1"
349
+ source = "registry+https://github.com/rust-lang/crates.io-index"
350
+ checksum = "7b829e3d7e9cc74c7e315ee8edb185bf4190da5acde74afd7fc59c35b1f086e7"
351
+ dependencies = [
352
+ "bindgen 0.59.2",
353
+ "cc",
354
+ "pkg-config",
355
+ ]
356
+
357
+ [[package]]
358
+ name = "pcre2"
359
+ version = "0.2.7"
360
+ source = "registry+https://github.com/rust-lang/crates.io-index"
361
+ checksum = "5ea92ff5eabd27703ab12cefe01b08b2809ec3dc75fdc69d4e6b75fbce0cbd67"
362
+ dependencies = [
363
+ "libc",
364
+ "log",
365
+ "pcre2-sys",
366
+ ]
367
+
368
+ [[package]]
369
+ name = "pcre2-sys"
370
+ version = "0.2.9"
371
+ source = "registry+https://github.com/rust-lang/crates.io-index"
372
+ checksum = "550f5d18fb1b90c20b87e161852c10cde77858c3900c5059b5ad2a1449f11d8a"
373
+ dependencies = [
374
+ "cc",
375
+ "libc",
376
+ "pkg-config",
377
+ ]
378
+
379
+ [[package]]
380
+ name = "peeking_take_while"
381
+ version = "0.1.2"
382
+ source = "registry+https://github.com/rust-lang/crates.io-index"
383
+ checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099"
384
+
385
+ [[package]]
386
+ name = "pkg-config"
387
+ version = "0.3.30"
388
+ source = "registry+https://github.com/rust-lang/crates.io-index"
389
+ checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec"
390
+
391
+ [[package]]
392
+ name = "proc-macro2"
393
+ version = "1.0.79"
394
+ source = "registry+https://github.com/rust-lang/crates.io-index"
395
+ checksum = "e835ff2298f5721608eb1a980ecaee1aef2c132bf95ecc026a11b7bf3c01c02e"
396
+ dependencies = [
397
+ "unicode-ident",
398
+ ]
399
+
400
+ [[package]]
401
+ name = "quote"
402
+ version = "1.0.35"
403
+ source = "registry+https://github.com/rust-lang/crates.io-index"
404
+ checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
405
+ dependencies = [
406
+ "proc-macro2",
407
+ ]
408
+
409
+ [[package]]
410
+ name = "rb-sys"
411
+ version = "0.9.90"
412
+ source = "registry+https://github.com/rust-lang/crates.io-index"
413
+ checksum = "55d933382388cc7a6fdfd54e222eca7994791ac4b9ce5c9e8df280c739d86bbe"
414
+ dependencies = [
415
+ "rb-sys-build",
416
+ ]
417
+
418
+ [[package]]
419
+ name = "rb-sys-build"
420
+ version = "0.9.90"
421
+ source = "registry+https://github.com/rust-lang/crates.io-index"
422
+ checksum = "ebc5a7e3a875419baaa0d8cc606cdfb9361b444cb7e5abcf0de4693025887374"
423
+ dependencies = [
424
+ "bindgen 0.69.4",
425
+ "lazy_static",
426
+ "proc-macro2",
427
+ "quote",
428
+ "regex",
429
+ "shell-words",
430
+ "syn",
431
+ ]
432
+
433
+ [[package]]
434
+ name = "rb-sys-env"
435
+ version = "0.1.2"
436
+ source = "registry+https://github.com/rust-lang/crates.io-index"
437
+ checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
438
+
439
+ [[package]]
440
+ name = "regex"
441
+ version = "1.10.4"
442
+ source = "registry+https://github.com/rust-lang/crates.io-index"
443
+ checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c"
444
+ dependencies = [
445
+ "aho-corasick",
446
+ "memchr",
447
+ "regex-automata",
448
+ "regex-syntax",
449
+ ]
450
+
451
+ [[package]]
452
+ name = "regex-automata"
453
+ version = "0.4.6"
454
+ source = "registry+https://github.com/rust-lang/crates.io-index"
455
+ checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea"
456
+ dependencies = [
457
+ "aho-corasick",
458
+ "memchr",
459
+ "regex-syntax",
460
+ ]
461
+
462
+ [[package]]
463
+ name = "regex-syntax"
464
+ version = "0.8.3"
465
+ source = "registry+https://github.com/rust-lang/crates.io-index"
466
+ checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56"
467
+
468
+ [[package]]
469
+ name = "rustc-hash"
470
+ version = "1.1.0"
471
+ source = "registry+https://github.com/rust-lang/crates.io-index"
472
+ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
473
+
474
+ [[package]]
475
+ name = "rustix"
476
+ version = "0.38.32"
477
+ source = "registry+https://github.com/rust-lang/crates.io-index"
478
+ checksum = "65e04861e65f21776e67888bfbea442b3642beaa0138fdb1dd7a84a52dffdb89"
479
+ dependencies = [
480
+ "bitflags 2.5.0",
481
+ "errno",
482
+ "libc",
483
+ "linux-raw-sys",
484
+ "windows-sys",
485
+ ]
486
+
487
+ [[package]]
488
+ name = "seq-macro"
489
+ version = "0.3.5"
490
+ source = "registry+https://github.com/rust-lang/crates.io-index"
491
+ checksum = "a3f0bf26fd526d2a95683cd0f87bf103b8539e2ca1ef48ce002d67aad59aa0b4"
492
+
493
+ [[package]]
494
+ name = "shell-words"
495
+ version = "1.1.0"
496
+ source = "registry+https://github.com/rust-lang/crates.io-index"
497
+ checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde"
498
+
499
+ [[package]]
500
+ name = "shlex"
501
+ version = "1.3.0"
502
+ source = "registry+https://github.com/rust-lang/crates.io-index"
503
+ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
504
+
505
+ [[package]]
506
+ name = "strsim"
507
+ version = "0.8.0"
508
+ source = "registry+https://github.com/rust-lang/crates.io-index"
509
+ checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
510
+
511
+ [[package]]
512
+ name = "syn"
513
+ version = "2.0.55"
514
+ source = "registry+https://github.com/rust-lang/crates.io-index"
515
+ checksum = "002a1b3dbf967edfafc32655d0f377ab0bb7b994aa1d32c8cc7e9b8bf3ebb8f0"
516
+ dependencies = [
517
+ "proc-macro2",
518
+ "quote",
519
+ "unicode-ident",
520
+ ]
521
+
522
+ [[package]]
523
+ name = "termcolor"
524
+ version = "1.4.1"
525
+ source = "registry+https://github.com/rust-lang/crates.io-index"
526
+ checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
527
+ dependencies = [
528
+ "winapi-util",
529
+ ]
530
+
531
+ [[package]]
532
+ name = "textwrap"
533
+ version = "0.11.0"
534
+ source = "registry+https://github.com/rust-lang/crates.io-index"
535
+ checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
536
+ dependencies = [
537
+ "unicode-width",
538
+ ]
539
+
540
+ [[package]]
541
+ name = "unicode-ident"
542
+ version = "1.0.12"
543
+ source = "registry+https://github.com/rust-lang/crates.io-index"
544
+ checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
545
+
546
+ [[package]]
547
+ name = "unicode-width"
548
+ version = "0.1.11"
549
+ source = "registry+https://github.com/rust-lang/crates.io-index"
550
+ checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85"
551
+
552
+ [[package]]
553
+ name = "vec_map"
554
+ version = "0.8.2"
555
+ source = "registry+https://github.com/rust-lang/crates.io-index"
556
+ checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
557
+
558
+ [[package]]
559
+ name = "which"
560
+ version = "4.4.2"
561
+ source = "registry+https://github.com/rust-lang/crates.io-index"
562
+ checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7"
563
+ dependencies = [
564
+ "either",
565
+ "home",
566
+ "once_cell",
567
+ "rustix",
568
+ ]
569
+
570
+ [[package]]
571
+ name = "winapi"
572
+ version = "0.3.9"
573
+ source = "registry+https://github.com/rust-lang/crates.io-index"
574
+ checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
575
+ dependencies = [
576
+ "winapi-i686-pc-windows-gnu",
577
+ "winapi-x86_64-pc-windows-gnu",
578
+ ]
579
+
580
+ [[package]]
581
+ name = "winapi-i686-pc-windows-gnu"
582
+ version = "0.4.0"
583
+ source = "registry+https://github.com/rust-lang/crates.io-index"
584
+ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
585
+
586
+ [[package]]
587
+ name = "winapi-util"
588
+ version = "0.1.6"
589
+ source = "registry+https://github.com/rust-lang/crates.io-index"
590
+ checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596"
591
+ dependencies = [
592
+ "winapi",
593
+ ]
594
+
595
+ [[package]]
596
+ name = "winapi-x86_64-pc-windows-gnu"
597
+ version = "0.4.0"
598
+ source = "registry+https://github.com/rust-lang/crates.io-index"
599
+ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
600
+
601
+ [[package]]
602
+ name = "windows-sys"
603
+ version = "0.52.0"
604
+ source = "registry+https://github.com/rust-lang/crates.io-index"
605
+ checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
606
+ dependencies = [
607
+ "windows-targets",
608
+ ]
609
+
610
+ [[package]]
611
+ name = "windows-targets"
612
+ version = "0.52.4"
613
+ source = "registry+https://github.com/rust-lang/crates.io-index"
614
+ checksum = "7dd37b7e5ab9018759f893a1952c9420d060016fc19a472b4bb20d1bdd694d1b"
615
+ dependencies = [
616
+ "windows_aarch64_gnullvm",
617
+ "windows_aarch64_msvc",
618
+ "windows_i686_gnu",
619
+ "windows_i686_msvc",
620
+ "windows_x86_64_gnu",
621
+ "windows_x86_64_gnullvm",
622
+ "windows_x86_64_msvc",
623
+ ]
624
+
625
+ [[package]]
626
+ name = "windows_aarch64_gnullvm"
627
+ version = "0.52.4"
628
+ source = "registry+https://github.com/rust-lang/crates.io-index"
629
+ checksum = "bcf46cf4c365c6f2d1cc93ce535f2c8b244591df96ceee75d8e83deb70a9cac9"
630
+
631
+ [[package]]
632
+ name = "windows_aarch64_msvc"
633
+ version = "0.52.4"
634
+ source = "registry+https://github.com/rust-lang/crates.io-index"
635
+ checksum = "da9f259dd3bcf6990b55bffd094c4f7235817ba4ceebde8e6d11cd0c5633b675"
636
+
637
+ [[package]]
638
+ name = "windows_i686_gnu"
639
+ version = "0.52.4"
640
+ source = "registry+https://github.com/rust-lang/crates.io-index"
641
+ checksum = "b474d8268f99e0995f25b9f095bc7434632601028cf86590aea5c8a5cb7801d3"
642
+
643
+ [[package]]
644
+ name = "windows_i686_msvc"
645
+ version = "0.52.4"
646
+ source = "registry+https://github.com/rust-lang/crates.io-index"
647
+ checksum = "1515e9a29e5bed743cb4415a9ecf5dfca648ce85ee42e15873c3cd8610ff8e02"
648
+
649
+ [[package]]
650
+ name = "windows_x86_64_gnu"
651
+ version = "0.52.4"
652
+ source = "registry+https://github.com/rust-lang/crates.io-index"
653
+ checksum = "5eee091590e89cc02ad514ffe3ead9eb6b660aedca2183455434b93546371a03"
654
+
655
+ [[package]]
656
+ name = "windows_x86_64_gnullvm"
657
+ version = "0.52.4"
658
+ source = "registry+https://github.com/rust-lang/crates.io-index"
659
+ checksum = "77ca79f2451b49fa9e2af39f0747fe999fcda4f5e241b2898624dca97a1f2177"
660
+
661
+ [[package]]
662
+ name = "windows_x86_64_msvc"
663
+ version = "0.52.4"
664
+ source = "registry+https://github.com/rust-lang/crates.io-index"
665
+ checksum = "32b752e52a2da0ddfbdbcc6fceadfeede4c939ed16d13e648833a61dfb611ed8"
666
+
667
+ [[package]]
668
+ name = "xre2"
669
+ version = "0.1.0"
670
+ dependencies = [
671
+ "fancy-regex",
672
+ "magnus",
673
+ "onig",
674
+ "pcre2",
675
+ ]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xre2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - barseek
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-29 00:00:00.000000000 Z
11
+ date: 2024-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys
@@ -41,6 +41,7 @@ files:
41
41
  - ext/xre2/src/lib.rs
42
42
  - lib/xre2.rb
43
43
  - lib/xre2/version.rb
44
+ - tmp/arm64-darwin21/stage/Cargo.lock
44
45
  - tmp/arm64-darwin21/stage/Cargo.toml
45
46
  - tmp/arm64-darwin21/stage/ext/xre2/Cargo.toml
46
47
  homepage: https://github.com/vagab/xre2