Exit_status.show
[hiphop-php.git] / hphp / hack / src / facts / dune
blobeb4652e65cc8460e9ac7ea878a7d4c93435c3e6c
1 (* -*- tuareg -*- *)
3 let dune_file s =
4   String.concat "\n"
5     [ ""
6     ; s
7     ; ""
8     ; "(include dune.inc)"
9     ]
11 let rust =
13 ; FFI OCaml to Rust (../../target/*/librust_facts_ffi.a)
14 ; contains "external" function definition in .ml and
15 ; the symbol is provided by the ocaml-rs Rust package via caml! macro
16 (library
17   (name rust_facts_ffi)
18   (modules)
19   (wrapped false)
20   (preprocess (pps ppx_deriving.std)) ; See T41851208
21   (self_build_stubs_archive (rust_facts_ffi))
23 (rule
24   (targets librust_facts_ffi_stubs.a)
25   (deps (source_tree %{workspace_root}/src))
26   (locks /cargo)
27   (action
28     (run %{workspace_root}/scripts/build_rust_to_ocaml.sh
29       rust_facts_ffi
30       rust_facts_ffi
31     )
32   )
37 let () =
38   Jbuild_plugin.V1.send @@ dune_file rust