- Fix issue with OCaml runtime initialization: #59
Value
methods marked asunsafe
: theValue
API is considered the "unsafe" API andocaml-interop
is the safer choiceToValue
renamed toIntoValue
- All functions that cause OCaml allocations (including
IntoValue::into_value
) take a reference toocaml::Runtime
, which is provided by an implicit variable namedgc
when usingocaml-derive
(the name of this variable is configurable:#[ocaml::func(my_gc_var)]
)