@grain/binaryen.ml 0.9.1 → 0.11.2

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 (187) hide show
  1. {binaryen-archive → binaryen-archive-v0.11.2}/.gitattributes +0 -0
  2. {binaryen-archive → binaryen-archive-v0.11.2}/.gitignore +1 -0
  3. {binaryen-archive → binaryen-archive-v0.11.2}/.gitmodules +0 -0
  4. {binaryen-archive → binaryen-archive-v0.11.2}/CHANGELOG.md +73 -0
  5. {binaryen-archive → binaryen-archive-v0.11.2}/LICENSE +0 -0
  6. {binaryen-archive → binaryen-archive-v0.11.2}/README.md +27 -3
  7. {binaryen-archive → binaryen-archive-v0.11.2}/binaryen.opam +8 -8
  8. {binaryen-archive → binaryen-archive-v0.11.2}/dune +0 -0
  9. {binaryen-archive → binaryen-archive-v0.11.2}/dune-project +0 -0
  10. {binaryen-archive → binaryen-archive-v0.11.2}/dune-workspace +0 -0
  11. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/.gitattributes +0 -0
  12. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/.gitignore +0 -0
  13. binaryen-archive-v0.11.2/esy.lock/index.json +1365 -0
  14. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/astring.0.8.5/opam +0 -0
  15. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/base-threads.base/opam +0 -0
  16. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/base-unix.base/opam +0 -0
  17. {binaryen-archive/esy.lock/opam/base.v0.14.1 → binaryen-archive-v0.11.2/esy.lock/opam/base.v0.14.2}/opam +4 -4
  18. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/biniou.1.2.1/opam +1 -1
  19. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/cmdliner.1.0.4/opam +0 -0
  20. {binaryen-archive/esy.lock/opam/cppo.1.6.7 → binaryen-archive-v0.11.2/esy.lock/opam/cppo.1.6.8}/opam +4 -6
  21. {binaryen-archive/esy.lock/opam/csexp.1.4.0 → binaryen-archive-v0.11.2/esy.lock/opam/csexp.1.5.1}/opam +11 -9
  22. {binaryen-archive/esy.lock/opam/dune-build-info.2.8.2 → binaryen-archive-v0.11.2/esy.lock/opam/dune-build-info.2.9.1}/opam +5 -5
  23. {binaryen-archive/esy.lock/opam/dune-configurator.2.8.2 → binaryen-archive-v0.11.2/esy.lock/opam/dune-configurator.2.9.1}/opam +5 -5
  24. {binaryen-archive/esy.lock/opam/dune.2.8.2 → binaryen-archive-v0.11.2/esy.lock/opam/dune.2.9.1}/opam +4 -4
  25. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/easy-format.1.3.2/opam +1 -1
  26. {binaryen-archive/esy.lock/opam/fix.20201120 → binaryen-archive-v0.11.2/esy.lock/opam/fix.20211231}/opam +7 -5
  27. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/fpath.0.7.3/opam +0 -0
  28. binaryen-archive-v0.11.2/esy.lock/opam/js_of_ocaml-compiler.3.11.0/opam +54 -0
  29. binaryen-archive-v0.11.2/esy.lock/opam/js_of_ocaml-ppx.3.11.0/opam +44 -0
  30. binaryen-archive-v0.11.2/esy.lock/opam/js_of_ocaml.3.11.0/opam +45 -0
  31. {binaryen-archive/esy.lock/opam/menhir.20201216 → binaryen-archive-v0.11.2/esy.lock/opam/menhir.20211128}/opam +8 -6
  32. {binaryen-archive/esy.lock/opam/menhirLib.20201216 → binaryen-archive-v0.11.2/esy.lock/opam/menhirLib.20211128}/opam +8 -6
  33. {binaryen-archive/esy.lock/opam/menhirSdk.20201216 → binaryen-archive-v0.11.2/esy.lock/opam/menhirSdk.20211128}/opam +8 -6
  34. binaryen-archive-v0.11.2/esy.lock/opam/ocaml-compiler-libs.v0.12.4/opam +39 -0
  35. {binaryen-archive/esy.lock/opam/ocaml-lsp-server.1.4.0 → binaryen-archive-v0.11.2/esy.lock/opam/ocaml-lsp-server.1.9.0}/opam +15 -12
  36. {binaryen-archive/esy.lock/opam/ocaml-migrate-parsetree.2.1.0 → binaryen-archive-v0.11.2/esy.lock/opam/ocaml-migrate-parsetree.2.3.0}/opam +13 -10
  37. binaryen-archive-v0.11.2/esy.lock/opam/ocaml-version.3.4.0/opam +49 -0
  38. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/ocamlbuild.0.14.0/opam +1 -1
  39. {binaryen-archive/esy.lock/opam/ocamlfind.1.8.1 → binaryen-archive-v0.11.2/esy.lock/opam/ocamlfind.1.9.1}/opam +19 -39
  40. binaryen-archive-v0.11.2/esy.lock/opam/ocamlformat-rpc-lib.0.19.0/opam +40 -0
  41. binaryen-archive-v0.11.2/esy.lock/opam/ocamlformat.0.18.0/opam +56 -0
  42. {binaryen-archive/esy.lock/opam/odoc.1.5.2 → binaryen-archive-v0.11.2/esy.lock/opam/odoc.1.5.3}/opam +12 -12
  43. binaryen-archive-v0.11.2/esy.lock/opam/pp.1.1.2/opam +58 -0
  44. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/ppx_derivers.1.2.1/opam +1 -1
  45. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/ppx_yojson_conv_lib.v0.14.0/opam +2 -2
  46. {binaryen-archive/esy.lock/opam/ppxlib.0.21.0 → binaryen-archive-v0.11.2/esy.lock/opam/ppxlib.0.22.2}/opam +40 -32
  47. {binaryen-archive/esy.lock/opam/re.1.9.0 → binaryen-archive-v0.11.2/esy.lock/opam/re.1.10.3}/opam +8 -4
  48. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/result.1.5/opam +2 -2
  49. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/seq.base/files/META.seq +0 -0
  50. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/seq.base/files/seq.install +0 -0
  51. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/seq.base/opam +0 -0
  52. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/sexplib0.v0.14.0/opam +2 -2
  53. binaryen-archive-v0.11.2/esy.lock/opam/spawn.v0.15.0/opam +56 -0
  54. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/stdio.v0.14.0/opam +2 -2
  55. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/stdlib-shims.0.3.0/opam +0 -0
  56. {binaryen-archive/esy.lock/opam/topkg.1.0.3 → binaryen-archive-v0.11.2/esy.lock/opam/topkg.1.0.4}/opam +18 -22
  57. binaryen-archive-v0.11.2/esy.lock/opam/tyxml.4.5.0/opam +42 -0
  58. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/uchar.0.0.2/opam +0 -0
  59. binaryen-archive-v0.11.2/esy.lock/opam/uucp.14.0.0/opam +41 -0
  60. {binaryen-archive/esy.lock/opam/uuseg.13.0.0 → binaryen-archive-v0.11.2/esy.lock/opam/uuseg.14.0.0}/opam +22 -28
  61. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/uutf.1.0.2/opam +0 -0
  62. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/opam/yojson.1.7.0/opam +1 -1
  63. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/overrides/opam__s__ocamlbuild_opam__c__0.14.0_opam_override/files/ocamlbuild-0.14.0.patch +0 -0
  64. {binaryen-archive → binaryen-archive-v0.11.2}/esy.lock/overrides/opam__s__ocamlbuild_opam__c__0.14.0_opam_override/package.json +0 -0
  65. binaryen-archive/esy.lock/overrides/opam__s__ocamlfind_opam__c__1.8.1_opam_override/files/findlib-1.8.1.patch → binaryen-archive-v0.11.2/esy.lock/overrides/opam__s__ocamlfind_opam__c__1.9.1_opam_override/files/findlib-1.9.1.patch +0 -0
  66. {binaryen-archive/esy.lock/overrides/opam__s__ocamlfind_opam__c__1.8.1_opam_override → binaryen-archive-v0.11.2/esy.lock/overrides/opam__s__ocamlfind_opam__c__1.9.1_opam_override}/package.json +1 -1
  67. binaryen-archive-v0.11.2/js/binaryen.es5.js +5 -0
  68. {binaryen-archive → binaryen-archive-v0.11.2}/js/dune +1 -6
  69. binaryen-archive-v0.11.2/js/element_segment.ml +33 -0
  70. binaryen-archive-v0.11.2/js/export.ml +60 -0
  71. binaryen-archive-v0.11.2/js/expression.ml +944 -0
  72. binaryen-archive-v0.11.2/js/function.ml +60 -0
  73. binaryen-archive-v0.11.2/js/global.ml +48 -0
  74. {binaryen-archive → binaryen-archive-v0.11.2}/js/import.ml +24 -0
  75. {binaryen-archive → binaryen-archive-v0.11.2}/js/literal.ml +0 -0
  76. {binaryen-archive → binaryen-archive-v0.11.2}/js/memory.ml +0 -0
  77. {binaryen-archive → binaryen-archive-v0.11.2}/js/module.ml +42 -46
  78. {binaryen-archive → binaryen-archive-v0.11.2}/js/op.ml +9 -78
  79. binaryen-archive-v0.11.2/js/postlude.js +2 -0
  80. binaryen-archive-v0.11.2/js/prelude.js +11 -0
  81. binaryen-archive-v0.11.2/js/settings.ml +60 -0
  82. {binaryen-archive → binaryen-archive-v0.11.2}/js/stubs.c +0 -0
  83. binaryen-archive-v0.11.2/js/table.ml +29 -0
  84. {binaryen-archive → binaryen-archive-v0.11.2}/js/type.ml +3 -0
  85. binaryen-archive-v0.11.2/package.json +37 -0
  86. {binaryen-archive → binaryen-archive-v0.11.2}/src/binaryen_stubs_exports.c +78 -0
  87. binaryen-archive-v0.11.2/src/binaryen_stubs_expressions.c +1710 -0
  88. {binaryen-archive → binaryen-archive-v0.11.2}/src/binaryen_stubs_features.c +7 -0
  89. {binaryen-archive → binaryen-archive-v0.11.2}/src/binaryen_stubs_functions.c +78 -0
  90. binaryen-archive-v0.11.2/src/binaryen_stubs_globals.c +109 -0
  91. {binaryen-archive → binaryen-archive-v0.11.2}/src/binaryen_stubs_imports.c +29 -0
  92. {binaryen-archive → binaryen-archive-v0.11.2}/src/binaryen_stubs_literals.c +0 -0
  93. {binaryen-archive → binaryen-archive-v0.11.2}/src/binaryen_stubs_memory.c +1 -1
  94. {binaryen-archive → binaryen-archive-v0.11.2}/src/binaryen_stubs_modules.c +0 -122
  95. {binaryen-archive → binaryen-archive-v0.11.2}/src/binaryen_stubs_ops.c +19 -173
  96. binaryen-archive-v0.11.2/src/binaryen_stubs_settings.c +145 -0
  97. binaryen-archive-v0.11.2/src/binaryen_stubs_tables.c +145 -0
  98. {binaryen-archive → binaryen-archive-v0.11.2}/src/binaryen_stubs_types.c +18 -0
  99. binaryen-archive-v0.11.2/src/dune +14 -0
  100. binaryen-archive-v0.11.2/src/element_segment.ml +13 -0
  101. binaryen-archive-v0.11.2/src/export.ml +54 -0
  102. binaryen-archive-v0.11.2/src/expression.ml +844 -0
  103. {binaryen-archive → binaryen-archive-v0.11.2}/src/function.ml +18 -0
  104. binaryen-archive-v0.11.2/src/global.ml +24 -0
  105. {binaryen-archive → binaryen-archive-v0.11.2}/src/import.ml +12 -0
  106. {binaryen-archive → binaryen-archive-v0.11.2}/src/literal.ml +0 -0
  107. {binaryen-archive → binaryen-archive-v0.11.2}/src/memory.ml +0 -0
  108. binaryen-archive-v0.11.2/src/module.ml +115 -0
  109. {binaryen-archive → binaryen-archive-v0.11.2}/src/ocaml_helpers.c +0 -8
  110. {binaryen-archive → binaryen-archive-v0.11.2}/src/ocaml_helpers.h +2 -3
  111. {binaryen-archive → binaryen-archive-v0.11.2}/src/op.ml +18 -131
  112. binaryen-archive-v0.11.2/src/settings.ml +45 -0
  113. binaryen-archive-v0.11.2/src/table.ml +26 -0
  114. {binaryen-archive → binaryen-archive-v0.11.2}/src/type.ml +2 -0
  115. binaryen-archive-v0.11.2/test/config/dune +8 -0
  116. binaryen-archive-v0.11.2/test/config/ocamlopt_flags.ml +16 -0
  117. {binaryen-archive → binaryen-archive-v0.11.2}/test/dune +4 -0
  118. {binaryen-archive → binaryen-archive-v0.11.2}/test/test.expected +38 -5
  119. binaryen-archive-v0.11.2/test/test.ml +147 -0
  120. binaryen-archive-v0.11.2/virtual/dune +6 -0
  121. binaryen-archive-v0.11.2/virtual/element_segment.mli +11 -0
  122. binaryen-archive-v0.11.2/virtual/export.mli +33 -0
  123. binaryen-archive-v0.11.2/virtual/expression.mli +423 -0
  124. {binaryen-archive → binaryen-archive-v0.11.2}/virtual/function.mli +16 -0
  125. binaryen-archive-v0.11.2/virtual/global.mli +19 -0
  126. {binaryen-archive → binaryen-archive-v0.11.2}/virtual/import.mli +8 -0
  127. {binaryen-archive → binaryen-archive-v0.11.2}/virtual/literal.mli +0 -0
  128. {binaryen-archive → binaryen-archive-v0.11.2}/virtual/memory.mli +0 -0
  129. binaryen-archive-v0.11.2/virtual/module.mli +65 -0
  130. {binaryen-archive → binaryen-archive-v0.11.2}/virtual/op.mli +9 -53
  131. binaryen-archive-v0.11.2/virtual/settings.mli +35 -0
  132. binaryen-archive-v0.11.2/virtual/table.mli +19 -0
  133. {binaryen-archive → binaryen-archive-v0.11.2}/virtual/type.mli +2 -0
  134. binaryen-archive/esy.lock/index.json +0 -1288
  135. binaryen-archive/esy.lock/opam/conf-m4.1/opam +0 -22
  136. binaryen-archive/esy.lock/opam/dot-merlin-reader.4.1/opam +0 -30
  137. binaryen-archive/esy.lock/opam/js_of_ocaml-compiler.3.9.1/opam +0 -40
  138. binaryen-archive/esy.lock/opam/js_of_ocaml-ppx.3.9.0/opam +0 -30
  139. binaryen-archive/esy.lock/opam/js_of_ocaml.3.9.0/opam +0 -31
  140. binaryen-archive/esy.lock/opam/ocaml-compiler-libs.v0.12.3/opam +0 -29
  141. binaryen-archive/esy.lock/opam/ocamlfind.1.8.1/files/ocaml-stub +0 -4
  142. binaryen-archive/esy.lock/opam/ocamlfind.1.8.1/files/ocamlfind.install +0 -6
  143. binaryen-archive/esy.lock/opam/ocamlformat.0.15.1/opam +0 -41
  144. binaryen-archive/esy.lock/opam/tyxml.4.4.0/opam +0 -47
  145. binaryen-archive/esy.lock/opam/uucp.13.0.0/opam +0 -44
  146. binaryen-archive/esy.lock/overrides/opam__s__conf_m4_opam__c__1_opam_override/package.json +0 -6
  147. binaryen-archive/js/export.ml +0 -23
  148. binaryen-archive/js/expression.ml +0 -185
  149. binaryen-archive/js/features.ml +0 -27
  150. binaryen-archive/js/function.ml +0 -29
  151. binaryen-archive/js/function_table.ml +0 -13
  152. binaryen-archive/js/global.ml +0 -19
  153. binaryen-archive/js/postlude.js +0 -2
  154. binaryen-archive/js/table.ml +0 -12
  155. binaryen-archive/package.json +0 -43
  156. binaryen-archive/src/binaryen_stubs_expressions.c +0 -410
  157. binaryen-archive/src/binaryen_stubs_function_tables.c +0 -25
  158. binaryen-archive/src/binaryen_stubs_globals.c +0 -46
  159. binaryen-archive/src/binaryen_stubs_tables.c +0 -31
  160. binaryen-archive/src/config/dune +0 -8
  161. binaryen-archive/src/config/library_flags.ml +0 -16
  162. binaryen-archive/src/dune +0 -53
  163. binaryen-archive/src/export.ml +0 -21
  164. binaryen-archive/src/expression.ml +0 -115
  165. binaryen-archive/src/features.ml +0 -49
  166. binaryen-archive/src/function_table.ml +0 -6
  167. binaryen-archive/src/global.ml +0 -10
  168. binaryen-archive/src/module.ml +0 -89
  169. binaryen-archive/src/table.ml +0 -4
  170. binaryen-archive/test/test.ml +0 -83
  171. binaryen-archive/vendor/binaryen-c.h +0 -2647
  172. binaryen-archive/vendor/js/index.es5.js +0 -5
  173. binaryen-archive/vendor/linux/libbinaryen.a +0 -0
  174. binaryen-archive/vendor/linux/libbinaryen.so +0 -0
  175. binaryen-archive/vendor/macosx/libbinaryen.a +0 -0
  176. binaryen-archive/vendor/macosx/libbinaryen.dylib +0 -0
  177. binaryen-archive/vendor/mingw64/libbinaryen.a +0 -0
  178. binaryen-archive/vendor/mingw64/libbinaryen.dll +0 -0
  179. binaryen-archive/vendor/wasm-delegations.h +0 -85
  180. binaryen-archive/virtual/dune +0 -6
  181. binaryen-archive/virtual/export.mli +0 -11
  182. binaryen-archive/virtual/expression.mli +0 -68
  183. binaryen-archive/virtual/features.mli +0 -23
  184. binaryen-archive/virtual/function_table.mli +0 -4
  185. binaryen-archive/virtual/global.mli +0 -7
  186. binaryen-archive/virtual/module.mli +0 -67
  187. binaryen-archive/virtual/table.mli +0 -2
