@grain/binaryen.ml 0.9.0 → 0.11.1

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 (135) hide show
  1. binaryen-archive/.gitignore +1 -0
  2. binaryen-archive/CHANGELOG.md +73 -0
  3. binaryen-archive/README.md +27 -3
  4. binaryen-archive/binaryen.opam +8 -8
  5. binaryen-archive/esy.lock/index.json +537 -460
  6. binaryen-archive/esy.lock/opam/{base.v0.14.1 → base.v0.14.2}/opam +4 -4
  7. binaryen-archive/esy.lock/opam/biniou.1.2.1/opam +1 -1
  8. binaryen-archive/esy.lock/opam/{cppo.1.6.7 → cppo.1.6.8}/opam +4 -6
  9. binaryen-archive/esy.lock/opam/{csexp.1.4.0 → csexp.1.5.1}/opam +11 -9
  10. binaryen-archive/esy.lock/opam/{dune-build-info.2.8.2 → dune-build-info.2.9.1}/opam +5 -5
  11. binaryen-archive/esy.lock/opam/{dune-configurator.2.8.2 → dune-configurator.2.9.1}/opam +5 -5
  12. binaryen-archive/esy.lock/opam/{dune.2.8.2 → dune.2.9.1}/opam +4 -4
  13. binaryen-archive/esy.lock/opam/easy-format.1.3.2/opam +1 -1
  14. binaryen-archive/esy.lock/opam/{fix.20201120 → fix.20211231}/opam +7 -5
  15. binaryen-archive/esy.lock/opam/js_of_ocaml-compiler.3.11.0/opam +54 -0
  16. binaryen-archive/esy.lock/opam/js_of_ocaml-ppx.3.11.0/opam +44 -0
  17. binaryen-archive/esy.lock/opam/js_of_ocaml.3.11.0/opam +45 -0
  18. binaryen-archive/esy.lock/opam/{menhir.20201216 → menhir.20211128}/opam +8 -6
  19. binaryen-archive/esy.lock/opam/{menhirLib.20201216 → menhirLib.20211128}/opam +8 -6
  20. binaryen-archive/esy.lock/opam/{menhirSdk.20201216 → menhirSdk.20211128}/opam +8 -6
  21. binaryen-archive/esy.lock/opam/ocaml-compiler-libs.v0.12.4/opam +39 -0
  22. binaryen-archive/esy.lock/opam/{ocaml-lsp-server.1.4.0 → ocaml-lsp-server.1.9.0}/opam +15 -12
  23. binaryen-archive/esy.lock/opam/{ocaml-migrate-parsetree.2.1.0 → ocaml-migrate-parsetree.2.3.0}/opam +13 -10
  24. binaryen-archive/esy.lock/opam/ocaml-version.3.4.0/opam +49 -0
  25. binaryen-archive/esy.lock/opam/ocamlbuild.0.14.0/opam +1 -1
  26. binaryen-archive/esy.lock/opam/{ocamlfind.1.8.1 → ocamlfind.1.9.1}/opam +19 -39
  27. binaryen-archive/esy.lock/opam/ocamlformat-rpc-lib.0.19.0/opam +40 -0
  28. binaryen-archive/esy.lock/opam/ocamlformat.0.18.0/opam +56 -0
  29. binaryen-archive/esy.lock/opam/{odoc.1.5.2 → odoc.1.5.3}/opam +12 -12
  30. binaryen-archive/esy.lock/opam/pp.1.1.2/opam +58 -0
  31. binaryen-archive/esy.lock/opam/ppx_derivers.1.2.1/opam +1 -1
  32. binaryen-archive/esy.lock/opam/ppx_yojson_conv_lib.v0.14.0/opam +2 -2
  33. binaryen-archive/esy.lock/opam/{ppxlib.0.21.0 → ppxlib.0.22.2}/opam +40 -32
  34. binaryen-archive/esy.lock/opam/{re.1.9.0 → re.1.10.3}/opam +8 -4
  35. binaryen-archive/esy.lock/opam/result.1.5/opam +2 -2
  36. binaryen-archive/esy.lock/opam/sexplib0.v0.14.0/opam +2 -2
  37. binaryen-archive/esy.lock/opam/spawn.v0.15.0/opam +56 -0
  38. binaryen-archive/esy.lock/opam/stdio.v0.14.0/opam +2 -2
  39. binaryen-archive/esy.lock/opam/{topkg.1.0.3 → topkg.1.0.4}/opam +18 -22
  40. binaryen-archive/esy.lock/opam/tyxml.4.5.0/opam +42 -0
  41. binaryen-archive/esy.lock/opam/uucp.14.0.0/opam +41 -0
  42. binaryen-archive/esy.lock/opam/{uuseg.13.0.0 → uuseg.14.0.0}/opam +22 -28
  43. binaryen-archive/esy.lock/opam/yojson.1.7.0/opam +1 -1
  44. binaryen-archive/esy.lock/overrides/{opam__s__ocamlfind_opam__c__1.8.1_opam_override/files/findlib-1.8.1.patch → opam__s__ocamlfind_opam__c__1.9.1_opam_override/files/findlib-1.9.1.patch} +0 -0
  45. binaryen-archive/esy.lock/overrides/{opam__s__ocamlfind_opam__c__1.8.1_opam_override → opam__s__ocamlfind_opam__c__1.9.1_opam_override}/package.json +1 -1
  46. binaryen-archive/js/binaryen.es5.js +5 -0
  47. binaryen-archive/js/dune +1 -6
  48. binaryen-archive/js/element_segment.ml +33 -0
  49. binaryen-archive/js/export.ml +37 -0
  50. binaryen-archive/js/expression.ml +935 -177
  51. binaryen-archive/js/function.ml +31 -0
  52. binaryen-archive/js/global.ml +29 -0
  53. binaryen-archive/js/import.ml +24 -0
  54. binaryen-archive/js/literal.ml +8 -4
  55. binaryen-archive/js/module.ml +42 -46
  56. binaryen-archive/js/op.ml +9 -78
  57. binaryen-archive/js/settings.ml +60 -0
  58. binaryen-archive/js/table.ml +20 -3
  59. binaryen-archive/js/type.ml +3 -0
  60. binaryen-archive/package.json +14 -20
  61. binaryen-archive/src/binaryen_stubs_exports.c +78 -0
  62. binaryen-archive/src/binaryen_stubs_expressions.c +1300 -0
  63. binaryen-archive/src/binaryen_stubs_features.c +7 -0
  64. binaryen-archive/src/binaryen_stubs_functions.c +78 -0
  65. binaryen-archive/src/binaryen_stubs_globals.c +63 -0
  66. binaryen-archive/src/binaryen_stubs_imports.c +29 -0
  67. binaryen-archive/src/binaryen_stubs_memory.c +1 -1
  68. binaryen-archive/src/binaryen_stubs_modules.c +0 -122
  69. binaryen-archive/src/binaryen_stubs_ops.c +19 -173
  70. binaryen-archive/src/binaryen_stubs_settings.c +145 -0
  71. binaryen-archive/src/binaryen_stubs_tables.c +121 -7
  72. binaryen-archive/src/binaryen_stubs_types.c +18 -0
  73. binaryen-archive/src/dune +5 -44
  74. binaryen-archive/src/element_segment.ml +13 -0
  75. binaryen-archive/src/export.ml +33 -0
  76. binaryen-archive/src/expression.ml +805 -76
  77. binaryen-archive/src/function.ml +18 -0
  78. binaryen-archive/src/global.ml +14 -0
  79. binaryen-archive/src/import.ml +12 -0
  80. binaryen-archive/src/literal.ml +2 -2
  81. binaryen-archive/src/module.ml +64 -38
  82. binaryen-archive/src/ocaml_helpers.c +0 -8
  83. binaryen-archive/src/ocaml_helpers.h +2 -3
  84. binaryen-archive/src/op.ml +18 -131
  85. binaryen-archive/src/settings.ml +45 -0
  86. binaryen-archive/src/table.ml +26 -4
  87. binaryen-archive/src/type.ml +2 -0
  88. binaryen-archive/test/config/dune +8 -0
  89. binaryen-archive/test/config/ocamlopt_flags.ml +16 -0
  90. binaryen-archive/test/dune +4 -0
  91. binaryen-archive/test/test.expected +38 -3
  92. binaryen-archive/test/test.ml +90 -18
  93. binaryen-archive/virtual/dune +2 -2
  94. binaryen-archive/virtual/element_segment.mli +11 -0
  95. binaryen-archive/virtual/export.mli +22 -0
  96. binaryen-archive/virtual/expression.mli +389 -34
  97. binaryen-archive/virtual/function.mli +16 -0
  98. binaryen-archive/virtual/global.mli +12 -0
  99. binaryen-archive/virtual/import.mli +8 -0
  100. binaryen-archive/virtual/literal.mli +2 -2
  101. binaryen-archive/virtual/module.mli +25 -27
  102. binaryen-archive/virtual/op.mli +9 -53
  103. binaryen-archive/virtual/settings.mli +35 -0
  104. binaryen-archive/virtual/table.mli +19 -2
  105. binaryen-archive/virtual/type.mli +2 -0
  106. binaryen-archive/esy.lock/opam/conf-m4.1/opam +0 -22
  107. binaryen-archive/esy.lock/opam/dot-merlin-reader.4.1/opam +0 -30
  108. binaryen-archive/esy.lock/opam/js_of_ocaml-compiler.3.9.1/opam +0 -40
  109. binaryen-archive/esy.lock/opam/js_of_ocaml-ppx.3.9.0/opam +0 -30
  110. binaryen-archive/esy.lock/opam/js_of_ocaml.3.9.0/opam +0 -31
  111. binaryen-archive/esy.lock/opam/ocaml-compiler-libs.v0.12.3/opam +0 -29
  112. binaryen-archive/esy.lock/opam/ocamlfind.1.8.1/files/ocaml-stub +0 -4
  113. binaryen-archive/esy.lock/opam/ocamlfind.1.8.1/files/ocamlfind.install +0 -6
  114. binaryen-archive/esy.lock/opam/ocamlformat.0.15.1/opam +0 -41
  115. binaryen-archive/esy.lock/opam/tyxml.4.4.0/opam +0 -47
  116. binaryen-archive/esy.lock/opam/uucp.13.0.0/opam +0 -44
  117. binaryen-archive/esy.lock/overrides/opam__s__conf_m4_opam__c__1_opam_override/package.json +0 -6
  118. binaryen-archive/js/features.ml +0 -27
  119. binaryen-archive/js/function_table.ml +0 -13
  120. binaryen-archive/src/binaryen_stubs_function_tables.c +0 -25
  121. binaryen-archive/src/config/dune +0 -8
  122. binaryen-archive/src/config/library_flags.ml +0 -16
  123. binaryen-archive/src/features.ml +0 -49
  124. binaryen-archive/src/function_table.ml +0 -6
  125. binaryen-archive/vendor/binaryen-c.h +0 -2647
  126. binaryen-archive/vendor/js/index.es5.js +0 -5
  127. binaryen-archive/vendor/linux/libbinaryen.a +0 -0
  128. binaryen-archive/vendor/linux/libbinaryen.so +0 -0
  129. binaryen-archive/vendor/macosx/libbinaryen.a +0 -0
  130. binaryen-archive/vendor/macosx/libbinaryen.dylib +0 -0
  131. binaryen-archive/vendor/mingw64/libbinaryen.a +0 -0
  132. binaryen-archive/vendor/mingw64/libbinaryen.dll +0 -0
  133. binaryen-archive/vendor/wasm-delegations.h +0 -85
  134. binaryen-archive/virtual/features.mli +0 -23
  135. binaryen-archive/virtual/function_table.mli +0 -4
