ocaml-rust-starter icon indicating copy to clipboard operation
ocaml-rust-starter copied to clipboard

Getting started with ocaml-rs

Results 3 ocaml-rust-starter issues
Sort by recently updated
recently updated
newest added

When I open utop using `OCAML_INTEROP_NO_CAML_STARTUP` flag I get the following error ```bash ❯ OCAML_INTEROP_NO_CAML_STARTUP=1 dune utop File "_build/default", line 1, characters 0-0: /usr/bin/ld: src/libmy_project.a(ocaml_interop-f7faf7339effdf9b.ocaml_interop.a4a1cc6f-cgu.3.rcgu.o): in function `std::sys_common::once::futex::Once::call': ocaml_interop.a4a1cc6f-cgu.3:(.text.unlikely._ZN3std10sys_common4once5futex4Once4call17h3be04b3ee794a731E+0x13c): undefined...

[The docs](https://github.com/zshipko/ocaml-rs) says you should add some flags to `Cargo.toml` on MacOS: ```toml [build] rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup"] ``` yet we don't do it here: https://github.com/zshipko/ocaml-rust-starter/blob/master/Cargo.toml yet (bis) it works...

With a simple project I get this error: ``` error: failed to open: /Users/davidwong/Perso/dalek-ocaml/x25519/_build/default/dalek-wrapper/target/release/.cargo-lock ``` the dune file: ``` ; don't copy target to _build (dirs :standard \ dalek-wrapper/target dalek-wrapper/Cargo.lock)...