oxc 0.2.0-x86_64-linux-gnu → 0.150.0-x86_64-linux-gnu
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 +4 -4
- data/README.md +8 -0
- data/lib/oxc/3.2/oxc.so +0 -0
- data/lib/oxc/3.3/oxc.so +0 -0
- data/lib/oxc/3.4/oxc.so +0 -0
- data/lib/oxc/4.0/oxc.so +0 -0
- data/lib/oxc/version.rb +1 -1
- data/rust/Cargo.lock +77 -83
- data/rust/Cargo.toml +2 -3
- data/rust/build.rs +22 -0
- data/rust/src/lib.rs +2 -2
- data/rust/src/parse.rs +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c154b4e82d52b36da51ffece8a5abc8abd62c65d9ab67b0d58c2fc54b2461af
|
|
4
|
+
data.tar.gz: '09f1b8ab6dc1b840f9fe16418bd4721be75ea7d8d7806bee00a8cf0b534c19d5'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e21f2c3bb8a49bb29704604a77954c8ba32429213d449f577e59ddf5d4bf136dd1d036bed22318df27afd969976568a7f651f9199808f47646e04502a9c8ba18
|
|
7
|
+
data.tar.gz: 1e21a19151ded0757db69c95f9e575061c870f01ad8e9f85eb4d7d15f6bf63b0e29651fe39b5c061feffb45c582ee3cb863d754d22f23b3d38856c35f1719f8d
|
data/README.md
CHANGED
|
@@ -27,6 +27,14 @@ bundle add oxc
|
|
|
27
27
|
|
|
28
28
|
Anywhere a precompiled gem is not published, the gem builds from source and needs the [Rust toolchain](https://rustup.rs) at 1.96 or newer.
|
|
29
29
|
|
|
30
|
+
### Versioning
|
|
31
|
+
|
|
32
|
+
The gem carries the version of oxc it packages. Gem v0.149.0 bundles oxc v0.149.0, and `Oxc.oxc_version` reports what a given build was compiled against.
|
|
33
|
+
|
|
34
|
+
So the version tracks oxc, not the Ruby API here. A minor bump is a minor oxc release, and says nothing about whether this gem's own API moved. Pin on the oxc version you want.
|
|
35
|
+
|
|
36
|
+
If the gem needs releasing again for the same oxc version, that release adds a fourth digit, as in v0.149.0.1.
|
|
37
|
+
|
|
30
38
|
### Usage
|
|
31
39
|
|
|
32
40
|
#### Minifying
|
data/lib/oxc/3.2/oxc.so
CHANGED
|
Binary file
|
data/lib/oxc/3.3/oxc.so
CHANGED
|
Binary file
|
data/lib/oxc/3.4/oxc.so
CHANGED
|
Binary file
|
data/lib/oxc/4.0/oxc.so
CHANGED
|
Binary file
|
data/lib/oxc/version.rb
CHANGED
data/rust/Cargo.lock
CHANGED
|
@@ -127,9 +127,9 @@ dependencies = [
|
|
|
127
127
|
|
|
128
128
|
[[package]]
|
|
129
129
|
name = "cbindgen"
|
|
130
|
-
version = "0.
|
|
130
|
+
version = "0.29.4"
|
|
131
131
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
132
|
-
checksum = "
|
|
132
|
+
checksum = "2ecb53484c9c167ba674026b656d8a27d7657a58e6066aa902bfb1a4aa00ae20"
|
|
133
133
|
dependencies = [
|
|
134
134
|
"clap",
|
|
135
135
|
"heck",
|
|
@@ -304,9 +304,9 @@ dependencies = [
|
|
|
304
304
|
|
|
305
305
|
[[package]]
|
|
306
306
|
name = "heck"
|
|
307
|
-
version = "0.
|
|
307
|
+
version = "0.5.0"
|
|
308
308
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
309
|
-
checksum = "
|
|
309
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
310
310
|
|
|
311
311
|
[[package]]
|
|
312
312
|
name = "hmac-sha1-compact"
|
|
@@ -470,17 +470,11 @@ version = "0.5.2"
|
|
|
470
470
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
471
471
|
checksum = "1a80800c0488c3a21695ea981a54918fbb37abf04f4d0720c453632255e2ff0e"
|
|
472
472
|
|
|
473
|
-
[[package]]
|
|
474
|
-
name = "owo-colors"
|
|
475
|
-
version = "4.3.0"
|
|
476
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
477
|
-
checksum = "d211803b9b6b570f68772237e415a029d5a50c65d382910b879fb19d3271f94d"
|
|
478
|
-
|
|
479
473
|
[[package]]
|
|
480
474
|
name = "oxc"
|
|
481
|
-
version = "0.
|
|
475
|
+
version = "0.150.0"
|
|
482
476
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
483
|
-
checksum = "
|
|
477
|
+
checksum = "a653a52b27d6bad0846e16d65aa1455419be260cfff170225adce49406be810f"
|
|
484
478
|
dependencies = [
|
|
485
479
|
"oxc_allocator",
|
|
486
480
|
"oxc_ast",
|
|
@@ -517,7 +511,7 @@ dependencies = [
|
|
|
517
511
|
|
|
518
512
|
[[package]]
|
|
519
513
|
name = "oxc-ruby-ffi"
|
|
520
|
-
version = "0.
|
|
514
|
+
version = "0.0.0"
|
|
521
515
|
dependencies = [
|
|
522
516
|
"cbindgen",
|
|
523
517
|
"oxc",
|
|
@@ -528,9 +522,9 @@ dependencies = [
|
|
|
528
522
|
|
|
529
523
|
[[package]]
|
|
530
524
|
name = "oxc_allocator"
|
|
531
|
-
version = "0.
|
|
525
|
+
version = "0.150.0"
|
|
532
526
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
533
|
-
checksum = "
|
|
527
|
+
checksum = "8c5deaaa43f0813b6d4a18dcc5f41bea1996f193f0a55d0242831d7f29bfa16d"
|
|
534
528
|
dependencies = [
|
|
535
529
|
"allocator-api2",
|
|
536
530
|
"hashbrown",
|
|
@@ -542,9 +536,9 @@ dependencies = [
|
|
|
542
536
|
|
|
543
537
|
[[package]]
|
|
544
538
|
name = "oxc_ast"
|
|
545
|
-
version = "0.
|
|
539
|
+
version = "0.150.0"
|
|
546
540
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
547
|
-
checksum = "
|
|
541
|
+
checksum = "7ef5ff9b1d70a32b100145065aec1c6c455c58b19c4681d092bd88c24c53972d"
|
|
548
542
|
dependencies = [
|
|
549
543
|
"bitflags",
|
|
550
544
|
"oxc_allocator",
|
|
@@ -560,9 +554,9 @@ dependencies = [
|
|
|
560
554
|
|
|
561
555
|
[[package]]
|
|
562
556
|
name = "oxc_ast_macros"
|
|
563
|
-
version = "0.
|
|
557
|
+
version = "0.150.0"
|
|
564
558
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
565
|
-
checksum = "
|
|
559
|
+
checksum = "c586b5760e383b5453db155be9f58ff6f68337e3e885ceef6817443dc6a10d17"
|
|
566
560
|
dependencies = [
|
|
567
561
|
"phf",
|
|
568
562
|
"proc-macro2",
|
|
@@ -572,9 +566,9 @@ dependencies = [
|
|
|
572
566
|
|
|
573
567
|
[[package]]
|
|
574
568
|
name = "oxc_ast_visit"
|
|
575
|
-
version = "0.
|
|
569
|
+
version = "0.150.0"
|
|
576
570
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
577
|
-
checksum = "
|
|
571
|
+
checksum = "f0cf0a82e610e199a916833a98b6fac20aebd18a5a98a5ac0ec93c23dd600a74"
|
|
578
572
|
dependencies = [
|
|
579
573
|
"oxc_allocator",
|
|
580
574
|
"oxc_ast",
|
|
@@ -584,9 +578,9 @@ dependencies = [
|
|
|
584
578
|
|
|
585
579
|
[[package]]
|
|
586
580
|
name = "oxc_codegen"
|
|
587
|
-
version = "0.
|
|
581
|
+
version = "0.150.0"
|
|
588
582
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
589
|
-
checksum = "
|
|
583
|
+
checksum = "7a018848abf2525c7fa8263b236a818871aed6157291f296fe783fdcfb0997b5"
|
|
590
584
|
dependencies = [
|
|
591
585
|
"bitflags",
|
|
592
586
|
"cow-utils",
|
|
@@ -606,9 +600,9 @@ dependencies = [
|
|
|
606
600
|
|
|
607
601
|
[[package]]
|
|
608
602
|
name = "oxc_compat"
|
|
609
|
-
version = "0.
|
|
603
|
+
version = "0.150.0"
|
|
610
604
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
611
|
-
checksum = "
|
|
605
|
+
checksum = "eacf03320d80691a1f4bbef3a7a9db348121f191d98e62a1b5728f8c92c131a6"
|
|
612
606
|
dependencies = [
|
|
613
607
|
"cow-utils",
|
|
614
608
|
"oxc-browserslist",
|
|
@@ -619,24 +613,23 @@ dependencies = [
|
|
|
619
613
|
|
|
620
614
|
[[package]]
|
|
621
615
|
name = "oxc_data_structures"
|
|
622
|
-
version = "0.
|
|
616
|
+
version = "0.150.0"
|
|
623
617
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
624
|
-
checksum = "
|
|
618
|
+
checksum = "4c21f86e763fc44e3bac2d48f235c9b8156ea173a36d593c3083eebff2426450"
|
|
625
619
|
dependencies = [
|
|
626
620
|
"ropey",
|
|
627
621
|
]
|
|
628
622
|
|
|
629
623
|
[[package]]
|
|
630
624
|
name = "oxc_diagnostics"
|
|
631
|
-
version = "0.
|
|
625
|
+
version = "0.150.0"
|
|
632
626
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
633
|
-
checksum = "
|
|
627
|
+
checksum = "f593a2a02a09fd2c17604587ca61f26266a4e5fbe15d44077a4a8889619097cb"
|
|
634
628
|
dependencies = [
|
|
635
629
|
"bytecount",
|
|
636
630
|
"cow-utils",
|
|
637
631
|
"itoa",
|
|
638
632
|
"memchr",
|
|
639
|
-
"owo-colors",
|
|
640
633
|
"oxc_span",
|
|
641
634
|
"percent-encoding",
|
|
642
635
|
"smallvec",
|
|
@@ -647,9 +640,9 @@ dependencies = [
|
|
|
647
640
|
|
|
648
641
|
[[package]]
|
|
649
642
|
name = "oxc_ecmascript"
|
|
650
|
-
version = "0.
|
|
643
|
+
version = "0.150.0"
|
|
651
644
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
652
|
-
checksum = "
|
|
645
|
+
checksum = "ea328d9a72149a9a971181374291f9a8bb109fa0703563b7dddb1e068620f1cc"
|
|
653
646
|
dependencies = [
|
|
654
647
|
"cow-utils",
|
|
655
648
|
"dragonbox_ecma",
|
|
@@ -668,9 +661,9 @@ dependencies = [
|
|
|
668
661
|
|
|
669
662
|
[[package]]
|
|
670
663
|
name = "oxc_estree"
|
|
671
|
-
version = "0.
|
|
664
|
+
version = "0.150.0"
|
|
672
665
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
673
|
-
checksum = "
|
|
666
|
+
checksum = "dcd53514d0e7ac8026261a79694680a1186649af0eb7ccbae60d7a7a755f9519"
|
|
674
667
|
dependencies = [
|
|
675
668
|
"dragonbox_ecma",
|
|
676
669
|
"itoa",
|
|
@@ -689,9 +682,9 @@ dependencies = [
|
|
|
689
682
|
|
|
690
683
|
[[package]]
|
|
691
684
|
name = "oxc_isolated_declarations"
|
|
692
|
-
version = "0.
|
|
685
|
+
version = "0.150.0"
|
|
693
686
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
694
|
-
checksum = "
|
|
687
|
+
checksum = "d71b6a2f9562c860a8c8d06ff1ec1f9b858ab0886477ba58b148253f4b4935ee"
|
|
695
688
|
dependencies = [
|
|
696
689
|
"bitflags",
|
|
697
690
|
"oxc_allocator",
|
|
@@ -707,9 +700,9 @@ dependencies = [
|
|
|
707
700
|
|
|
708
701
|
[[package]]
|
|
709
702
|
name = "oxc_mangler"
|
|
710
|
-
version = "0.
|
|
703
|
+
version = "0.150.0"
|
|
711
704
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
712
|
-
checksum = "
|
|
705
|
+
checksum = "7b733c8ecbede43b11b8e1bf12b53cb7525f14139ea0fc3f0ac9f9efe321f0f4"
|
|
713
706
|
dependencies = [
|
|
714
707
|
"itertools",
|
|
715
708
|
"oxc_allocator",
|
|
@@ -726,9 +719,9 @@ dependencies = [
|
|
|
726
719
|
|
|
727
720
|
[[package]]
|
|
728
721
|
name = "oxc_minifier"
|
|
729
|
-
version = "0.
|
|
722
|
+
version = "0.150.0"
|
|
730
723
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
731
|
-
checksum = "
|
|
724
|
+
checksum = "4f78e90fe1a401187832eab1d052346f3299bc5d148fa5a3aa80bc871d1e0d18"
|
|
732
725
|
dependencies = [
|
|
733
726
|
"cow-utils",
|
|
734
727
|
"itoa",
|
|
@@ -752,9 +745,9 @@ dependencies = [
|
|
|
752
745
|
|
|
753
746
|
[[package]]
|
|
754
747
|
name = "oxc_parser"
|
|
755
|
-
version = "0.
|
|
748
|
+
version = "0.150.0"
|
|
756
749
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
757
|
-
checksum = "
|
|
750
|
+
checksum = "44083f63120e1abe371cddd4eb209a580ab8490c2e5b42cacc11e7fe6fd1e7c2"
|
|
758
751
|
dependencies = [
|
|
759
752
|
"bitflags",
|
|
760
753
|
"cow-utils",
|
|
@@ -776,9 +769,9 @@ dependencies = [
|
|
|
776
769
|
|
|
777
770
|
[[package]]
|
|
778
771
|
name = "oxc_regular_expression"
|
|
779
|
-
version = "0.
|
|
772
|
+
version = "0.150.0"
|
|
780
773
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
781
|
-
checksum = "
|
|
774
|
+
checksum = "bf8faa9da3f4d14d5a13c1facce217231cfb5071f05ce1affb6395dd25b1de9c"
|
|
782
775
|
dependencies = [
|
|
783
776
|
"bitflags",
|
|
784
777
|
"oxc_allocator",
|
|
@@ -793,9 +786,9 @@ dependencies = [
|
|
|
793
786
|
|
|
794
787
|
[[package]]
|
|
795
788
|
name = "oxc_semantic"
|
|
796
|
-
version = "0.
|
|
789
|
+
version = "0.150.0"
|
|
797
790
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
798
|
-
checksum = "
|
|
791
|
+
checksum = "bb42b29a8296620e5343a802038d323fde50707b2502ccaa82e10bdf0fd904e4"
|
|
799
792
|
dependencies = [
|
|
800
793
|
"itertools",
|
|
801
794
|
"memchr",
|
|
@@ -829,9 +822,9 @@ dependencies = [
|
|
|
829
822
|
|
|
830
823
|
[[package]]
|
|
831
824
|
name = "oxc_span"
|
|
832
|
-
version = "0.
|
|
825
|
+
version = "0.150.0"
|
|
833
826
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
834
|
-
checksum = "
|
|
827
|
+
checksum = "674178f9b8af8135559b51fea7a416ea18efe6aa03ed5491f86f0c75f2336a43"
|
|
835
828
|
dependencies = [
|
|
836
829
|
"compact_str",
|
|
837
830
|
"oxc_allocator",
|
|
@@ -843,9 +836,9 @@ dependencies = [
|
|
|
843
836
|
|
|
844
837
|
[[package]]
|
|
845
838
|
name = "oxc_str"
|
|
846
|
-
version = "0.
|
|
839
|
+
version = "0.150.0"
|
|
847
840
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
848
|
-
checksum = "
|
|
841
|
+
checksum = "5fab366ed74ea0f6a67d2b70b3acfd1725999a4a62645efa330121c392e5061e"
|
|
849
842
|
dependencies = [
|
|
850
843
|
"compact_str",
|
|
851
844
|
"hashbrown",
|
|
@@ -856,9 +849,9 @@ dependencies = [
|
|
|
856
849
|
|
|
857
850
|
[[package]]
|
|
858
851
|
name = "oxc_syntax"
|
|
859
|
-
version = "0.
|
|
852
|
+
version = "0.150.0"
|
|
860
853
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
861
|
-
checksum = "
|
|
854
|
+
checksum = "ae0769e32cf58d63139e3e21dfa8e2f8444b83d41be1733cd12de6ed1b9362e9"
|
|
862
855
|
dependencies = [
|
|
863
856
|
"bitflags",
|
|
864
857
|
"cow-utils",
|
|
@@ -877,9 +870,9 @@ dependencies = [
|
|
|
877
870
|
|
|
878
871
|
[[package]]
|
|
879
872
|
name = "oxc_transformer"
|
|
880
|
-
version = "0.
|
|
873
|
+
version = "0.150.0"
|
|
881
874
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
882
|
-
checksum = "
|
|
875
|
+
checksum = "7575bbaf825b93ea959c94907aafba9e9fea01116b3f455c0e06a34a13327543"
|
|
883
876
|
dependencies = [
|
|
884
877
|
"base64",
|
|
885
878
|
"compact_str",
|
|
@@ -907,9 +900,9 @@ dependencies = [
|
|
|
907
900
|
|
|
908
901
|
[[package]]
|
|
909
902
|
name = "oxc_transformer_plugins"
|
|
910
|
-
version = "0.
|
|
903
|
+
version = "0.150.0"
|
|
911
904
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
912
|
-
checksum = "
|
|
905
|
+
checksum = "1bf5de6549085ec855e3e1b01fa3d4f2bcda8a26c31fa468205624552ba0f4f1"
|
|
913
906
|
dependencies = [
|
|
914
907
|
"cow-utils",
|
|
915
908
|
"itoa",
|
|
@@ -930,9 +923,9 @@ dependencies = [
|
|
|
930
923
|
|
|
931
924
|
[[package]]
|
|
932
925
|
name = "oxc_traverse"
|
|
933
|
-
version = "0.
|
|
926
|
+
version = "0.150.0"
|
|
934
927
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
935
|
-
checksum = "
|
|
928
|
+
checksum = "ae5cc628f131fbb82083ec77a59191ee9a6f9e7b49e575b1b787313119df48f8"
|
|
936
929
|
dependencies = [
|
|
937
930
|
"itoa",
|
|
938
931
|
"oxc_allocator",
|
|
@@ -1159,11 +1152,11 @@ dependencies = [
|
|
|
1159
1152
|
|
|
1160
1153
|
[[package]]
|
|
1161
1154
|
name = "serde_spanned"
|
|
1162
|
-
version = "
|
|
1155
|
+
version = "1.1.1"
|
|
1163
1156
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1164
|
-
checksum = "
|
|
1157
|
+
checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26"
|
|
1165
1158
|
dependencies = [
|
|
1166
|
-
"
|
|
1159
|
+
"serde_core",
|
|
1167
1160
|
]
|
|
1168
1161
|
|
|
1169
1162
|
[[package]]
|
|
@@ -1279,44 +1272,42 @@ dependencies = [
|
|
|
1279
1272
|
|
|
1280
1273
|
[[package]]
|
|
1281
1274
|
name = "toml"
|
|
1282
|
-
version = "0.
|
|
1275
|
+
version = "0.9.12+spec-1.1.0"
|
|
1283
1276
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1284
|
-
checksum = "
|
|
1277
|
+
checksum = "cf92845e79fc2e2def6a5d828f0801e29a2f8acc037becc5ab08595c7d5e9863"
|
|
1285
1278
|
dependencies = [
|
|
1286
|
-
"
|
|
1279
|
+
"indexmap",
|
|
1280
|
+
"serde_core",
|
|
1287
1281
|
"serde_spanned",
|
|
1288
1282
|
"toml_datetime",
|
|
1289
|
-
"
|
|
1283
|
+
"toml_parser",
|
|
1284
|
+
"toml_writer",
|
|
1285
|
+
"winnow 0.7.15",
|
|
1290
1286
|
]
|
|
1291
1287
|
|
|
1292
1288
|
[[package]]
|
|
1293
1289
|
name = "toml_datetime"
|
|
1294
|
-
version = "0.
|
|
1290
|
+
version = "0.7.5+spec-1.1.0"
|
|
1295
1291
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1296
|
-
checksum = "
|
|
1292
|
+
checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347"
|
|
1297
1293
|
dependencies = [
|
|
1298
|
-
"
|
|
1294
|
+
"serde_core",
|
|
1299
1295
|
]
|
|
1300
1296
|
|
|
1301
1297
|
[[package]]
|
|
1302
|
-
name = "
|
|
1303
|
-
version = "
|
|
1298
|
+
name = "toml_parser"
|
|
1299
|
+
version = "1.1.3+spec-1.1.0"
|
|
1304
1300
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1305
|
-
checksum = "
|
|
1301
|
+
checksum = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56"
|
|
1306
1302
|
dependencies = [
|
|
1307
|
-
"
|
|
1308
|
-
"serde",
|
|
1309
|
-
"serde_spanned",
|
|
1310
|
-
"toml_datetime",
|
|
1311
|
-
"toml_write",
|
|
1312
|
-
"winnow",
|
|
1303
|
+
"winnow 1.0.4",
|
|
1313
1304
|
]
|
|
1314
1305
|
|
|
1315
1306
|
[[package]]
|
|
1316
|
-
name = "
|
|
1317
|
-
version = "
|
|
1307
|
+
name = "toml_writer"
|
|
1308
|
+
version = "1.1.2+spec-1.1.0"
|
|
1318
1309
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1319
|
-
checksum = "
|
|
1310
|
+
checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2"
|
|
1320
1311
|
|
|
1321
1312
|
[[package]]
|
|
1322
1313
|
name = "unicode-id-start"
|
|
@@ -1425,9 +1416,12 @@ name = "winnow"
|
|
|
1425
1416
|
version = "0.7.15"
|
|
1426
1417
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1427
1418
|
checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945"
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1419
|
+
|
|
1420
|
+
[[package]]
|
|
1421
|
+
name = "winnow"
|
|
1422
|
+
version = "1.0.4"
|
|
1423
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1424
|
+
checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81"
|
|
1431
1425
|
|
|
1432
1426
|
[[package]]
|
|
1433
1427
|
name = "zmij"
|
data/rust/Cargo.toml
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
[package]
|
|
4
4
|
name = "oxc-ruby-ffi"
|
|
5
|
-
version = "0.2.0"
|
|
6
5
|
edition = "2021"
|
|
7
6
|
authors = ["Marco Roth <marco.roth@intergga.ch>"]
|
|
8
7
|
description = "C FFI bindings for oxc, used by the oxc gem"
|
|
@@ -16,13 +15,13 @@ path = "src/lib.rs"
|
|
|
16
15
|
crate-type = ["cdylib", "staticlib", "rlib"]
|
|
17
16
|
|
|
18
17
|
[dependencies]
|
|
19
|
-
oxc = { version = "=0.
|
|
18
|
+
oxc = { version = "=0.150.0", features = ["full", "serialize"] }
|
|
20
19
|
oxc_sourcemap = "8"
|
|
21
20
|
serde = { version = "1", features = ["derive"] }
|
|
22
21
|
serde_json = { version = "1", features = ["raw_value"] }
|
|
23
22
|
|
|
24
23
|
[build-dependencies]
|
|
25
|
-
cbindgen = "0.
|
|
24
|
+
cbindgen = "0.29"
|
|
26
25
|
|
|
27
26
|
[profile.release]
|
|
28
27
|
opt-level = 3
|
data/rust/build.rs
CHANGED
|
@@ -28,7 +28,29 @@ fn main() {
|
|
|
28
28
|
PathBuf::from(&crate_dir).join("cbindgen.toml").display()
|
|
29
29
|
);
|
|
30
30
|
|
|
31
|
+
let version_rb_path = PathBuf::from(&crate_dir).join("../lib/oxc/version.rb");
|
|
32
|
+
|
|
33
|
+
println!("cargo:rerun-if-changed={}", version_rb_path.display());
|
|
34
|
+
|
|
31
35
|
println!("cargo:rustc-env=OXC_VERSION={}", locked_version(&lock_path, "oxc"));
|
|
36
|
+
|
|
37
|
+
println!("cargo:rustc-env=GEM_VERSION={}", gem_version(&version_rb_path));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
fn gem_version(version_rb_path: &PathBuf) -> String {
|
|
41
|
+
let Ok(source) = fs::read_to_string(version_rb_path) else {
|
|
42
|
+
return "unknown".to_string();
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
for line in source.lines() {
|
|
46
|
+
let Some(rest) = line.trim().strip_prefix("VERSION = ") else {
|
|
47
|
+
continue;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
return rest.trim().trim_matches('"').to_string();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
"unknown".to_string()
|
|
32
54
|
}
|
|
33
55
|
|
|
34
56
|
fn locked_version(lock_path: &PathBuf, package: &str) -> String {
|
data/rust/src/lib.rs
CHANGED
|
@@ -37,7 +37,7 @@ use crate::result::{MinifyPayload, TransformPayload};
|
|
|
37
37
|
use crate::source_type::source_type_for;
|
|
38
38
|
use crate::transform::Compiler;
|
|
39
39
|
|
|
40
|
-
pub const VERSION: &str = env!("
|
|
40
|
+
pub const VERSION: &str = env!("GEM_VERSION");
|
|
41
41
|
pub const OXC_VERSION: &str = env!("OXC_VERSION");
|
|
42
42
|
|
|
43
43
|
#[repr(C)]
|
|
@@ -200,7 +200,7 @@ fn minify_source(source: &str, options: &MinifyOptions) -> Result<MinifyPayload,
|
|
|
200
200
|
map,
|
|
201
201
|
legal_comments,
|
|
202
202
|
errors: Diagnostic::from_diagnostics(&filename, source, parsed.diagnostics),
|
|
203
|
-
panicked: parsed.
|
|
203
|
+
panicked: parsed.fatal_error,
|
|
204
204
|
})
|
|
205
205
|
}
|
|
206
206
|
|
data/rust/src/parse.rs
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: oxc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.150.0
|
|
5
5
|
platform: x86_64-linux-gnu
|
|
6
6
|
authors:
|
|
7
7
|
- Marco Roth
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-09-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Ruby bindings for Oxc, the JavaScript Oxidation Compiler. A collection
|
|
14
14
|
of high-performance tools for JavaScript and TypeScript written in Rust.
|