@@ -424,8 +424,6 @@ val abs_vec_i8x16 : t
424
424
 
425
425
  val neg_vec_i8x16 : t
426
426
 
427
- val any_true_vec_i8x16 : t
428
-
429
427
  val all_true_vec_i8x16 : t
430
428
 
431
429
  val bitmask_vec_i8x16 : t
@@ -448,8 +446,6 @@ val sub_sat_s_vec_i8x16 : t
448
446
 
449
447
  val sub_sat_u_vec_i8x16 : t
450
448
 
451
- val mul_vec_i8x16 : t
452
-
453
449
  val min_s_vec_i8x16 : t
454
450
 
455
451
  val min_u_vec_i8x16 : t
@@ -464,8 +460,6 @@ val abs_vec_i16x8 : t
464
460
 
465
461
  val neg_vec_i16x8 : t
466
462
 
467
- val any_true_vec_i16x8 : t
468
-
469
463
  val all_true_vec_i16x8 : t
470
464
 
471
465
  val bitmask_vec_i16x8 : t
@@ -504,8 +498,6 @@ val abs_vec_i32x4 : t
504
498
 
505
499
  val neg_vec_i32x4 : t
506
500
 
507
- val any_true_vec_i32x4 : t
508
-
509
501
  val all_true_vec_i32x4 : t
