ocaml-rs - OCaml extensions in Rust
Note: ocaml-rs
is still experimental, please report any issues on github
ocaml-rs
allows for OCaml extensions to be written directly in Rust with no C stubs. It was forked from raml with the goal of creating a safer, high-level interface.
use ocaml;
use ToValue;
caml!;
This will take care of all the OCaml garbage collector related bookkeeping (CAMLparam, CAMLlocal and CAMLreturn)
For a working example see ./example or ocaml-vec.