(tests
 (names hfun)
 (deps ../../../LICENSE)
 (modules hfun)
 (libraries)
 (modes wasm))

(tests
 (names hfun_js)
 (deps ../../../LICENSE)
 (modules hfun_js)
 (libraries)
 (modes js))

(rule
 (copy hfun.ml hfun_js.ml))

(tests
 (names htbl)
 (deps ../../../LICENSE)
 (modules htbl)
 (build_if
  (>= %{ocaml_version} 5))
 (libraries)
 (modes js wasm)
 ; find_and_remove/find_and_replace were added to Hashtbl.SeededS in OCaml
 ; 5.5; ppx_optcomp_light gates them in [HofM] so this builds on 5.0-5.5.
 (preprocess
  (pps ppx_optcomp_light)))