510
502
 
511
503
  val bitmask_vec_i32x4 : t
@@ -552,10 +544,6 @@ val neg_vec_f32x4 : t
552
544
 
553
545
  val sqrt_vec_f32x4 : t
554
546
 
555
- val qfma_vec_f32x4 : t
556
-
557
- val qfms_vec_f32x4 : t
558
-
559
547
  val add_vec_f32x4 : t
560
548
 
561
549
  val sub_vec_f32x4 : t
@@ -586,10 +574,6 @@ val neg_vec_f64x2 : t
586
574
 
587
575
  val sqrt_vec_f64x2 : t
588
576
 
589
- val qfma_vec_f64x2 : t
590
-
591
- val qfms_vec_f64x2 : t
592
-
593
577
  val add_vec_f64x2 : t
594
578
 
595
579
  val sub_vec_f64x2 : t
@@ -618,38 +602,10 @@ val trunc_sat_s_vec_f32x4_to_vec_i32x4 : t
618
602
 
619
603
  val trunc_sat_u_vec_f32x4_to_vec_i32x4 : t
620
604
 
621
- val trunc_sat_s_vec_f64x2_to_vec_i64x2 : t
622
-
623
- val trunc_sat_u_vec_f64x2_to_vec_i64x2 : t
624
-
625
605
  val convert_s_vec_i32x4_to_vec_f32x4 : t
626
606
 
627
607
  val convert_u_vec_i32x4_to_vec_f32x4 : t
628
608
 
629
- val convert_s_vec_i64x2_to_vec_f64x2 : t
630
-
631
- val convert_u_vec_i64x2_to_vec_f64x2 : t
632
-
633
- val load_splat_vec8x16 : t
634
-
635
- val load_splat_vec16x8 : t
636
-
637
- val load_splat_vec32x4 : t
638
-
639
- val load_splat_vec64x2 : t
640
-
641
- val load_ext_s_vec8x8_to_vec_i16x8 : t
642
-
643
- val load_ext_u_vec8x8_to_vec_i16x8 : t
644
-
645
- val load_ext_s_vec16x4_to_vec_i32x4 : t
646
-
647
- val load_ext_u_vec16x4_to_vec_i32x4 : t
648
-
649
- val load_ext_s_vec32x2_to_vec_i64x2 : t
650
-
651
- val load_ext_u_vec32x2_to_vec_i64x2 : t
652
-
653
609
  val narrow_s_vec_i16x8_to_vec_i8x16 : t
