celq 0.2.0b1__tar.gz → 0.3.1__tar.gz

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.
Files changed (33) hide show
  1. celq-0.3.1/CHANGELOG.md +63 -0
  2. {celq-0.2.0b1 → celq-0.3.1}/Cargo.lock +168 -141
  3. celq-0.3.1/Cargo.toml +98 -0
  4. {celq-0.2.0b1 → celq-0.3.1}/PKG-INFO +46 -41
  5. {celq-0.2.0b1 → celq-0.3.1}/README.md +45 -40
  6. celq-0.3.1/docs/comparison_with_other_tools.md +63 -0
  7. {celq-0.2.0b1 → celq-0.3.1}/docs/installation_guide.md +52 -39
  8. {celq-0.2.0b1 → celq-0.3.1}/docs/manual.md +145 -5
  9. {celq-0.2.0b1 → celq-0.3.1}/pypi/README.md +45 -40
  10. {celq-0.2.0b1 → celq-0.3.1}/src/cli.rs +54 -7
  11. {celq-0.2.0b1 → celq-0.3.1}/src/documentation.rs +7 -0
  12. celq-0.3.1/src/gron.rs +133 -0
  13. celq-0.3.1/src/gron_test.rs +192 -0
  14. {celq-0.2.0b1 → celq-0.3.1}/src/input_handler.rs +43 -17
  15. {celq-0.2.0b1 → celq-0.3.1}/src/input_handler_test.rs +4 -5
  16. celq-0.3.1/src/json2cel.rs +168 -0
  17. celq-0.3.1/src/json2cel_test.rs +285 -0
  18. {celq-0.2.0b1 → celq-0.3.1}/src/main.rs +27 -8
  19. celq-0.3.1/src/slice_extension.rs +30 -0
  20. celq-0.3.1/src/ungron.rs +175 -0
  21. celq-0.3.1/src/ungron_test.rs +82 -0
  22. {celq-0.2.0b1 → celq-0.3.1}/tests/golden.rs +203 -0
  23. celq-0.2.0b1/Cargo.toml +0 -69
  24. celq-0.2.0b1/src/cel2json.rs +0 -53
  25. celq-0.2.0b1/src/json2cel.rs +0 -133
  26. celq-0.2.0b1/src/json2cel_test.rs +0 -119
  27. {celq-0.2.0b1 → celq-0.3.1}/LICENSE-APACHE +0 -0
  28. {celq-0.2.0b1 → celq-0.3.1}/LICENSE-MIT +0 -0
  29. {celq-0.2.0b1 → celq-0.3.1}/pypi/LICENSE-APACHE +0 -0
  30. {celq-0.2.0b1 → celq-0.3.1}/pypi/LICENSE-MIT +0 -0
  31. {celq-0.2.0b1 → celq-0.3.1}/pyproject.toml +0 -0
  32. {celq-0.2.0b1 → celq-0.3.1}/src/args2cel.rs +0 -0
  33. {celq-0.2.0b1 → celq-0.3.1}/src/args2cel_test.rs +0 -0
