facebook/ocamlrep

Sets of libraries and tools to write applications and libraries mixing OCaml and Rust. These libraries will help keeping your types and data structures synchronized, and enable seamless exchange between OCaml and Rust

147

stars

1,901

commits

Rust

primary language

Sep 9, 2026

updated

README

ocamlrep: Interop OCaml and Rust code Cargo build and test

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.

Requirements

This project is stand-alone and is currently tested with:

Building ocamlrep

Build with Cargo: install OPAM, then run cargo build.

Contributing

See the CONTRIBUTING file for how to help out.

License

ocamlrep has an MIT license. See the LICENSE file included in this distribution.

Contributors

(top 30 of 181)

chatura-atapattu

138 commits

stepancheg

134 commits

JakobDegen

134 commits

shayne-fletcher

112 commits

facebook/ocamlrep

Sets of libraries and tools to write applications and libraries mixing OCaml and Rust. These libraries will help keeping your types and data structures synchronized, and enable seamless exchange between OCaml and Rust

147

stars

1,901

commits

Rust

primary language

Sep 9, 2026

updated

README

ocamlrep: Interop OCaml and Rust code Cargo build and test

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.

Requirements

This project is stand-alone and is currently tested with:

Building ocamlrep

Build with Cargo: install OPAM, then run cargo build.

Contributing

See the CONTRIBUTING file for how to help out.

License

ocamlrep has an MIT license. See the LICENSE file included in this distribution.

Contributors

(top 30 of 181)

chatura-atapattu

138 commits

stepancheg

134 commits

JakobDegen

134 commits

shayne-fletcher

112 commits

Languages

Rust

66.7%

Starlark

23.9%

OCaml

5.6%

C

3.0%