654
610
 
655
611
  val narrow_u_vec_i16x8_to_vec_i8x16 : t
@@ -658,20 +614,20 @@ val narrow_s_vec_i32x4_to_vec_i16x8 : t
658
614
 
659
615
  val narrow_u_vec_i32x4_to_vec_i16x8 : t
660
616
 
661
- val widen_low_s_vec_i8x16_to_vec_i16x8 : t
617
+ val swizzle_vec8x16 : t
662
618
 
663
- val widen_high_s_vec_i8x16_to_vec_i16x8 : t
619
+ val ref_is_null : t
664
620
 
665
- val widen_low_u_vec_i8x16_to_vec_i16x8 : t
621
+ val ref_is_func : t
666
622
 
667
- val widen_high_u_vec_i8x16_to_vec_i16x8 : t
623
+ val ref_is_data : t
668
624
 
669
- val widen_low_s_vec_i16x8_to_vec_i32x4 : t
625
+ val ref_is_i31 : t
670
626
 
671
- val widen_high_s_vec_i16x8_to_vec_i32x4 : t
627
+ val ref_as_non_null : t
672
628
 
673
- val widen_low_u_vec_i16x8_to_vec_i32x4 : t
629
+ val ref_as_func : t
674
630
 
675
- val widen_high_u_vec_i16x8_to_vec_i32x4 : t
631
+ val ref_as_data : t
676
632
 
677
- val swizzle_vec8x16 : t
633
+ val ref_as_i31 : t
@@ -0,0 +1,35 @@
1
+ val get_optimize_level : unit -> int
2
+
3
+ val set_optimize_level : int -> unit
4
+
5
+ val get_shrink_level : unit -> int
6
+
7
+ val set_shrink_level : int -> unit
8
+
9
+ val get_debug_info : unit -> bool
10
+
11
+ val set_debug_info : bool -> unit
12
+
13
+ val get_low_memory_unused : unit -> bool
14
+
15
+ val set_low_memory_unused : bool -> unit
16
+
17
+ val get_pass_argument : string -> string
18
+
19
+ val set_pass_argument : string -> string -> unit
20
+
21
+ val get_always_inline_max_size : unit -> int
22
+
23
+ val set_always_inline_max_size : int -> unit
24
+
25
+ val get_flexible_inline_max_size : unit -> int
26
+
27
+ val set_flexible_inline_max_size : int -> unit
28
+
29
+ val get_one_caller_inline_max_size : unit -> int
30
+
31
+ val set_one_caller_inline_max_size : int -> unit
32
+
33
+ val set_colors_enabled : bool -> unit
34
+
35
+ val are_colors_enabled : unit -> bool
@@ -1,2 +1,19 @@
1
- val add_table :
2
- Module.t -> string -> int -> int -> string list -> Expression.t -> unit
1
+ type t
2
+
3
+ val add_table : Module.t -> string -> int -> int -> t
4
+
5
+ val add_active_element_segment :
6
+ Module.t ->
7
+ string ->
8
+ string ->
9
+ string list ->
10
+ Expression.t ->
11
+ Element_segment.t
12
+
13
+ val remove_element_segment : Module.t -> string -> unit
14
+
15
+ val get_num_element_segments : Module.t -> int
16
+
17
+ val get_element_segment : Module.t -> string -> Element_segment.t
18
+
19
+ val get_element_segment_by_index : Module.t -> int -> Element_segment.t
@@ -21,3 +21,5 @@ val unreachable : t
21
21
  val auto : t
22
22
 
23
23
  val create : t array -> t
