gitlab_query_language 0.20.9
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 +7 -0
- data/Cargo.lock +791 -0
- data/LICENSE +28 -0
- data/README.md +101 -0
- data/ext/gitlab_query_language/Cargo.toml +13 -0
- data/ext/gitlab_query_language/extconf.rb +6 -0
- data/ext/gitlab_query_language/src/lib.rs +19 -0
- data/lib/gitlab_query_language/gitlab_query_language.bundle +0 -0
- data/lib/gitlab_query_language/version.rb +8 -0
- data/lib/gitlab_query_language.rb +28 -0
- metadata +68 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: b67d037d530bcc30de700a007a655cb8e60ad7941e1bc771171d5b3131998f99
|
|
4
|
+
data.tar.gz: 3af738c4e48352b0d57b99f06e7d93a6c3a59cd8d6e220c014aa1833f853567b
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 7d7cbe405728127a8d03b0e352c0bd9031d5a9921f9a0834c9904ae51f7fcb8c60f2df0d2327ec38b25266963cd163ae7da7c8ad83f8113b02c4b8bc392ccb90
|
|
7
|
+
data.tar.gz: 790ab3d60eb3cf5673ca79b273093641228c686e1b089a0c0d37efde0307570f2aebac077be38a31663cf8f2aff06627ea92444db3895be98705ab557e5cc107
|
data/Cargo.lock
ADDED
|
@@ -0,0 +1,791 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
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 = "android_system_properties"
|
|
16
|
+
version = "0.1.5"
|
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
+
checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
|
|
19
|
+
dependencies = [
|
|
20
|
+
"libc",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
[[package]]
|
|
24
|
+
name = "arraydeque"
|
|
25
|
+
version = "0.5.1"
|
|
26
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
+
checksum = "7d902e3d592a523def97af8f317b08ce16b7ab854c1985a0c671e6f15cebc236"
|
|
28
|
+
|
|
29
|
+
[[package]]
|
|
30
|
+
name = "autocfg"
|
|
31
|
+
version = "1.5.0"
|
|
32
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
33
|
+
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
|
34
|
+
|
|
35
|
+
[[package]]
|
|
36
|
+
name = "bindgen"
|
|
37
|
+
version = "0.69.5"
|
|
38
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
39
|
+
checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088"
|
|
40
|
+
dependencies = [
|
|
41
|
+
"bitflags",
|
|
42
|
+
"cexpr",
|
|
43
|
+
"clang-sys",
|
|
44
|
+
"itertools",
|
|
45
|
+
"lazy_static",
|
|
46
|
+
"lazycell",
|
|
47
|
+
"proc-macro2",
|
|
48
|
+
"quote",
|
|
49
|
+
"regex",
|
|
50
|
+
"rustc-hash",
|
|
51
|
+
"shlex",
|
|
52
|
+
"syn",
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
[[package]]
|
|
56
|
+
name = "bitflags"
|
|
57
|
+
version = "2.10.0"
|
|
58
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
59
|
+
checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3"
|
|
60
|
+
|
|
61
|
+
[[package]]
|
|
62
|
+
name = "block-buffer"
|
|
63
|
+
version = "0.10.4"
|
|
64
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
65
|
+
checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
|
|
66
|
+
dependencies = [
|
|
67
|
+
"generic-array",
|
|
68
|
+
]
|
|
69
|
+
|
|
70
|
+
[[package]]
|
|
71
|
+
name = "bumpalo"
|
|
72
|
+
version = "3.19.0"
|
|
73
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
74
|
+
checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43"
|
|
75
|
+
|
|
76
|
+
[[package]]
|
|
77
|
+
name = "bytes"
|
|
78
|
+
version = "1.10.1"
|
|
79
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
80
|
+
checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a"
|
|
81
|
+
|
|
82
|
+
[[package]]
|
|
83
|
+
name = "cc"
|
|
84
|
+
version = "1.2.43"
|
|
85
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
86
|
+
checksum = "739eb0f94557554b3ca9a86d2d37bebd49c5e6d0c1d2bda35ba5bdac830befc2"
|
|
87
|
+
dependencies = [
|
|
88
|
+
"find-msvc-tools",
|
|
89
|
+
"shlex",
|
|
90
|
+
]
|
|
91
|
+
|
|
92
|
+
[[package]]
|
|
93
|
+
name = "cexpr"
|
|
94
|
+
version = "0.6.0"
|
|
95
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
96
|
+
checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
|
|
97
|
+
dependencies = [
|
|
98
|
+
"nom",
|
|
99
|
+
]
|
|
100
|
+
|
|
101
|
+
[[package]]
|
|
102
|
+
name = "cfg-if"
|
|
103
|
+
version = "1.0.4"
|
|
104
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
105
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
106
|
+
|
|
107
|
+
[[package]]
|
|
108
|
+
name = "chrono"
|
|
109
|
+
version = "0.4.42"
|
|
110
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
111
|
+
checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2"
|
|
112
|
+
dependencies = [
|
|
113
|
+
"iana-time-zone",
|
|
114
|
+
"js-sys",
|
|
115
|
+
"num-traits",
|
|
116
|
+
"serde",
|
|
117
|
+
"wasm-bindgen",
|
|
118
|
+
"windows-link",
|
|
119
|
+
]
|
|
120
|
+
|
|
121
|
+
[[package]]
|
|
122
|
+
name = "clang-sys"
|
|
123
|
+
version = "1.8.1"
|
|
124
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
125
|
+
checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4"
|
|
126
|
+
dependencies = [
|
|
127
|
+
"glob",
|
|
128
|
+
"libc",
|
|
129
|
+
"libloading",
|
|
130
|
+
]
|
|
131
|
+
|
|
132
|
+
[[package]]
|
|
133
|
+
name = "combine"
|
|
134
|
+
version = "4.6.7"
|
|
135
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
136
|
+
checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd"
|
|
137
|
+
dependencies = [
|
|
138
|
+
"bytes",
|
|
139
|
+
"memchr",
|
|
140
|
+
]
|
|
141
|
+
|
|
142
|
+
[[package]]
|
|
143
|
+
name = "core-foundation-sys"
|
|
144
|
+
version = "0.8.7"
|
|
145
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
146
|
+
checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
|
|
147
|
+
|
|
148
|
+
[[package]]
|
|
149
|
+
name = "cpufeatures"
|
|
150
|
+
version = "0.2.17"
|
|
151
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
152
|
+
checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
|
|
153
|
+
dependencies = [
|
|
154
|
+
"libc",
|
|
155
|
+
]
|
|
156
|
+
|
|
157
|
+
[[package]]
|
|
158
|
+
name = "crypto-common"
|
|
159
|
+
version = "0.1.6"
|
|
160
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
161
|
+
checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"
|
|
162
|
+
dependencies = [
|
|
163
|
+
"generic-array",
|
|
164
|
+
"typenum",
|
|
165
|
+
]
|
|
166
|
+
|
|
167
|
+
[[package]]
|
|
168
|
+
name = "digest"
|
|
169
|
+
version = "0.10.7"
|
|
170
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
171
|
+
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
|
172
|
+
dependencies = [
|
|
173
|
+
"block-buffer",
|
|
174
|
+
"crypto-common",
|
|
175
|
+
]
|
|
176
|
+
|
|
177
|
+
[[package]]
|
|
178
|
+
name = "either"
|
|
179
|
+
version = "1.15.0"
|
|
180
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
181
|
+
checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
|
|
182
|
+
|
|
183
|
+
[[package]]
|
|
184
|
+
name = "encoding_rs"
|
|
185
|
+
version = "0.8.35"
|
|
186
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
187
|
+
checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"
|
|
188
|
+
dependencies = [
|
|
189
|
+
"cfg-if",
|
|
190
|
+
]
|
|
191
|
+
|
|
192
|
+
[[package]]
|
|
193
|
+
name = "equivalent"
|
|
194
|
+
version = "1.0.2"
|
|
195
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
196
|
+
checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
|
|
197
|
+
|
|
198
|
+
[[package]]
|
|
199
|
+
name = "find-msvc-tools"
|
|
200
|
+
version = "0.1.4"
|
|
201
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
202
|
+
checksum = "52051878f80a721bb68ebfbc930e07b65ba72f2da88968ea5c06fd6ca3d3a127"
|
|
203
|
+
|
|
204
|
+
[[package]]
|
|
205
|
+
name = "foldhash"
|
|
206
|
+
version = "0.1.5"
|
|
207
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
208
|
+
checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
|
|
209
|
+
|
|
210
|
+
[[package]]
|
|
211
|
+
name = "generic-array"
|
|
212
|
+
version = "0.14.9"
|
|
213
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
214
|
+
checksum = "4bb6743198531e02858aeaea5398fcc883e71851fcbcb5a2f773e2fb6cb1edf2"
|
|
215
|
+
dependencies = [
|
|
216
|
+
"typenum",
|
|
217
|
+
"version_check",
|
|
218
|
+
]
|
|
219
|
+
|
|
220
|
+
[[package]]
|
|
221
|
+
name = "gitlab_query_language"
|
|
222
|
+
version = "0.1.0"
|
|
223
|
+
dependencies = [
|
|
224
|
+
"glql",
|
|
225
|
+
"magnus",
|
|
226
|
+
]
|
|
227
|
+
|
|
228
|
+
[[package]]
|
|
229
|
+
name = "glob"
|
|
230
|
+
version = "0.3.3"
|
|
231
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
232
|
+
checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
|
|
233
|
+
|
|
234
|
+
[[package]]
|
|
235
|
+
name = "glql"
|
|
236
|
+
version = "0.20.9"
|
|
237
|
+
source = "git+https://gitlab.com/gitlab-org/glql.git?branch=main#5f8b30a8f3490aa42d80b030870f73a629dff706"
|
|
238
|
+
dependencies = [
|
|
239
|
+
"chrono",
|
|
240
|
+
"graphql-parser",
|
|
241
|
+
"heck",
|
|
242
|
+
"indexmap",
|
|
243
|
+
"lazy_static",
|
|
244
|
+
"nom",
|
|
245
|
+
"regex",
|
|
246
|
+
"serde",
|
|
247
|
+
"serde_json",
|
|
248
|
+
"sha2",
|
|
249
|
+
"wasm-bindgen",
|
|
250
|
+
"yaml-rust2",
|
|
251
|
+
]
|
|
252
|
+
|
|
253
|
+
[[package]]
|
|
254
|
+
name = "graphql-parser"
|
|
255
|
+
version = "0.4.1"
|
|
256
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
257
|
+
checksum = "7a818c0d883d7c0801df27be910917750932be279c7bc82dc541b8769425f409"
|
|
258
|
+
dependencies = [
|
|
259
|
+
"combine",
|
|
260
|
+
"thiserror",
|
|
261
|
+
]
|
|
262
|
+
|
|
263
|
+
[[package]]
|
|
264
|
+
name = "hashbrown"
|
|
265
|
+
version = "0.15.5"
|
|
266
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
267
|
+
checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
|
|
268
|
+
dependencies = [
|
|
269
|
+
"foldhash",
|
|
270
|
+
]
|
|
271
|
+
|
|
272
|
+
[[package]]
|
|
273
|
+
name = "hashbrown"
|
|
274
|
+
version = "0.16.0"
|
|
275
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
276
|
+
checksum = "5419bdc4f6a9207fbeba6d11b604d481addf78ecd10c11ad51e76c2f6482748d"
|
|
277
|
+
|
|
278
|
+
[[package]]
|
|
279
|
+
name = "hashlink"
|
|
280
|
+
version = "0.10.0"
|
|
281
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
282
|
+
checksum = "7382cf6263419f2d8df38c55d7da83da5c18aef87fc7a7fc1fb1e344edfe14c1"
|
|
283
|
+
dependencies = [
|
|
284
|
+
"hashbrown 0.15.5",
|
|
285
|
+
]
|
|
286
|
+
|
|
287
|
+
[[package]]
|
|
288
|
+
name = "heck"
|
|
289
|
+
version = "0.5.0"
|
|
290
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
291
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
292
|
+
|
|
293
|
+
[[package]]
|
|
294
|
+
name = "iana-time-zone"
|
|
295
|
+
version = "0.1.64"
|
|
296
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
297
|
+
checksum = "33e57f83510bb73707521ebaffa789ec8caf86f9657cad665b092b581d40e9fb"
|
|
298
|
+
dependencies = [
|
|
299
|
+
"android_system_properties",
|
|
300
|
+
"core-foundation-sys",
|
|
301
|
+
"iana-time-zone-haiku",
|
|
302
|
+
"js-sys",
|
|
303
|
+
"log",
|
|
304
|
+
"wasm-bindgen",
|
|
305
|
+
"windows-core",
|
|
306
|
+
]
|
|
307
|
+
|
|
308
|
+
[[package]]
|
|
309
|
+
name = "iana-time-zone-haiku"
|
|
310
|
+
version = "0.1.2"
|
|
311
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
312
|
+
checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
|
|
313
|
+
dependencies = [
|
|
314
|
+
"cc",
|
|
315
|
+
]
|
|
316
|
+
|
|
317
|
+
[[package]]
|
|
318
|
+
name = "indexmap"
|
|
319
|
+
version = "2.12.0"
|
|
320
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
321
|
+
checksum = "6717a8d2a5a929a1a2eb43a12812498ed141a0bcfb7e8f7844fbdbe4303bba9f"
|
|
322
|
+
dependencies = [
|
|
323
|
+
"equivalent",
|
|
324
|
+
"hashbrown 0.16.0",
|
|
325
|
+
]
|
|
326
|
+
|
|
327
|
+
[[package]]
|
|
328
|
+
name = "itertools"
|
|
329
|
+
version = "0.12.1"
|
|
330
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
331
|
+
checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
|
|
332
|
+
dependencies = [
|
|
333
|
+
"either",
|
|
334
|
+
]
|
|
335
|
+
|
|
336
|
+
[[package]]
|
|
337
|
+
name = "itoa"
|
|
338
|
+
version = "1.0.15"
|
|
339
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
340
|
+
checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
|
|
341
|
+
|
|
342
|
+
[[package]]
|
|
343
|
+
name = "js-sys"
|
|
344
|
+
version = "0.3.81"
|
|
345
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
346
|
+
checksum = "ec48937a97411dcb524a265206ccd4c90bb711fca92b2792c407f268825b9305"
|
|
347
|
+
dependencies = [
|
|
348
|
+
"once_cell",
|
|
349
|
+
"wasm-bindgen",
|
|
350
|
+
]
|
|
351
|
+
|
|
352
|
+
[[package]]
|
|
353
|
+
name = "lazy_static"
|
|
354
|
+
version = "1.5.0"
|
|
355
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
356
|
+
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
|
357
|
+
|
|
358
|
+
[[package]]
|
|
359
|
+
name = "lazycell"
|
|
360
|
+
version = "1.3.0"
|
|
361
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
362
|
+
checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
|
|
363
|
+
|
|
364
|
+
[[package]]
|
|
365
|
+
name = "libc"
|
|
366
|
+
version = "0.2.177"
|
|
367
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
368
|
+
checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976"
|
|
369
|
+
|
|
370
|
+
[[package]]
|
|
371
|
+
name = "libloading"
|
|
372
|
+
version = "0.8.9"
|
|
373
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
374
|
+
checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
|
|
375
|
+
dependencies = [
|
|
376
|
+
"cfg-if",
|
|
377
|
+
"windows-link",
|
|
378
|
+
]
|
|
379
|
+
|
|
380
|
+
[[package]]
|
|
381
|
+
name = "log"
|
|
382
|
+
version = "0.4.28"
|
|
383
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
384
|
+
checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432"
|
|
385
|
+
|
|
386
|
+
[[package]]
|
|
387
|
+
name = "magnus"
|
|
388
|
+
version = "0.6.4"
|
|
389
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
390
|
+
checksum = "b1597ef40aa8c36be098249e82c9a20cf7199278ac1c1a1a995eeead6a184479"
|
|
391
|
+
dependencies = [
|
|
392
|
+
"magnus-macros",
|
|
393
|
+
"rb-sys",
|
|
394
|
+
"rb-sys-env",
|
|
395
|
+
"seq-macro",
|
|
396
|
+
]
|
|
397
|
+
|
|
398
|
+
[[package]]
|
|
399
|
+
name = "magnus-macros"
|
|
400
|
+
version = "0.6.0"
|
|
401
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
402
|
+
checksum = "5968c820e2960565f647819f5928a42d6e874551cab9d88d75e3e0660d7f71e3"
|
|
403
|
+
dependencies = [
|
|
404
|
+
"proc-macro2",
|
|
405
|
+
"quote",
|
|
406
|
+
"syn",
|
|
407
|
+
]
|
|
408
|
+
|
|
409
|
+
[[package]]
|
|
410
|
+
name = "memchr"
|
|
411
|
+
version = "2.7.6"
|
|
412
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
413
|
+
checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
|
|
414
|
+
|
|
415
|
+
[[package]]
|
|
416
|
+
name = "minimal-lexical"
|
|
417
|
+
version = "0.2.1"
|
|
418
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
419
|
+
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
|
420
|
+
|
|
421
|
+
[[package]]
|
|
422
|
+
name = "nom"
|
|
423
|
+
version = "7.1.3"
|
|
424
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
425
|
+
checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
|
|
426
|
+
dependencies = [
|
|
427
|
+
"memchr",
|
|
428
|
+
"minimal-lexical",
|
|
429
|
+
]
|
|
430
|
+
|
|
431
|
+
[[package]]
|
|
432
|
+
name = "num-traits"
|
|
433
|
+
version = "0.2.19"
|
|
434
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
435
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
436
|
+
dependencies = [
|
|
437
|
+
"autocfg",
|
|
438
|
+
]
|
|
439
|
+
|
|
440
|
+
[[package]]
|
|
441
|
+
name = "once_cell"
|
|
442
|
+
version = "1.21.3"
|
|
443
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
444
|
+
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
|
|
445
|
+
|
|
446
|
+
[[package]]
|
|
447
|
+
name = "proc-macro2"
|
|
448
|
+
version = "1.0.103"
|
|
449
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
450
|
+
checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8"
|
|
451
|
+
dependencies = [
|
|
452
|
+
"unicode-ident",
|
|
453
|
+
]
|
|
454
|
+
|
|
455
|
+
[[package]]
|
|
456
|
+
name = "quote"
|
|
457
|
+
version = "1.0.41"
|
|
458
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
459
|
+
checksum = "ce25767e7b499d1b604768e7cde645d14cc8584231ea6b295e9c9eb22c02e1d1"
|
|
460
|
+
dependencies = [
|
|
461
|
+
"proc-macro2",
|
|
462
|
+
]
|
|
463
|
+
|
|
464
|
+
[[package]]
|
|
465
|
+
name = "rb-sys"
|
|
466
|
+
version = "0.9.117"
|
|
467
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
468
|
+
checksum = "f900d1ce4629a2ebffaf5de74bd8f9c1188d4c5ed406df02f97e22f77a006f44"
|
|
469
|
+
dependencies = [
|
|
470
|
+
"rb-sys-build",
|
|
471
|
+
]
|
|
472
|
+
|
|
473
|
+
[[package]]
|
|
474
|
+
name = "rb-sys-build"
|
|
475
|
+
version = "0.9.117"
|
|
476
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
477
|
+
checksum = "ef1e9c857028f631056bcd6d88cec390c751e343ce2223ddb26d23eb4a151d59"
|
|
478
|
+
dependencies = [
|
|
479
|
+
"bindgen",
|
|
480
|
+
"lazy_static",
|
|
481
|
+
"proc-macro2",
|
|
482
|
+
"quote",
|
|
483
|
+
"regex",
|
|
484
|
+
"shell-words",
|
|
485
|
+
"syn",
|
|
486
|
+
]
|
|
487
|
+
|
|
488
|
+
[[package]]
|
|
489
|
+
name = "rb-sys-env"
|
|
490
|
+
version = "0.1.2"
|
|
491
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
492
|
+
checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
|
|
493
|
+
|
|
494
|
+
[[package]]
|
|
495
|
+
name = "regex"
|
|
496
|
+
version = "1.12.2"
|
|
497
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
498
|
+
checksum = "843bc0191f75f3e22651ae5f1e72939ab2f72a4bc30fa80a066bd66edefc24d4"
|
|
499
|
+
dependencies = [
|
|
500
|
+
"aho-corasick",
|
|
501
|
+
"memchr",
|
|
502
|
+
"regex-automata",
|
|
503
|
+
"regex-syntax",
|
|
504
|
+
]
|
|
505
|
+
|
|
506
|
+
[[package]]
|
|
507
|
+
name = "regex-automata"
|
|
508
|
+
version = "0.4.13"
|
|
509
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
510
|
+
checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c"
|
|
511
|
+
dependencies = [
|
|
512
|
+
"aho-corasick",
|
|
513
|
+
"memchr",
|
|
514
|
+
"regex-syntax",
|
|
515
|
+
]
|
|
516
|
+
|
|
517
|
+
[[package]]
|
|
518
|
+
name = "regex-syntax"
|
|
519
|
+
version = "0.8.8"
|
|
520
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
521
|
+
checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58"
|
|
522
|
+
|
|
523
|
+
[[package]]
|
|
524
|
+
name = "rustc-hash"
|
|
525
|
+
version = "1.1.0"
|
|
526
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
527
|
+
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
|
528
|
+
|
|
529
|
+
[[package]]
|
|
530
|
+
name = "rustversion"
|
|
531
|
+
version = "1.0.22"
|
|
532
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
533
|
+
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
|
534
|
+
|
|
535
|
+
[[package]]
|
|
536
|
+
name = "ryu"
|
|
537
|
+
version = "1.0.20"
|
|
538
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
539
|
+
checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"
|
|
540
|
+
|
|
541
|
+
[[package]]
|
|
542
|
+
name = "seq-macro"
|
|
543
|
+
version = "0.3.6"
|
|
544
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
545
|
+
checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
|
|
546
|
+
|
|
547
|
+
[[package]]
|
|
548
|
+
name = "serde"
|
|
549
|
+
version = "1.0.228"
|
|
550
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
551
|
+
checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
|
|
552
|
+
dependencies = [
|
|
553
|
+
"serde_core",
|
|
554
|
+
"serde_derive",
|
|
555
|
+
]
|
|
556
|
+
|
|
557
|
+
[[package]]
|
|
558
|
+
name = "serde_core"
|
|
559
|
+
version = "1.0.228"
|
|
560
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
561
|
+
checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
|
|
562
|
+
dependencies = [
|
|
563
|
+
"serde_derive",
|
|
564
|
+
]
|
|
565
|
+
|
|
566
|
+
[[package]]
|
|
567
|
+
name = "serde_derive"
|
|
568
|
+
version = "1.0.228"
|
|
569
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
570
|
+
checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
|
|
571
|
+
dependencies = [
|
|
572
|
+
"proc-macro2",
|
|
573
|
+
"quote",
|
|
574
|
+
"syn",
|
|
575
|
+
]
|
|
576
|
+
|
|
577
|
+
[[package]]
|
|
578
|
+
name = "serde_json"
|
|
579
|
+
version = "1.0.145"
|
|
580
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
581
|
+
checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c"
|
|
582
|
+
dependencies = [
|
|
583
|
+
"itoa",
|
|
584
|
+
"memchr",
|
|
585
|
+
"ryu",
|
|
586
|
+
"serde",
|
|
587
|
+
"serde_core",
|
|
588
|
+
]
|
|
589
|
+
|
|
590
|
+
[[package]]
|
|
591
|
+
name = "sha2"
|
|
592
|
+
version = "0.10.9"
|
|
593
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
594
|
+
checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
|
|
595
|
+
dependencies = [
|
|
596
|
+
"cfg-if",
|
|
597
|
+
"cpufeatures",
|
|
598
|
+
"digest",
|
|
599
|
+
]
|
|
600
|
+
|
|
601
|
+
[[package]]
|
|
602
|
+
name = "shell-words"
|
|
603
|
+
version = "1.1.0"
|
|
604
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
605
|
+
checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde"
|
|
606
|
+
|
|
607
|
+
[[package]]
|
|
608
|
+
name = "shlex"
|
|
609
|
+
version = "1.3.0"
|
|
610
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
611
|
+
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
|
612
|
+
|
|
613
|
+
[[package]]
|
|
614
|
+
name = "syn"
|
|
615
|
+
version = "2.0.108"
|
|
616
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
617
|
+
checksum = "da58917d35242480a05c2897064da0a80589a2a0476c9a3f2fdc83b53502e917"
|
|
618
|
+
dependencies = [
|
|
619
|
+
"proc-macro2",
|
|
620
|
+
"quote",
|
|
621
|
+
"unicode-ident",
|
|
622
|
+
]
|
|
623
|
+
|
|
624
|
+
[[package]]
|
|
625
|
+
name = "thiserror"
|
|
626
|
+
version = "1.0.69"
|
|
627
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
628
|
+
checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
|
|
629
|
+
dependencies = [
|
|
630
|
+
"thiserror-impl",
|
|
631
|
+
]
|
|
632
|
+
|
|
633
|
+
[[package]]
|
|
634
|
+
name = "thiserror-impl"
|
|
635
|
+
version = "1.0.69"
|
|
636
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
637
|
+
checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
|
|
638
|
+
dependencies = [
|
|
639
|
+
"proc-macro2",
|
|
640
|
+
"quote",
|
|
641
|
+
"syn",
|
|
642
|
+
]
|
|
643
|
+
|
|
644
|
+
[[package]]
|
|
645
|
+
name = "typenum"
|
|
646
|
+
version = "1.19.0"
|
|
647
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
648
|
+
checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb"
|
|
649
|
+
|
|
650
|
+
[[package]]
|
|
651
|
+
name = "unicode-ident"
|
|
652
|
+
version = "1.0.20"
|
|
653
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
654
|
+
checksum = "462eeb75aeb73aea900253ce739c8e18a67423fadf006037cd3ff27e82748a06"
|
|
655
|
+
|
|
656
|
+
[[package]]
|
|
657
|
+
name = "version_check"
|
|
658
|
+
version = "0.9.5"
|
|
659
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
660
|
+
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
|
661
|
+
|
|
662
|
+
[[package]]
|
|
663
|
+
name = "wasm-bindgen"
|
|
664
|
+
version = "0.2.104"
|
|
665
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
666
|
+
checksum = "c1da10c01ae9f1ae40cbfac0bac3b1e724b320abfcf52229f80b547c0d250e2d"
|
|
667
|
+
dependencies = [
|
|
668
|
+
"cfg-if",
|
|
669
|
+
"once_cell",
|
|
670
|
+
"rustversion",
|
|
671
|
+
"serde",
|
|
672
|
+
"serde_json",
|
|
673
|
+
"wasm-bindgen-macro",
|
|
674
|
+
"wasm-bindgen-shared",
|
|
675
|
+
]
|
|
676
|
+
|
|
677
|
+
[[package]]
|
|
678
|
+
name = "wasm-bindgen-backend"
|
|
679
|
+
version = "0.2.104"
|
|
680
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
681
|
+
checksum = "671c9a5a66f49d8a47345ab942e2cb93c7d1d0339065d4f8139c486121b43b19"
|
|
682
|
+
dependencies = [
|
|
683
|
+
"bumpalo",
|
|
684
|
+
"log",
|
|
685
|
+
"proc-macro2",
|
|
686
|
+
"quote",
|
|
687
|
+
"syn",
|
|
688
|
+
"wasm-bindgen-shared",
|
|
689
|
+
]
|
|
690
|
+
|
|
691
|
+
[[package]]
|
|
692
|
+
name = "wasm-bindgen-macro"
|
|
693
|
+
version = "0.2.104"
|
|
694
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
695
|
+
checksum = "7ca60477e4c59f5f2986c50191cd972e3a50d8a95603bc9434501cf156a9a119"
|
|
696
|
+
dependencies = [
|
|
697
|
+
"quote",
|
|
698
|
+
"wasm-bindgen-macro-support",
|
|
699
|
+
]
|
|
700
|
+
|
|
701
|
+
[[package]]
|
|
702
|
+
name = "wasm-bindgen-macro-support"
|
|
703
|
+
version = "0.2.104"
|
|
704
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
705
|
+
checksum = "9f07d2f20d4da7b26400c9f4a0511e6e0345b040694e8a75bd41d578fa4421d7"
|
|
706
|
+
dependencies = [
|
|
707
|
+
"proc-macro2",
|
|
708
|
+
"quote",
|
|
709
|
+
"syn",
|
|
710
|
+
"wasm-bindgen-backend",
|
|
711
|
+
"wasm-bindgen-shared",
|
|
712
|
+
]
|
|
713
|
+
|
|
714
|
+
[[package]]
|
|
715
|
+
name = "wasm-bindgen-shared"
|
|
716
|
+
version = "0.2.104"
|
|
717
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
718
|
+
checksum = "bad67dc8b2a1a6e5448428adec4c3e84c43e561d8c9ee8a9e5aabeb193ec41d1"
|
|
719
|
+
dependencies = [
|
|
720
|
+
"unicode-ident",
|
|
721
|
+
]
|
|
722
|
+
|
|
723
|
+
[[package]]
|
|
724
|
+
name = "windows-core"
|
|
725
|
+
version = "0.62.2"
|
|
726
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
727
|
+
checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
|
|
728
|
+
dependencies = [
|
|
729
|
+
"windows-implement",
|
|
730
|
+
"windows-interface",
|
|
731
|
+
"windows-link",
|
|
732
|
+
"windows-result",
|
|
733
|
+
"windows-strings",
|
|
734
|
+
]
|
|
735
|
+
|
|
736
|
+
[[package]]
|
|
737
|
+
name = "windows-implement"
|
|
738
|
+
version = "0.60.2"
|
|
739
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
740
|
+
checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
|
|
741
|
+
dependencies = [
|
|
742
|
+
"proc-macro2",
|
|
743
|
+
"quote",
|
|
744
|
+
"syn",
|
|
745
|
+
]
|
|
746
|
+
|
|
747
|
+
[[package]]
|
|
748
|
+
name = "windows-interface"
|
|
749
|
+
version = "0.59.3"
|
|
750
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
751
|
+
checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
|
|
752
|
+
dependencies = [
|
|
753
|
+
"proc-macro2",
|
|
754
|
+
"quote",
|
|
755
|
+
"syn",
|
|
756
|
+
]
|
|
757
|
+
|
|
758
|
+
[[package]]
|
|
759
|
+
name = "windows-link"
|
|
760
|
+
version = "0.2.1"
|
|
761
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
762
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
763
|
+
|
|
764
|
+
[[package]]
|
|
765
|
+
name = "windows-result"
|
|
766
|
+
version = "0.4.1"
|
|
767
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
768
|
+
checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
|
|
769
|
+
dependencies = [
|
|
770
|
+
"windows-link",
|
|
771
|
+
]
|
|
772
|
+
|
|
773
|
+
[[package]]
|
|
774
|
+
name = "windows-strings"
|
|
775
|
+
version = "0.5.1"
|
|
776
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
777
|
+
checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
|
|
778
|
+
dependencies = [
|
|
779
|
+
"windows-link",
|
|
780
|
+
]
|
|
781
|
+
|
|
782
|
+
[[package]]
|
|
783
|
+
name = "yaml-rust2"
|
|
784
|
+
version = "0.10.4"
|
|
785
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
786
|
+
checksum = "2462ea039c445496d8793d052e13787f2b90e750b833afee748e601c17621ed9"
|
|
787
|
+
dependencies = [
|
|
788
|
+
"arraydeque",
|
|
789
|
+
"encoding_rs",
|
|
790
|
+
"hashlink",
|
|
791
|
+
]
|
data/LICENSE
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Copyright (c) 2011-present GitLab B.V.
|
|
2
|
+
|
|
3
|
+
Portions of this software are licensed as follows:
|
|
4
|
+
|
|
5
|
+
* All content residing under the "doc/" directory of this repository is licensed under "Creative Commons: CC BY-SA 4.0 license".
|
|
6
|
+
* All content that resides under the "ee/" directory of this repository, if that directory exists, is licensed under the license defined in "ee/LICENSE".
|
|
7
|
+
* All content that resides under the "jh/" directory of this repository, if that directory exists, is licensed under the license defined in "jh/LICENSE".
|
|
8
|
+
* All client-side JavaScript (when served directly or after being compiled, arranged, augmented, or combined), is licensed under the "MIT Expat" license.
|
|
9
|
+
* All third party components incorporated into the GitLab Software are licensed under the original license provided by the owner of the applicable component.
|
|
10
|
+
* Content outside of the above mentioned directories or restrictions above is available under the "MIT Expat" license as defined below.
|
|
11
|
+
|
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
14
|
+
in the Software without restriction, including without limitation the rights
|
|
15
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
17
|
+
furnished to do so, subject to the following conditions:
|
|
18
|
+
|
|
19
|
+
The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
28
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# glql_rb
|
|
2
|
+
|
|
3
|
+
Ruby bindings for the GitLab Query Language (GLQL) compiler. This gem provides a native Ruby interface to compile GLQL queries into GraphQL, powered by Rust through native extensions.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Add to your Gemfile:
|
|
8
|
+
|
|
9
|
+
```ruby
|
|
10
|
+
gem 'gitlab_query_language'
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Then run:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
bundle install
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Or install directly:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
gem install gitlab_query_language
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
The gem provides a simple interface to compile GLQL queries into GraphQL:
|
|
28
|
+
|
|
29
|
+
```ruby
|
|
30
|
+
require 'gitlab_query_language'
|
|
31
|
+
|
|
32
|
+
# Compile a GLQL query
|
|
33
|
+
query = 'label != "backend" and author = currentUser() and weight = 1'
|
|
34
|
+
result = Glql.compile(query, {group: 'gitlab-org', username: 'johnhope', fields: 'title'})
|
|
35
|
+
puts result
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Development
|
|
39
|
+
|
|
40
|
+
### Setup
|
|
41
|
+
|
|
42
|
+
After checking out the repo, install dependencies:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
mise install
|
|
46
|
+
|
|
47
|
+
cd glql_rb
|
|
48
|
+
|
|
49
|
+
bin/setup
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Building the Extension
|
|
53
|
+
|
|
54
|
+
The Rust extension is automatically compiled when you install the gem. To manually compile:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
bundle exec rake compile
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Running Tests
|
|
61
|
+
|
|
62
|
+
Run the test suite:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
bundle exec rake spec
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Interactive Console
|
|
69
|
+
|
|
70
|
+
Experiment with the gem in an interactive console:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
bundle exec rake console
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Installing Locally
|
|
77
|
+
|
|
78
|
+
To install the gem onto your local machine:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
bundle exec rake install
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Contributing
|
|
85
|
+
|
|
86
|
+
Bug reports and pull requests are welcome at https://gitlab.com/gitlab-org/glql.
|
|
87
|
+
|
|
88
|
+
To contribute:
|
|
89
|
+
|
|
90
|
+
1. Clone the repository
|
|
91
|
+
2. Create a feature branch (`git checkout -b feature/my-feature`)
|
|
92
|
+
3. Make your changes and ensure tests pass
|
|
93
|
+
4. Commit your changes (`git commit -am 'Add new feature'`)
|
|
94
|
+
5. Push to the branch (`git push origin feature/my-feature`)
|
|
95
|
+
6. Open a merge request
|
|
96
|
+
|
|
97
|
+
## Additional Resources
|
|
98
|
+
|
|
99
|
+
- [GLQL User Documentation](https://docs.gitlab.com/user/glql/)
|
|
100
|
+
- [GLQL Architecture Design Document](https://handbook.gitlab.com/handbook/engineering/architecture/design-documents/glql/)
|
|
101
|
+
- [Main GLQL Repository](https://gitlab.com/gitlab-org/glql)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "gitlab_query_language"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
authors = ["Himanshu Kapoor<hkapoor@gitlab.com>", "Daniele Rossetti <drossetti@gitlab.com>"]
|
|
6
|
+
publish = false
|
|
7
|
+
|
|
8
|
+
[lib]
|
|
9
|
+
crate-type = ["cdylib"]
|
|
10
|
+
|
|
11
|
+
[dependencies]
|
|
12
|
+
magnus = { version = "0.6.2" }
|
|
13
|
+
glql = { git = "https://gitlab.com/gitlab-org/glql.git", branch = "main" }
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
use magnus::{function, prelude::*, Error, Ruby};
|
|
2
|
+
|
|
3
|
+
fn compile_rs(query: String, string_context: String) -> Result<String, Error> {
|
|
4
|
+
Ok(glql::compile(query.as_str(), string_context.as_str()))
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
fn transform_rs(data: String, string_context: String) -> Result<String, Error> {
|
|
8
|
+
Ok(glql::transform(data.as_str(), string_context.as_str()))
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
#[magnus::init]
|
|
12
|
+
fn init(ruby: &Ruby) -> Result<(), Error> {
|
|
13
|
+
let module = ruby.define_module("Glql")?;
|
|
14
|
+
|
|
15
|
+
module.define_singleton_method("compile_rs", function!(compile_rs, 2))?;
|
|
16
|
+
module.define_singleton_method("transform_rs", function!(transform_rs, 2))?;
|
|
17
|
+
|
|
18
|
+
Ok(())
|
|
19
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by rake sync_version during the build process.
|
|
4
|
+
# The version is read from the root Cargo.toml to keep them in sync.
|
|
5
|
+
# Changes to this file should be committed. A version change will trigger a gem release.
|
|
6
|
+
module Glql
|
|
7
|
+
VERSION = "0.20.9"
|
|
8
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "json"
|
|
4
|
+
require_relative "gitlab_query_language/version"
|
|
5
|
+
|
|
6
|
+
# Load the appropriate version-specific native extension
|
|
7
|
+
begin
|
|
8
|
+
ruby_version = /(\d+\.\d+)/.match(RUBY_VERSION)
|
|
9
|
+
require_relative "gitlab_query_language/#{ruby_version}/gitlab_query_language"
|
|
10
|
+
rescue LoadError
|
|
11
|
+
require_relative "gitlab_query_language/gitlab_query_language"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
module Glql
|
|
15
|
+
Error = Class.new(StandardError)
|
|
16
|
+
|
|
17
|
+
class << self
|
|
18
|
+
def compile(query, context)
|
|
19
|
+
result_json = compile_rs(query, context.to_json)
|
|
20
|
+
JSON.parse(result_json)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def transform(data, context)
|
|
24
|
+
result_json = transform_rs(data.to_json, context.to_json)
|
|
25
|
+
JSON.parse(result_json)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: gitlab_query_language
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.20.9
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Himanshu Kapoor
|
|
8
|
+
- Daniele Rossetti
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2025-10-31 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: rb_sys
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 0.9.91
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 0.9.91
|
|
27
|
+
description: Compiler for GitLab Query Language (GLQL)
|
|
28
|
+
email:
|
|
29
|
+
- hkapoor@gitlab.com
|
|
30
|
+
- drossetti@gitlab.com
|
|
31
|
+
executables: []
|
|
32
|
+
extensions:
|
|
33
|
+
- ext/gitlab_query_language/extconf.rb
|
|
34
|
+
extra_rdoc_files: []
|
|
35
|
+
files:
|
|
36
|
+
- Cargo.lock
|
|
37
|
+
- LICENSE
|
|
38
|
+
- README.md
|
|
39
|
+
- ext/gitlab_query_language/Cargo.toml
|
|
40
|
+
- ext/gitlab_query_language/extconf.rb
|
|
41
|
+
- ext/gitlab_query_language/src/lib.rs
|
|
42
|
+
- lib/gitlab_query_language.rb
|
|
43
|
+
- lib/gitlab_query_language/gitlab_query_language.bundle
|
|
44
|
+
- lib/gitlab_query_language/version.rb
|
|
45
|
+
homepage: https://gitlab.com/gitlab-org/glql
|
|
46
|
+
licenses: []
|
|
47
|
+
metadata:
|
|
48
|
+
homepage_uri: https://gitlab.com/gitlab-org/glql
|
|
49
|
+
source_code_uri: https://gitlab.com/gitlab-org/glql
|
|
50
|
+
changelog_uri: https://gitlab.com/gitlab-org/glql/-/releases
|
|
51
|
+
rdoc_options: []
|
|
52
|
+
require_paths:
|
|
53
|
+
- lib
|
|
54
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
55
|
+
requirements:
|
|
56
|
+
- - ">="
|
|
57
|
+
- !ruby/object:Gem::Version
|
|
58
|
+
version: 3.2.0
|
|
59
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
|
+
requirements:
|
|
61
|
+
- - ">="
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
63
|
+
version: 3.3.11
|
|
64
|
+
requirements: []
|
|
65
|
+
rubygems_version: 3.6.2
|
|
66
|
+
specification_version: 4
|
|
67
|
+
summary: GitLab Query Language compiler
|
|
68
|
+
test_files: []
|