The goal of this project is to make OCaml and Rust code interoperable. While in its early stage of development, this library is actively used by the HHVM project, mostly in the Hack type checker, to enable OCaml code to rely on Rust.
This project is stand-alone and is currently tested with:
- OCaml 5.1.1;
- The Rust toolchain in ./rust-toolchain
There are two build methods. One way is to use Cargo and the other is to use Buck2.
- Cargo: Install OPAM then
cargo build
. - Buck2: See Building ocamlrep with Buck2 and Reindeer.
See the CONTRIBUTING file for how to help out.
ocamlrep has an MIT license. See the LICENSE file included in this distribution.