ocaml-interop icon indicating copy to clipboard operation
ocaml-interop copied to clipboard

OCaml<->Rust FFI with an emphasis on safety.

Results 16 ocaml-interop issues
Sort by recently updated
recently updated
newest added

One unfortunate issue with `ocaml_export` is that is is not rustfmt-friendly, so functions inside of it do not get formatted. An alternate syntax could look something like this (somewhat similar...

Hi! In the same vein as https://github.com/zshipko/ocaml-rs/issues/125 I'd love to know if there are any plans to add support for OCaml 5, and if you have some roadblocks that you...

(Sorry in advance if I misunderstood..) # Problem When using Rust as host language and loading multiple OCaml custom binaries, conflicts occure in symbol names of OCaml's runtime. # Example...

This is a rough proposal (with code!) to update `ToOCaml::to_ocaml` to take `self` instead of `&self`. It also changes many default implementations of `ToOCaml` to be implemented on `&SomeType` instead...

using `static mut` is very dangerous [^1] and almost impossible to get right. Should it be instead a form of either once_cell/lazy_static, or, better, a thread-local variable with `Arc`? I'm...

Hi, I have been having this issue with linking when I was trying to connect the rust library `tectonic` to ocaml. The library itself compiles fine--as a matter of fact,...

This PR moves the utility functions for starting an OCaml runtime into their own library. This is a trivial but breaking change. I've taken the liberty of bumping the version...

This requires ocaml-sys 0.19.1, which exposes the required runtime API.

For example, ```rust fn call_first() { let r1 = Runtime::init(); ... } fn call_snd() { let r2 = Runtime::init(); ... } pub fn main() { call_first(); call_snd(); } ``` Currently,...