24
+
25
+ val expand : t -> t array
@@ -1,22 +0,0 @@
1
- opam-version: "2.0"
2
- maintainer: "tim@gfxmonk.net"
3
- homepage: "http://www.gnu.org/software/m4/m4.html"
4
- bug-reports: "https://github.com/ocaml/opam-repository/issues"
5
- authors: "GNU Project"
6
- license: "GPL-3.0-only"
7
- build: [["sh" "-exc" "echo | m4"]]
8
- depexts: [
9
- ["m4"] {os-family = "debian"}
10
- ["m4"] {os-distribution = "fedora"}
11
- ["m4"] {os-distribution = "rhel"}
12
- ["m4"] {os-distribution = "centos"}
13
- ["m4"] {os-distribution = "alpine"}
14
- ["m4"] {os-distribution = "nixos"}
15
- ["m4"] {os-family = "suse"}
16
- ["m4"] {os-distribution = "ol"}
17
- ["m4"] {os-distribution = "arch"}
18
- ]
19
- synopsis: "Virtual package relying on m4"
20
- description:
21
- "This package can only install if the m4 binary is installed on the system."
22
- flags: conf
@@ -1,30 +0,0 @@
1
- opam-version: "2.0"
2
- maintainer: "defree@gmail.com"
3
- authors: "The Merlin team"
4
- synopsis: "Reads config files for merlin"
5
- homepage: "https://github.com/ocaml/merlin"
6
- bug-reports: "https://github.com/ocaml/merlin/issues"
7
- dev-repo: "git+https://github.com/ocaml/merlin.git"
8
- build: [
9
- ["dune" "subst"] {pinned}
10
- ["dune" "build" "-p" name "-j" jobs]
11
- ]
12
- depends: [
13
- "ocaml" {>= "4.06.1" }
14
- "dune" {>= "2.7.0"}
15
- "yojson" {>= "1.6.0"}
16
- "ocamlfind" {>= "1.6.0"}
17
- "csexp" {>= "1.2.3"}
18
- "result" {>= "1.5"}
19
- ]
20
- description:
21
- "Helper process: reads .merlin files and gives the normalized content to merlin"
22
- x-commit-hash: "ab02f60994c81166820791b5f465f467d752b8dc"
23
- url {
24
- src:
25
- "https://github.com/ocaml/merlin/releases/download/v4.1/dot-merlin-reader-v4.1.tbz"
26
- checksum: [
27
- "sha256=14a36d6fb8646a5df4530420a7861722f1a4ee04753717947305e3676031e7cd"
28
- "sha512=65fd4ab08904c05651a7ef8971802ffaa428daa920765dbcf162e3c56e8047e4c9e4356daa45efccce7c73a586635c8f6cf8118fd3059789de9aff68579bd436"
29
- ]
30
- }
@@ -1,40 +0,0 @@
1
- opam-version: "2.0"
2
- maintainer: "dev@ocsigen.org"
3
- authors: "Ocsigen team"
4
- bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
5
- homepage: "http://ocsigen.github.io/js_of_ocaml"
6
- dev-repo: "git+https://github.com/ocsigen/js_of_ocaml.git"
7
- synopsis: "Compiler from OCaml bytecode to Javascript"
8
- description: """
9
- Js_of_ocaml is a compiler from OCaml bytecode to JavaScript.
10
- It makes it possible to run pure OCaml programs in JavaScript
11
- environment like browsers and Node.js
12
- """
13
-
14
- build: [["dune" "build" "-p" name "-j" jobs]]
15
-
16
- depends: [
17
- "ocaml" {>= "4.02.0"}
18
- "dune" {>= "2.5"}
19
- "ppx_expect" {with-test & >= "v0.12.0"}
20
- "cmdliner"
21
- "menhir"
22
- "ppxlib" {>= "0.15.0"}
23
- "yojson" # It's optional, but we want users to be able to use source-map without pain.
24
- ]
25
-
26
- depopts: [ "ocamlfind" ]
27
-
28
- conflicts: [
29
- "ocamlfind" {< "1.5.1"}
30
- "js_of_ocaml" {< "3.0"}
31
- ]
32
- x-commit-hash: "c97f2543ff7bfa6c8fe683cca7beec884b38f918"
33
- url {
34
- src:
35
- "https://github.com/ocsigen/js_of_ocaml/releases/download/3.9.1/js_of_ocaml-3.9.1.tbz"
36
- checksum: [
37
- "sha256=a6de57f502676890191b966d2317a2bef7835786664c37f24e974aed66286545"
38
- "sha512=f8b880bd3ff9fc1d98c5f65a1d3d9e919d16a20dd1c1c979e154642d1df7c3afc9d688e24fbbcd591974e1debb352d8f3fb2e0ffbb6df94c2d08ccd8d3f42727"
39
- ]
40
- }
@@ -1,30 +0,0 @@
1
- opam-version: "2.0"
2
- maintainer: "dev@ocsigen.org"
3
- authors: "Ocsigen team"
4
- bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
5
- homepage: "http://ocsigen.github.io/js_of_ocaml"
6
- dev-repo: "git+https://github.com/ocsigen/js_of_ocaml.git"
7
- synopsis: "Compiler from OCaml bytecode to Javascript"
8
- description: """
9
- Js_of_ocaml is a compiler from OCaml bytecode to JavaScript.
10
- It makes it possible to run pure OCaml programs in JavaScript
11
- environment like browsers and Node.js
12
- """
13
-
14
- build: [["dune" "build" "-p" name "-j" jobs]]
15
-
16
- depends: [
17
- "ocaml" {>= "4.02.0"}
18
- "dune" {>= "2.5"}
19
- "ppxlib" {>= "0.15.0"}
20
- "js_of_ocaml" {= version}
21
- ]
22
- x-commit-hash: "95bc95d31122bae5764022f878d8a6dd95ceb169"
23
- url {
24
- src:
25
- "https://github.com/ocsigen/js_of_ocaml/releases/download/3.9.0/js_of_ocaml-3.9.0.tbz"
26
- checksum: [
27
- "sha256=74d3b17b089af04cde29173c9e7a1154b9a784ba415aeef5026440aeb907cb54"
28
- "sha512=affc91ed58d71e79752595345fcb2afe0d86378a73030ce64ef5624b9fef31925a2c2bb5e772fea017a508da292c351ad89b77e28361ff6f8ed345fecb78b31d"
29
- ]
30
- }
@@ -1,31 +0,0 @@
1
- opam-version: "2.0"
2
- maintainer: "dev@ocsigen.org"
3
- authors: "Ocsigen team"
4
- bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
5
- homepage: "http://ocsigen.github.io/js_of_ocaml"
6
- dev-repo: "git+https://github.com/ocsigen/js_of_ocaml.git"
7
- synopsis: "Compiler from OCaml bytecode to Javascript"
8
- description: """
9
- Js_of_ocaml is a compiler from OCaml bytecode to JavaScript.
10
- It makes it possible to run pure OCaml programs in JavaScript
11
- environment like browsers and Node.js
12
- """
13
-
14
- build: [["dune" "build" "-p" name "-j" jobs]]
15
-
16
- depends: [
17
- "ocaml" {>= "4.02.0"}
18
- "dune" {>= "2.5"}
19
- "ppxlib" {>= "0.15.0" }
20
- "uchar"
21
- "js_of_ocaml-compiler" {>= "3.9.0" & < "3.10.0"}
22
- ]
23
- x-commit-hash: "95bc95d31122bae5764022f878d8a6dd95ceb169"
24
- url {
25
- src:
26
- "https://github.com/ocsigen/js_of_ocaml/releases/download/3.9.0/js_of_ocaml-3.9.0.tbz"
27
- checksum: [
28
- "sha256=74d3b17b089af04cde29173c9e7a1154b9a784ba415aeef5026440aeb907cb54"
29
- "sha512=affc91ed58d71e79752595345fcb2afe0d86378a73030ce64ef5624b9fef31925a2c2bb5e772fea017a508da292c351ad89b77e28361ff6f8ed345fecb78b31d"
30
- ]
31
- }
@@ -1,29 +0,0 @@
1
- opam-version: "2.0"
2
- maintainer: "opensource@janestreet.com"
3
- authors: ["Jane Street Group, LLC <opensource@janestreet.com>"]
4
- homepage: "https://github.com/janestreet/ocaml-compiler-libs"
5
- bug-reports: "https://github.com/janestreet/ocaml-compiler-libs/issues"
6
- dev-repo: "git+https://github.com/janestreet/ocaml-compiler-libs.git"
7
- license: "MIT"
8
- build: [
9
- ["dune" "build" "-p" name "-j" jobs]
10
- ]
11
- depends: [
12
- "ocaml" {>= "4.04.1"}
13
- "dune" {>= "1.5.1"}
14
- ]
15
- synopsis: """OCaml compiler libraries repackaged"""
16
- description: """
17
-
18
- This packages exposes the OCaml compiler libraries repackages under
19
- the toplevel names Ocaml_common, Ocaml_bytecomp, Ocaml_optcomp, ...
20
- """
21
- x-commit-hash: "7f5d1d2931b96fb3ee6dd569a469b51f621a6dd4"
22
- url {
23
- src:
24
- "https://github.com/janestreet/ocaml-compiler-libs/releases/download/v0.12.3/ocaml-compiler-libs-v0.12.3.tbz"
25
- checksum: [
26
- "sha256=a8403531439c14bbda2d504ef93610fd29a8e9520fc700f21889d893a513e3c9"
27
- "sha512=0bb03b38e93bab3274a8ade38d017808110bc02f2181a594d8775c68fdd465733393f0451dbbf8860e6b50b56c45671d2182637c0840d1d6574803ec18673972"
28
- ]
29
- }
@@ -1,4 +0,0 @@
1
- #!/bin/sh
2
-
3
- BINDIR=$(dirname "$(command -v ocamlc)")
4
- "$BINDIR/ocaml" -I "$OCAML_TOPLEVEL_PATH" "$@"
@@ -1,6 +0,0 @@
1
- bin: [
2
- "src/findlib/ocamlfind" {"ocamlfind"}
3
- "?src/findlib/ocamlfind_opt" {"ocamlfind"}
4
- "?tools/safe_camlp4"
5
- ]
6
- toplevel: ["src/findlib/topfind"]
@@ -1,41 +0,0 @@
1
- opam-version: "2.0"
2
- maintainer: "OCamlFormat Team <ocamlformat-team@fb.com>"
3
- authors: "Josh Berdine <jjb@fb.com>"
4
- homepage: "https://github.com/ocaml-ppx/ocamlformat"
5
- bug-reports: "https://github.com/ocaml-ppx/ocamlformat/issues"
6
- dev-repo: "git+https://github.com/ocaml-ppx/ocamlformat.git"
7
- license: "MIT"
8
- build: [
9
- ["ocaml" "tools/gen_version.mlt" "lib/Version.ml" version] {pinned}
10
- ["dune" "build" "-p" name "-j" jobs]
11
- ["dune" "runtest" "-p" name "-j" jobs] {with-test}
12
- ]
13
- depends: [
14
- "ocaml" {>= "4.06" & < "4.12"}
15
- "alcotest" {with-test}
16
- "base" {>= "v0.12.0" & < "v0.15"}
17
- "base-unix"
18
- "cmdliner"
19
- "dune" {>= "2.2.0"}
20
- "fix"
21
- "fpath"
22
- "menhir"
23
- "ocp-indent" {with-test}
24
- "odoc" {>= "1.4.2"}
25
- "ppxlib" {>= "0.18.0" & < "0.22.0"}
26
- "re"
27
- "stdio" {< "v0.15"}
28
- "uuseg" {>= "10.0.0"}
29
- "uutf" {>= "1.0.1"}
30
- ]
31
- synopsis: "Auto-formatter for OCaml code"
32
- description: "OCamlFormat is a tool to automatically format OCaml code in a uniform style."
33
- x-commit-hash: "7027acfed5b8e6e492801f297766b0c803a13086"
34
- url {
35
- src:
36
- "https://github.com/ocaml-ppx/ocamlformat/releases/download/0.15.1/ocamlformat-0.15.1.tbz"
37
- checksum: [
38
- "sha256=2a61513d10889d975eaa721b577f37b454ecfec0e08257c027f3e9928882cef4"
39
- "sha512=3e03e06f5aabf9c80d7edb0ad908f708a99e371538e25674401170fa5a9836e1c463a1b055b2901ce32854928897b969834d854b7a92c2e18a8d1044ba93e842"
40
- ]
41
- }
@@ -1,47 +0,0 @@
1
- opam-version: "2.0"
2
- maintainer: "dev@ocsigen.org"
3
- homepage: "https://github.com/ocsigen/tyxml/"
4
- bug-reports: "https://github.com/ocsigen/tyxml/issues"
5
- doc: "https://ocsigen.org/tyxml/manual/"
6
- dev-repo: "git+https://github.com/ocsigen/tyxml.git"
7
- license: "LGPL-2.1 with OCaml linking exception"
8
-
9
- build: [
10
- ["dune" "subst"] {pinned}
11
- ["dune" "build" "-p" name "-j" jobs]
12
- ["dune" "runtest" "-p" name "-j" jobs] {with-test}
13
- ]
14
-
15
- depends: [
16
- "ocaml" {>= "4.02"}
17
- "dune"
18
- "alcotest" {with-test}
19
- "seq"
20
- "uutf" {>= "1.0.0"}
21
- "re" {>= "1.5.0"}
22
- ]
23
-
24
- synopsis:"TyXML is a library for building correct HTML and SVG documents"
25
- description:"""
26
- TyXML provides a set of convenient combinators that uses the OCaml
27
- type system to ensure the validity of the generated documents. TyXML
28
- can be used with any representation of HTML and SVG: the textual one,
29
- provided directly by this package, or DOM trees (`js_of_ocaml-tyxml`)
30
- virtual DOM (`virtual-dom`) and reactive or replicated trees
31
- (`eliom`). You can also create your own representation and use it to
32
- instantiate a new set of combinators.
33
-
34
- ```ocaml
35
- open Tyxml
36
- let to_ocaml = Html.(a ~a:[a_href "ocaml.org"] [txt "OCaml!"])
37
- ```
38
- """
39
- authors: "The ocsigen team"
40
- url {
41
- src:
42
- "https://github.com/ocsigen/tyxml/releases/download/4.4.0/tyxml-4.4.0.tbz"
43
- checksum: [
44
- "sha256=516394dd4a5c31726997c51d66aa31cacb91e3c46d4e16c7699130e204042530"
45
- "sha512=d5f2187f8410524cec7a14b28e8950837070eb0b6571b015dd06076c2841eb7ccaffa86d5d2307eaf1950ee62f9fb926477dac01c870d9c1a2f525853cb44d0c"
46
- ]
47
- }
@@ -1,44 +0,0 @@
1
- opam-version: "2.0"
2
- maintainer: "Daniel Bünzli <daniel.buenzl i@erratique.ch>"
3
- authors: [ "The uucp programmers" ]
4
- homepage: "https://erratique.ch/software/uucp"
5
- doc: "https://erratique.ch/software/uucp/doc/Uucp"
6
- dev-repo: "git+https://erratique.ch/repos/uucp.git"
7
- bug-reports: "https://github.com/dbuenzli/uucp/issues"
8
- tags: [ "unicode" "text" "character" "org:erratique" ]
9
- license: "ISC"
10
- depends: [
11
- "ocaml" {>= "4.03.0"}
12
- "ocamlfind" {build}
13
- "ocamlbuild" {build}
14
- "topkg" {build}
15
- "uucd" {with-test} # dev really
16
- "uunf" {with-test}
17
- "uutf" {with-test}
18
- ]
19
- depopts: [ "uunf" "uutf" "cmdliner" ]
20
- conflicts: [ "uutf" {< "1.0.1"}
21
- "cmdliner" {< "1.0.0"} ]
22
- build: [[
23
- "ocaml" "pkg/pkg.ml" "build"
24
- "--dev-pkg" "%{pinned}%"
25
- "--with-uutf" "%{uutf:installed}%"
26
- "--with-uunf" "%{uunf:installed}%"
27
- "--with-cmdliner" "%{cmdliner:installed}%"
28
- ]]
29
-
30
- synopsis: """Unicode character properties for OCaml"""
31
- description: """\
32
-
33
- Uucp is an OCaml library providing efficient access to a selection of
34
- character properties of the [Unicode character database][1].
35
-
36
- Uucp is independent from any Unicode text data structure and has no
37
- dependencies. It is distributed under the ISC license.
38
-
39
- [1]: http://www.unicode.org/reports/tr44/
40
- """
41
- url {
42
- archive: "https://erratique.ch/software/uucp/releases/uucp-13.0.0.tbz"
43
- checksum: "07e706249ddb2d02f0fa298804d3c739"
44
- }
@@ -1,6 +0,0 @@
1
- {
2
- "build": "true",
3
- "dependencies": {
4
- "esy-m4": "esy-packages/esy-m4#c7cf0ac9221be2b1f9d90e83559ca08397a629e7"
5
- }
6
- }
@@ -1,27 +0,0 @@
1
- open Js_of_ocaml.Js.Unsafe
2
-
3
- let mvp : int = global ##. binaryen ##. Features ##. MVP
4
-
5
- let atomics : int = global ##. binaryen ##. Features ##. Atomics
6
-
7
- let bulk_memory : int = global ##. binaryen ##. Features ##. BulkMemory
8
-
9
- let mutable_globals : int = global ##. binaryen ##. Features ##. MutableGlobals
10
-
11
- let nontrapping_fp_to_int : int =
12
- global ##. binaryen ##. Features ##. NontrappingFPToInt
13
-
14
- let sign_ext : int = global ##. binaryen ##. Features ##. SignExt
15
-
16
- let simd128 : int = global ##. binaryen ##. Features ##. SIMD128
17
-
18
- let exception_handling : int =
19
- global ##. binaryen ##. Features ##. ExceptionHandling
20
-
21
- let tail_call : int = global ##. binaryen ##. Features ##. TailCall
22
-
23
- let reference_types : int = global ##. binaryen ##. Features ##. ReferenceTypes
24
-
25
- let multivalue : int = global ##. binaryen ##. Features ##. Multivalue
26
-
27
- let all : int = global ##. binaryen ##. Features ##. All
@@ -1,13 +0,0 @@
1
- open Js_of_ocaml.Js
2
- open Js_of_ocaml.Js.Unsafe
3
-
4
- let set_function_table wasm_mod initial maximum funcnames offset =
5
- meth_call wasm_mod "setFunctionTable"
6
- [|
7
- inject initial;
8
- inject maximum;
9
- inject (array (Array.of_list (List.map string funcnames)));
10
- inject offset;
11
- |]
12
-
13
- let unlimited = -1
@@ -1,25 +0,0 @@
1
- #define CAML_NAME_SPACE
2
- #include <caml/mlvalues.h>
3
- #include <caml/fail.h>
4
- #include <caml/memory.h>
5
-
6
- #include "binaryen-c.h"
7
- #include "ocaml_helpers.h"
8
-
9
-
10
- CAMLprim value
11
- caml_binaryen_set_function_table(value _module, value _initial, value _maximum, value _funcnames, value _offset) {
12
- CAMLparam5(_module, _initial, _maximum, _funcnames, _offset);
13
- BinaryenModuleRef module = BinaryenModuleRef_val(_module);
14
- BinaryenIndex initial = Int_val(_initial);
15
- BinaryenIndex maximum = Int_val(_maximum);
16
- _funcnames = array_of_list(_funcnames);
17
- int funcnamesLen = array_length(_funcnames);
18
- const char* funcnames[funcnamesLen];
19
- for (int i = 0; i < funcnamesLen; i++) {
20
- funcnames[i] = Safe_String_val(Field(_funcnames, i));
21
- }
22
- BinaryenExpressionRef offset = BinaryenExpressionRef_val(_offset);
23
- BinaryenSetFunctionTable(module, initial, maximum, funcnames, funcnamesLen, offset);
24
- CAMLreturn(Val_unit);
25
- }
@@ -1,8 +0,0 @@
1
- (executable
2
- (name library_flags)
3
- (libraries dune.configurator))
4
-
5
- (rule
6
- (targets library_flags.sexp)
7
- (action
8
- (run ./library_flags.exe)))
@@ -1,16 +0,0 @@
1
- module C = Configurator.V1
2
-
3
- let () =
4
- C.main ~name:"library_flags" (fun c ->
5
- let default = [] in
6
-
7
- let library_flags =
8
- match C.ocaml_config_var c "system" with
9
- | Some "macosx" ->
10
- (* These flags preserve the original C error behavior *)
11
- [ "-cclib"; "-Wl,-keep_dwarf_unwind" ]
12
- | Some _ -> default
13
- | None -> default
14
- in
15
-
16
- C.Flags.write_sexp "library_flags.sexp" library_flags)