You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thanks to all contributors for your work on ocaml-rs.
I successfully built my OCaml library (static and dynamic) from Rust code, and I wanted to try my Rust code using dune utop.
My function is pretty simple, and I don't initialize or use the OCaml runtime in this function.
As an example, it is not much difficult compared to:
First, thanks to all contributors for your work on ocaml-rs.
I successfully built my OCaml library (static and dynamic) from Rust code, and I wanted to try my Rust code using
dune utop
.My function is pretty simple, and I don't initialize or use the OCaml runtime in this function.
As an example, it is not much difficult compared to:
In order to use my library in
dune utop
I used theno_caml_startup
feature, and I have set theOCAML_INTEROP_NO_CAML_STARTUP
environment variable.The issue is, running
dune utop
, I have this error each time I call my Rust (to OCaml) function:I checked in the
ocaml-rs
code and it seems the panic is done because I use theno_caml_startup
feature:ocaml-rs/src/runtime.rs
Line 42 in 9e91369
Do I have to change something in my build, or my configuration, in order to not initialize twice the runtime?
The text was updated successfully, but these errors were encountered: