OCaml HTML5 parser/serialiser based on Python's JustHTML
1(lang dune 3.20)
2
3(name html5rw)
4
5(generate_opam_files true)
6
7(license MIT)
8(authors "Anil Madhavapeddy <anil@recoil.org>")
9(homepage "https://tangled.org/@anil.recoil.org/ocaml-html5rw")
10(maintainers "Anil Madhavapeddy <anil@recoil.org>")
11(bug_reports "https://tangled.org/@anil.recoil.org/ocaml-html5rw/issues")
12(maintenance_intent "(latest)")
13
14(package
15 (name html5rw)
16 (synopsis "Pure OCaml HTML5 parser implementing the WHATWG specification")
17 (description
18 "A pure OCaml HTML5 parser that passes the html5lib-tests suite. \
19 Implements the WHATWG HTML5 parsing specification including tokenization, \
20 tree construction, encoding detection, and CSS selector queries.")
21 (depends
22 (ocaml (>= 5.1.0))
23 (astring (>= 0.8.5))
24 (bytesrw (>= 0.3.0))
25 (uutf (>= 1.0.0))
26 (uuuu (>= 0.3.0))
27 (uunf (>= 15.0.0))
28 (xmlm (>= 1.4.0))
29 langdetect
30 (odoc :with-doc)
31 (jsont (>= 0.2.0))
32 (cmdliner (>= 1.3.0))))
33
34(package
35 (name html5rw-js)
36 (synopsis "Browser-based HTML5 parser via js_of_ocaml/wasm_of_ocaml")
37 (description
38 "JavaScript and WebAssembly builds of the html5rw HTML5 parser for browser use. \
39 Includes a main validator library, web worker for background validation, and \
40 browser-based test runner.")
41 (depends
42 (ocaml (>= 5.1.0))
43 (html5rw (= :version))
44 (js_of_ocaml (>= 5.0))
45 (js_of_ocaml-ppx (>= 5.0))
46 (wasm_of_ocaml-compiler (>= 5.0))
47 (brr (>= 0.0.6))))