@@ -0,0 +1,63 @@
1
+ Changelog
2
+ =========
3
+
4
+ [v0.3.1](https://github.com/IvanIsCoding/celq/releases/tag/v0.3.1) - 2026-01-27
5
+
6
+ ### Added
7
+
8
+ * Added the `--verify-checksum` flag to `install.sh`
9
+ * `celq` now returns the input if no expression is passed
10
+
11
+
12
+ [v0.3.0](https://github.com/IvanIsCoding/celq/releases/tag/v0.3.0) - 2026-01-24
13
+ ------------------------------------------------------------------------
14
+
15
+ ### Added
16
+
17
+ * Added pre-compiled FreeBSD aarch64 binaries
18
+ * Added support for parallelism when using the `--slurp` flag with the `-j` flag
19
+
20
+ ### Miscellaneous
21
+
22
+ * Bumped the YAML parser to incorporate fixes (`serde-saphyr` -> 0.0.16)
23
+ * Bumped the JSON5 parser to incorporate fixes (`json5` -> 1.3.0)
24
+ * Bumped the MSRV to Rust 1.91
25
+
26
+ [v0.2.0](https://github.com/IvanIsCoding/celq/releases/tag/v0.2.0) - 2026-01-17
27
+ ------------------------------------------------------------------------
28
+
29
+ ### Added
30
+
31
+ * Added support for array slicing (e.g. `this.slice(a, b)`)
32
+ * Added support for TOML inputs with `--from-toml`
33
+ * Added support for YAML inputs with `--from-yaml`
34
+ * Added support for greppable json inspired by `gron`
35
+ * Added pre-compiled FreeBSD x86-64 binaries
36
+ * Added pre-built binaries via Scoop for Windows
37
+
38
+ ### Miscellaneous
39
+
40
+ * Live Playground: https://celq-playground.github.io/
41
+ * Switched PyPI releases to use Zig for linking
42
+ * Switched pre-built binaries to prettified names (e.g. `celq-macos-aarch64.tar.gz` instead of `celq-aarch64-apple-darwin.tar.gz`)
43
+
44
+ [v0.1.1](https://github.com/IvanIsCoding/celq/releases/tag/v0.1.1) - 2026-01-06
45
+ ------------------------------------------------------------------------
46
+
47
+ ### Added
48
+
49
+ * Added pre-built binaries via GitHub releases
50
+ * Added pre-built binaries via PyPI
51
+ * Added pre-built binaries via NPM
52
+ * Added pre-built binaries via Chocolatey for Windows
53
+ * Added pre-built binaries via Homebrew for Mac
54
+ * Published Nix support with and without flakes
55
+
56
+ ### Miscellaneous
57
+
58
+ * Many documentation updates.
59
+
60
+ [v0.1.0](https://github.com/IvanIsCoding/celq/releases/tag/v0.1.0) - 2026-01-04
61
+ ------------------------------------------------------------------------
62
+
63
+ Initial release with support for JSON and JSON5!
@@ -152,15 +152,6 @@ version = "2.10.0"
152
152
  source = "registry+https://github.com/rust-lang/crates.io-index"
153
153
  checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3"
154
154
 
155
- [[package]]
156
- name = "block-buffer"
157
- version = "0.10.4"
158
- source = "registry+https://github.com/rust-lang/crates.io-index"
159
- checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
160
- dependencies = [
161
- "generic-array",
162
- ]
163
-
164
155
  [[package]]
165
156
  name = "bumpalo"
166
157
  version = "3.19.1"
@@ -205,12 +196,12 @@ dependencies = [
205
196
  "regex",
206
197
  "serde",
207
198
  "serde_json",
208
- "thiserror",
199
+ "thiserror 1.0.69",
209
200
  ]
210
201
 
211
202
  [[package]]
212
203
  name = "celq"
213
- version = "0.2.0-beta.1"
204
+ version = "0.3.1"
214
205
  dependencies = [
215
206
  "anyhow",
216
207
  "cel",
@@ -218,6 +209,8 @@ dependencies = [
218
209
  "json5",
219
210
  "mimalloc",
220
211
  "rayon",
212
+ "resast",
213
+ "ressa",
221
214
  "serde",
222
215
  "serde-saphyr",
223
216
  "serde_json",
@@ -287,15 +280,6 @@ version = "1.0.4"
287
280
  source = "registry+https://github.com/rust-lang/crates.io-index"
288
281
  checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
289
282
 
290
- [[package]]
291
- name = "cpufeatures"
292
- version = "0.2.17"
293
- source = "registry+https://github.com/rust-lang/crates.io-index"
294
- checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
295
- dependencies = [
296
- "libc",
297
- ]
298
-
299
283
  [[package]]
300
284
  name = "crossbeam-deque"
301
285
  version = "0.8.6"
@@ -321,26 +305,6 @@ version = "0.8.21"
321
305
  source = "registry+https://github.com/rust-lang/crates.io-index"
322
306
  checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
323
307
 
324
- [[package]]
325
- name = "crypto-common"
326
- version = "0.1.7"
327
- source = "registry+https://github.com/rust-lang/crates.io-index"
328
- checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
329
- dependencies = [
330
- "generic-array",
331
- "typenum",
332
- ]
333
-
334
- [[package]]
335
- name = "digest"
336
- version = "0.10.7"
337
- source = "registry+https://github.com/rust-lang/crates.io-index"
338
- checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
339
- dependencies = [
340
- "block-buffer",
341
- "crypto-common",
342
- ]
343
-
344
308
  [[package]]
345
309
  name = "either"
346
310
  version = "1.15.0"
@@ -393,22 +357,6 @@ version = "0.1.6"
393
357
  source = "registry+https://github.com/rust-lang/crates.io-index"
394
358
  checksum = "645cbb3a84e60b7531617d5ae4e57f7e27308f6445f5abf653209ea76dec8dff"
395
359
 
396
- [[package]]
397
- name = "foldhash"
398
- version = "0.1.5"
399
- source = "registry+https://github.com/rust-lang/crates.io-index"
400
- checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
401
-
402
- [[package]]
403
- name = "generic-array"
404
- version = "0.14.7"
405
- source = "registry+https://github.com/rust-lang/crates.io-index"
406
- checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
407
- dependencies = [
408
- "typenum",
409
- "version_check",
410
- ]
411
-
412
360
  [[package]]
413
361
  name = "getrandom"
414
362
  version = "0.3.4"
@@ -422,13 +370,10 @@ dependencies = [
422
370
  ]
423
371
 
424
372
  [[package]]
425
- name = "hashbrown"
426
- version = "0.15.5"
373
+ name = "hash-chain"
374
+ version = "0.3.2"
427
375
  source = "registry+https://github.com/rust-lang/crates.io-index"
428
- checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
429
- dependencies = [
430
- "foldhash",
431
- ]
376
+ checksum = "4ae1e9c6caefb8e1fb1be731642c99a7d5803d2282ee890f78dce35aeee988b2"
432
377
 
433
378
  [[package]]
434
379
  name = "hashbrown"
@@ -436,15 +381,6 @@ version = "0.16.1"
436
381
  source = "registry+https://github.com/rust-lang/crates.io-index"
437
382
  checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
438
383
 
439
- [[package]]
440
- name = "hashlink"
441
- version = "0.10.0"
442
- source = "registry+https://github.com/rust-lang/crates.io-index"
443
- checksum = "7382cf6263419f2d8df38c55d7da83da5c18aef87fc7a7fc1fb1e344edfe14c1"
444
- dependencies = [
445
- "hashbrown 0.15.5",
446
- ]
447
-
448
384
  [[package]]
449
385
  name = "heck"
450
386
  version = "0.5.0"
@@ -458,7 +394,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
458
394
  checksum = "0ad4bb2b565bca0645f4d68c5c9af97fba094e9791da685bf83cb5f3ce74acf2"
459
395
  dependencies = [
460
396
  "equivalent",
461
- "hashbrown 0.16.1",
397
+ "hashbrown",
462
398
  ]
463
399
 
464
400
  [[package]]
@@ -485,13 +421,12 @@ dependencies = [
485
421
 
486
422
  [[package]]
487
423
  name = "json5"
488
- version = "0.4.1"
424
+ version = "1.3.0"
489
425
  source = "registry+https://github.com/rust-lang/crates.io-index"
490
- checksum = "96b0db21af676c1ce64250b5f40f3ce2cf27e4e47cb91ed91eb6fe9350b430c1"
426
+ checksum = "56c86c72f9e1d3fe29baa32cab8896548eef9aae271fce4e796d16b583fdf6d5"
491
427
  dependencies = [
492
- "pest",
493
- "pest_derive",
494
428
  "serde",
429
+ "ucd-trie",
495
430
  ]
496
431
 
497
432
  [[package]]
@@ -531,6 +466,12 @@ dependencies = [
531
466
  "scopeguard",
532
467
  ]
533
468
 
469
+ [[package]]
470
+ name = "log"
471
+ version = "0.4.29"
472
+ source = "registry+https://github.com/rust-lang/crates.io-index"
473
+ checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
474
+
534
475
  [[package]]
535
476
  name = "memchr"
536
477
  version = "2.7.6"
@@ -628,47 +569,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
628
569
  checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
629
570
 
630
571
  [[package]]
631
- name = "pest"
632
- version = "2.8.5"
633
- source = "registry+https://github.com/rust-lang/crates.io-index"
634
- checksum = "2c9eb05c21a464ea704b53158d358a31e6425db2f63a1a7312268b05fe2b75f7"
635
- dependencies = [
636
- "memchr",
637
- "ucd-trie",
638
- ]
639
-
640
- [[package]]
641
- name = "pest_derive"
642
- version = "2.8.5"
572
+ name = "pin-project-lite"
573
+ version = "0.2.16"
643
574
  source = "registry+https://github.com/rust-lang/crates.io-index"
644
- checksum = "68f9dbced329c441fa79d80472764b1a2c7e57123553b8519b36663a2fb234ed"
645
- dependencies = [
646
- "pest",
647
- "pest_generator",
648
- ]
649
-
650
- [[package]]
651
- name = "pest_generator"
652
- version = "2.8.5"
653
- source = "registry+https://github.com/rust-lang/crates.io-index"
654
- checksum = "3bb96d5051a78f44f43c8f712d8e810adb0ebf923fc9ed2655a7f66f63ba8ee5"
655
- dependencies = [
656
- "pest",
657
- "pest_meta",
658
- "proc-macro2",
659
- "quote",
660
- "syn",
661
- ]
662
-
663
- [[package]]
664
- name = "pest_meta"
665
- version = "2.8.5"
666
- source = "registry+https://github.com/rust-lang/crates.io-index"
667
- checksum = "602113b5b5e8621770cfd490cfd90b9f84ab29bd2b0e49ad83eb6d186cef2365"
668
- dependencies = [
669
- "pest",
670
- "sha2",
671
- ]
575
+ checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
672
576
 
673
577
  [[package]]
674
578
  name = "proc-macro2"
@@ -752,6 +656,46 @@ version = "0.8.8"
752
656
  source = "registry+https://github.com/rust-lang/crates.io-index"
753
657
  checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58"
754
658
 
659
+ [[package]]
660
+ name = "res-regex"
661
+ version = "0.1.4"
662
+ source = "registry+https://github.com/rust-lang/crates.io-index"
663
+ checksum = "7b977fb62928f6f93f31afa8d8fcc504156fbf816b7bec69c60c0f0bd18a47b1"
664
+ dependencies = [
665
+ "log",
666
+ "unic-ucd-ident",
667
+ ]
668
+
669
+ [[package]]
670
+ name = "resast"
671
+ version = "0.5.0"
672
+ source = "registry+https://github.com/rust-lang/crates.io-index"
673
+ checksum = "dce018f9b95f19dd2df5c883fd6d394001ec093a72e0f8ea57b43612cf1f0827"
674
+
675
+ [[package]]
676
+ name = "ress"
677
+ version = "0.11.7"
678
+ source = "registry+https://github.com/rust-lang/crates.io-index"
679
+ checksum = "0d77111a94ef694bb2fe9867a93e21007e2151943c9a48b2ed72734bde41875a"
680
+ dependencies = [
681
+ "log",
682
+ "unicode-xid",
683
+ ]
684
+
685
+ [[package]]
686
+ name = "ressa"
687
+ version = "0.8.2"
688
+ source = "registry+https://github.com/rust-lang/crates.io-index"
689
+ checksum = "bfb9cd91fd77ad17b59d6a9924b106d66331409b2114eb1764de079b35a68ce5"
690
+ dependencies = [
691
+ "hash-chain",
692
+ "log",
693
+ "res-regex",
694
+ "resast",
695
+ "ress",
696
+ "tracing",
697
+ ]
698
+
755
699
  [[package]]
756
700
  name = "rustix"
757
701
  version = "1.1.3"
@@ -778,13 +722,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
778
722
  checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"
779
723
 
780
724
  [[package]]
781
- name = "saphyr-parser"
782
- version = "0.0.6"
725
+ name = "saphyr-parser-bw"
726
+ version = "0.0.605"
783
727
  source = "registry+https://github.com/rust-lang/crates.io-index"
784
- checksum = "4fb771b59f6b1985d1406325ec28f97cfb14256abcec4fdfb37b36a1766d6af7"
728
+ checksum = "5e1aee7486406df3541b5a657204a11be97175a467d77bc98e6d94a66289fb80"
785
729
  dependencies = [
786
730
  "arraydeque",
787
- "hashlink",
731
+ "smallvec 2.0.0-alpha.12",
732
+ "thiserror 2.0.18",
788
733
  ]
789
734
 
790
735
  [[package]]
@@ -805,9 +750,9 @@ dependencies = [
805
750
 
806
751
  [[package]]
807
752
  name = "serde-saphyr"
808
- version = "0.0.14"
753
+ version = "0.0.16"
809
754
  source = "registry+https://github.com/rust-lang/crates.io-index"
810
- checksum = "45400dbf0a2c4c2af106c08eb1028b3e45bea3cd45517d3a0e8170b86597122f"
755
+ checksum = "4db5a4a562bcc0017c34cd0efbabf447be783f00576a2a516947f884e6a7ed57"
811
756
  dependencies = [
812
757
  "ahash",
813
758
  "annotate-snippets",
@@ -815,7 +760,8 @@ dependencies = [
815
760
  "encoding_rs_io",
816
761
  "nohash-hasher",
817
762
  "num-traits",
818
- "saphyr-parser",
763
+ "regex",
764
+ "saphyr-parser-bw",
819
765
  "serde",
820
766
  "serde_json",
821
767
  "smallvec 2.0.0-alpha.12",
@@ -865,17 +811,6 @@ dependencies = [
865
811
  "serde_core",
866
812
  ]
867
813
 
868
- [[package]]
869
- name = "sha2"
870
- version = "0.10.9"
871
- source = "registry+https://github.com/rust-lang/crates.io-index"
872
- checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
873
- dependencies = [
874
- "cfg-if",
875
- "cpufeatures",
876
- "digest",
877
- ]
878
-
879
814
  [[package]]
880
815
  name = "shlex"
881
816
  version = "1.3.0"
@@ -930,7 +865,16 @@ version = "1.0.69"
930
865
  source = "registry+https://github.com/rust-lang/crates.io-index"
931
866
  checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
932
867
  dependencies = [
933
- "thiserror-impl",
868
+ "thiserror-impl 1.0.69",
869
+ ]
870
+
871
+ [[package]]
872
+ name = "thiserror"
873
+ version = "2.0.18"
874
+ source = "registry+https://github.com/rust-lang/crates.io-index"
875
+ checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
876
+ dependencies = [
877
+ "thiserror-impl 2.0.18",
934
878
  ]
935
879
 
936
880
  [[package]]
@@ -944,6 +888,17 @@ dependencies = [
944
888
  "syn",
945
889
  ]
946
890
 
891
+ [[package]]
892
+ name = "thiserror-impl"
893
+ version = "2.0.18"
894
+ source = "registry+https://github.com/rust-lang/crates.io-index"
895
+ checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
896
+ dependencies = [
897
+ "proc-macro2",
898
+ "quote",
899
+ "syn",
900
+ ]
901
+
947
902
  [[package]]
948
903
  name = "toml"
949
904
  version = "0.9.8"
@@ -984,16 +939,41 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
984
939
  checksum = "ab16f14aed21ee8bfd8ec22513f7287cd4a91aa92e44edfe2c17ddd004e92607"
985
940
 
986
941
  [[package]]
987
- name = "typed-arena"
988
- version = "2.0.2"
942
+ name = "tracing"
943
+ version = "0.1.44"
989
944
  source = "registry+https://github.com/rust-lang/crates.io-index"
990
- checksum = "6af6ae20167a9ece4bcb41af5b80f8a1f1df981f6391189ce00fd257af04126a"
945
+ checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
946
+ dependencies = [
947
+ "pin-project-lite",
948
+ "tracing-attributes",
949
+ "tracing-core",
950
+ ]
991
951
 
992
952
  [[package]]
993
- name = "typenum"
994
- version = "1.19.0"
953
+ name = "tracing-attributes"
954
+ version = "0.1.31"
955
+ source = "registry+https://github.com/rust-lang/crates.io-index"
956
+ checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
957
+ dependencies = [
958
+ "proc-macro2",
959
+ "quote",
960
+ "syn",
961
+ ]
962
+
963
+ [[package]]
964
+ name = "tracing-core"
965
+ version = "0.1.36"
966
+ source = "registry+https://github.com/rust-lang/crates.io-index"
967
+ checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
968
+ dependencies = [
969
+ "once_cell",
970
+ ]
971
+
972
+ [[package]]
973
+ name = "typed-arena"
974
+ version = "2.0.2"
995
975
  source = "registry+https://github.com/rust-lang/crates.io-index"
996
- checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb"
976
+ checksum = "6af6ae20167a9ece4bcb41af5b80f8a1f1df981f6391189ce00fd257af04126a"
997
977
 
998
978
  [[package]]
999
979
  name = "ucd-trie"
@@ -1001,6 +981,47 @@ version = "0.1.7"
1001
981
  source = "registry+https://github.com/rust-lang/crates.io-index"
1002
982
  checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971"
1003
983
 
984
+ [[package]]
985
+ name = "unic-char-property"
986
+ version = "0.9.0"
987
+ source = "registry+https://github.com/rust-lang/crates.io-index"
988
+ checksum = "a8c57a407d9b6fa02b4795eb81c5b6652060a15a7903ea981f3d723e6c0be221"
989
+ dependencies = [
990
+ "unic-char-range",
991
+ ]
992
+
993
+ [[package]]
994
+ name = "unic-char-range"
995
+ version = "0.9.0"
996
+ source = "registry+https://github.com/rust-lang/crates.io-index"
997
+ checksum = "0398022d5f700414f6b899e10b8348231abf9173fa93144cbc1a43b9793c1fbc"
998
+
999
+ [[package]]
1000
+ name = "unic-common"
1001
+ version = "0.9.0"
1002
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1003
+ checksum = "80d7ff825a6a654ee85a63e80f92f054f904f21e7d12da4e22f9834a4aaa35bc"
1004
+
1005
+ [[package]]
1006
+ name = "unic-ucd-ident"
1007
+ version = "0.9.0"
1008
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1009
+ checksum = "e230a37c0381caa9219d67cf063aa3a375ffed5bf541a452db16e744bdab6987"
1010
+ dependencies = [
1011
+ "unic-char-property",
1012
+ "unic-char-range",
1013
+ "unic-ucd-version",
1014
+ ]
1015
+
1016
+ [[package]]
1017
+ name = "unic-ucd-version"
1018
+ version = "0.9.0"
1019
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1020
+ checksum = "96bd2f2237fe450fcd0a1d2f5f4e91711124f7857ba2e964247776ebeeb7b0c4"
1021
+ dependencies = [
1022
+ "unic-common",
1023
+ ]
1024
+
1004
1025
  [[package]]
1005
1026
  name = "unicode-ident"
1006
1027
  version = "1.0.22"
@@ -1013,6 +1034,12 @@ version = "0.2.2"
1013
1034
  source = "registry+https://github.com/rust-lang/crates.io-index"
1014
1035
  checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"
1015
1036
 
1037
+ [[package]]
1038
+ name = "unicode-xid"
1039
+ version = "0.2.6"
1040
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1041
+ checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
1042
+
1016
1043
  [[package]]
1017
1044
  name = "utf8parse"
1018
1045
  version = "0.2.2"
celq-0.3.1/Cargo.toml ADDED
@@ -0,0 +1,98 @@
1
+ [package]
2
+ name = "celq"
3
+ description = "A CEL command-line query tool for JSON data"
4
+ version = "0.3.1"
5
+ edition = "2024"
6
+ rust-version = "1.91"
7
+ authors = ["Ivan Carvalho <ivancarvalho@gatech.edu>"]
8
+ repository = "https://github.com/IvanIsCoding/celq"
9
+ license = "MIT OR Apache-2.0"
10
+ keywords = ["cel", "query", "json"]
11
+ categories = ["command-line-utilities"]
12
+ documentation = "https://docs.rs/celq"
13
+
14
+ include = [
15
+ "src/**",
16
+ "docs/**",
17
+ "tests/**",
18
+ "Cargo.toml",
19
+ "Cargo.lock",
20
+ "README.md",
21
+ "LICENSE-MIT",
22
+ "LICENSE-APACHE",
23
+ "CHANGELOG.md",
24
+ ]
25
+ readme = "README.md"
26
+
27
+ [[bin]]
28
+ name = "celq"
29
+ path = "src/main.rs"
30
+
31
+ # celq is not a library. This is merely a trick for docs.rs to build the manual.
32
+ [lib]
33
+ name = "celq"
34
+ path = "src/documentation.rs"
35
+
36
+ [features]
37
+ default = ["mimalloc", "from-toml", "from-yaml", "greppable"]
38
+ from-toml = ["dep:toml"]
39
+ from-yaml = ["dep:serde-saphyr"]
40
+ greppable = ["dep:ressa", "dep:resast"]
41
+
42
+ [dependencies]
43
+ anyhow = "1"
44
+ cel = { version = "0.12.0", features = ["bytes", "json", "regex", "chrono"] }
45
+ clap = { version = ">= 4.5.0, < 5.0.0", features = ["derive"] }
46
+ serde = "1"
47
+ serde_json = { version = "1", features = ["preserve_order"] }
48
+ rayon = "1.11"
49
+ mimalloc = { version = ">=0.1.40, <0.2.0", default-features = false, optional = true }
50
+ json5 = "1.3.0"
51
+ toml = { version = "=0.9.8", default-features = false, features = ["parse", "serde", "preserve_order"], optional = true }
52
+ serde-saphyr = { version = "=0.0.16", default-features = false, optional = true }
53
+ ressa = { version = "=0.8.2", optional = true}
54
+ resast = { version = "=0.5.0", optional = true }
55
+
56
+ [dev-dependencies]
57
+ tempfile = "3"
58
+
59
+ [profile.release]
60
+ lto = "fat"
61
+ codegen-units = 1
62
+
63
+ [package.metadata.docs.rs]
64
+ all-features = true
65
+
66
+ [package.metadata.binstall]
67
+ pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }{ archive-suffix }"
68
+ bin-dir = "{ bin }{ binary-ext }"
69
+ pkg-fmt = "tgz"
70
+ disabled-strategies = ["quick-install", "compile"]
71
+
72
+ [package.metadata.binstall.overrides.aarch64-apple-darwin]
73
+ pkg-url = "{ repo }/releases/download/v{ version }/{ name }-macos-aarch64{ archive-suffix }"
74
+
75
+ [package.metadata.binstall.overrides.x86_64-apple-darwin]
76
+ pkg-url = "{ repo }/releases/download/v{ version }/{ name }-macos-x86_64{ archive-suffix }"
77
+
78
+ [package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
79
+ pkg-url = "{ repo }/releases/download/v{ version }/{ name }-windows-x86_64{ archive-suffix }"
80
+ pkg-fmt = "zip"
81
+
82
+ [package.metadata.binstall.overrides.x86_64-unknown-linux-musl]
83
+ pkg-url = "{ repo }/releases/download/v{ version }/{ name }-linux-x86_64-musl{ archive-suffix }"
84
+
85
+ [package.metadata.binstall.overrides.aarch64-unknown-linux-musl]
86
+ pkg-url = "{ repo }/releases/download/v{ version }/{ name }-linux-aarch64-musl{ archive-suffix }"
87
+
88
+ [package.metadata.binstall.overrides.x86_64-unknown-linux-gnu]
89
+ pkg-url = "{ repo }/releases/download/v{ version }/{ name }-linux-x86_64-gnu{ archive-suffix }"
90
+
91
+ [package.metadata.binstall.overrides.aarch64-unknown-linux-gnu]
92
+ pkg-url = "{ repo }/releases/download/v{ version }/{ name }-linux-aarch64-gnu{ archive-suffix }"
93
+
94
+ [package.metadata.binstall.overrides.x86_64-unknown-freebsd]
95
+ pkg-url = "{ repo }/releases/download/v{ version }/{ name }-freebsd-x86_64{ archive-suffix }"
96
+
97
+ [package.metadata.binstall.overrides.aarch64-unknown-freebsd]
98
+ pkg-url = "{ repo }/releases/download/v{ version }/{ name }-freebsd-aarch64{ archive-suffix }"