@@ -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,23 +0,0 @@
1
- open Js_of_ocaml.Js
2
- open Js_of_ocaml.Js.Unsafe
3
-
4
- type t
5
-
6
- let add_function_export wasm_mod internal_name external_name =
7
- meth_call wasm_mod "addFunctionExport"
8
- [| inject (string internal_name); inject (string external_name) |]
9
-
10
- let add_table_export wasm_mod internal_name external_name =
11
- meth_call wasm_mod "addTableExport"
12
- [| inject (string internal_name); inject (string external_name) |]
13
-
14
- let add_memory_export wasm_mod internal_name external_name =
15
- meth_call wasm_mod "addMemoryExport"
16
- [| inject (string internal_name); inject (string external_name) |]
17
-
18
- let add_global_export wasm_mod internal_name external_name =
19
- meth_call wasm_mod "addGlobalExport"
20
- [| inject (string internal_name); inject (string external_name) |]
21
-
22
- let remove_export wasm_mod external_name =
23
- meth_call wasm_mod "removeExport" [| inject (string external_name) |]
@@ -1,185 +0,0 @@
1
- open Js_of_ocaml.Js
2
- open Js_of_ocaml.Js.Unsafe
3
-
4
- type t = int
5
-
6
- let block ?(return_type = Type.auto) wasm_mod name children =
7
- meth_call wasm_mod "block"
8
- [|
9
- inject (string name);
10
- inject (array (Array.of_list children));
11
- inject return_type;
12
- |]
13
-
14
- let if_ wasm_mod cond if_true if_false =
15
- meth_call wasm_mod "if" [| inject cond; inject if_true; inject if_false |]
16
-
17
- let loop wasm_mod name body =
18
- meth_call wasm_mod "loop" [| inject (string name); inject body |]
19
-
20
- let break wasm_mod name cond res =
21
- meth_call wasm_mod "br" [| inject (string name); inject cond; inject res |]
22
-
23
- let switch wasm_mod names default_name cond value =
24
- meth_call wasm_mod "switch"
25
- [|
26
- inject (array (Array.of_list (List.map string names)));
27
- inject (string default_name);
28
- inject cond;
29
- inject value;
30
- |]
31
-
32
- let call wasm_mod name params return_typ =
33
- meth_call wasm_mod "call"
34
- [|
35
- inject (string name);
36
- inject (array (Array.of_list params));
37
- inject return_typ;
38
- |]
39
-
40
- let call_indirect wasm_mod table target params params_typ return_typ =
41
- meth_call wasm_mod "call_indirect"
42
- [|
43
- inject (string table);
44
- inject target;
45
- inject (array (Array.of_list params));
46
- inject params_typ;
47
- inject return_typ;
48
- |]
49
-
50
- let return_call wasm_mod name params return_typ =
51
- meth_call wasm_mod "return_call"
52
- [|
53
- inject (string name);
54
- inject (array (Array.of_list params));
55
- inject return_typ;
56
- |]
57
-
58
- let return_call_indirect wasm_mod table target params params_typ return_typ =
59
- meth_call wasm_mod "return_call_indirect"
60
- [|
61
- inject (string table);
62
- inject target;
63
- inject (array (Array.of_list params));
64
- inject params_typ;
65
- inject return_typ;
66
- |]
67
-
68
- let local_get wasm_mod slot typ =
69
- let scope = get wasm_mod "local" in
70
- meth_call scope "get" [| inject slot; inject typ |]
71
-
72
- let local_set wasm_mod slot value =
73
- let scope = get wasm_mod "local" in
74
- meth_call scope "set" [| inject slot; inject value |]
75
-
76
- let local_tee wasm_mod slot value typ =
77
- let scope = get wasm_mod "local" in
78
- meth_call scope "tee" [| inject slot; inject value; inject typ |]
79
-
80
- let global_get wasm_mod name typ =
81
- let scope = get wasm_mod "global" in
82
- meth_call scope "get" [| inject (string name); inject typ |]
83
-
84
- let global_set wasm_mod name value =
85
- let scope = get wasm_mod "global" in
86
- meth_call scope "set" [| inject (string name); inject value |]
87
-
88
- let load wasm_mod byts ?(signed = false) offset align typ ptr =
89
- meth_call global##.binaryen "_BinaryenLoad"
90
- [|
91
- inject wasm_mod;
92
- inject byts;
93
- inject signed;
94
- inject offset;
95
- inject align;
96
- inject typ;
97
- inject ptr;
98
- |]
99
-
100
- let store wasm_mod byts offset align ptr value typ =
101
- meth_call global##.binaryen "_BinaryenStore"
102
- [|
103
- inject wasm_mod;
104
- inject byts;
105
- inject offset;
106
- inject align;
107
- inject ptr;
108
- inject value;
109
- inject typ;
110
- |]
111
-
112
- let const wasm_mod lit =
113
- let lit_hack = Literal.to_jsoo lit in
114
- match lit_hack with
115
- | Int32 value ->
116
- let scope = get wasm_mod "i32" in
117
- meth_call scope "const" [| inject value |]
118
- | Int64 (low, high) ->
119
- let scope = get wasm_mod "i64" in
120
- meth_call scope "const" [| inject low; inject high |]
121
- | Float32Bits value ->
122
- let scope = get wasm_mod "f32" in
123
- meth_call scope "const_bits" [| inject value |]
124
- | Float64Bits (low, high) ->
125
- let scope = get wasm_mod "f64" in
126
- meth_call scope "const_bits" [| inject low; inject high |]
127
- | Float32 value ->
128
- let scope = get wasm_mod "f32" in
129
- meth_call scope "const" [| inject value |]
130
- | Float64 value ->
131
- let scope = get wasm_mod "f64" in
132
- meth_call scope "const" [| inject value |]
133
-
134
- let unary wasm_mod op p =
135
- meth_call global##.binaryen "_BinaryenUnary"
136
- [| inject wasm_mod; inject op; inject p |]
137
-
138
- let binary wasm_mod op a b =
139
- meth_call global##.binaryen "_BinaryenBinary"
140
- [| inject wasm_mod; inject op; inject a; inject b |]
141
-
142
- let select wasm_mod cond if_true if_false =
143
- meth_call wasm_mod "select"
144
- [| inject cond; inject if_true; inject if_false; inject Type.auto |]
145
-
146
- let drop wasm_mod value = meth_call wasm_mod "drop" [| inject value |]
147
-
148
- let return wasm_mod value = meth_call wasm_mod "return" [| inject value |]
149
-
150
- let memory_size wasm_mod =
151
- let scope = get wasm_mod "memory" in
152
- meth_call scope "size" [||]
153
-
154
- let memory_grow wasm_mod value =
155
- let scope = get wasm_mod "memory" in
156
- meth_call scope "grow" [| inject value |]
157
-
158
- let nop wasm_mod = meth_call wasm_mod "nop" [||]
159
-
160
- let unreachable wasm_mod = meth_call wasm_mod "unreachable" [||]
161
-
162
- let memory_copy wasm_mod dest source size =
163
- let scope = get wasm_mod "memory" in
164
- meth_call scope "copy" [| inject dest; inject source; inject size |]
165
-
166
- let memory_fill wasm_mod dest value size =
167
- let scope = get wasm_mod "memory" in
168
- meth_call scope "fill" [| inject dest; inject value; inject size |]
169
-
170
- let tuple_make wasm_mod operands =
171
- let scope = get wasm_mod "tuple" in
172
- meth_call scope "make" [| inject (array (Array.of_list operands)) |]
173
-
174
- let tuple_extract wasm_mod tuple index =
175
- let scope = get wasm_mod "tuple" in
176
- meth_call scope "extract" [| inject tuple; inject index |]
177
-
178
- let pop wasm_mod typ =
179
- meth_call global##.binaryen "_BinaryenPop" [| inject wasm_mod; inject typ |]
180
-
181
- let null () = pure_js_expr "null"
182
-
183
- let print expr =
184
- let text = meth_call global##.binaryen "emitText" [| inject expr |] in
185
- print_string (to_string text)
@@ -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,29 +0,0 @@
1
- open Js_of_ocaml.Js
2
- open Js_of_ocaml.Js.Unsafe
3
-
4
- type t
5
-
6
- let add_function wasm_mod name params results vars body =
7
- meth_call wasm_mod "addFunction"
8
- [|
9
- inject (string name);
10
- inject params;
11
- inject results;
12
- inject (array vars);
13
- inject body;
14
- |]
15
-
16
- let set_start wasm_mod func = meth_call wasm_mod "setStart" [| inject func |]
17
-
18
- let set_debug_location func expr file line column =
19
- ignore
20
- (meth_call global##.binaryen "_BinaryenFunctionSetDebugLocation"
21
- [| inject func; inject expr; inject file; inject line; inject column |])
22
-
23
- let get_function wasm_mod name =
24
- meth_call wasm_mod "getFunction" [| inject (string name) |]
25
-
26
- let remove_function wasm_mod name =
27
- meth_call wasm_mod "removeFunction" [| inject (string name) |]
28
-
29
- let get_num_functions wasm_mod = meth_call wasm_mod "getNumFunctions" [||]
@@ -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,19 +0,0 @@
1
- open Js_of_ocaml.Js
2
- open Js_of_ocaml.Js.Unsafe
3
-
4
- type t
5
-
6
- let add_global wasm_mod name typ is_mut init =
7
- meth_call wasm_mod "addGlobal"
8
- [|
9
- inject (string name);
10
- inject typ;
11
- inject (if is_mut then 1 else 0);
12
- inject init;
13
- |]
14
-
15
- let get_global wasm_mod name =
16
- meth_call wasm_mod "getGlobal" [| inject (string name) |]
17
-
18
- let remove_global wasm_mod name =
19
- meth_call wasm_mod "removeGlobal" [| inject (string name) |]
@@ -1,2 +0,0 @@
1
- // Attach binaryen to our global
2
- global.binaryen = module.exports;
@@ -1,12 +0,0 @@
1
- open Js_of_ocaml.Js
2
- open Js_of_ocaml.Js.Unsafe
3
-
4
- let add_table wasm_mod name initial maximum funcnames offset =
5
- meth_call wasm_mod "addTable"
6
- [|
7
- inject (string name);
8
- inject initial;
9
- inject maximum;
10
- inject (array (Array.of_list (List.map string funcnames)));
11
- inject offset;
12
- |]