Xuanwo commented on issue #4057:
URL: https://github.com/apache/opendal/issues/4057#issuecomment-7158039286

   *AI-generated note.*
   
   Yes. A single source tarball can keep `core/` and `bindings/ocaml/` in place 
and use the `../../core` Cargo path dependency. In the opam package, run both 
`dune build` and `dune install` from `bindings/ocaml`. With the existing 
metadata invoked from the archive root, Dune found the nested project but ran 
Cargo in `_build/default`, where it could not find `Cargo.toml`.
   
   I checked a candidate from `5af87fd060` on x86-64 Linux with opam 2.1.5, 
OCaml 4.14.1 and Dune 3.25.0. Installation exposed two separate loader issues. 
The bytecode consumer needed the Rust `ocaml` crate's `no-caml-startup` feature 
to load the stub. The native consumer needed the installed `libopendal_core.so` 
directory on `LD_LIBRARY_PATH`. With those adjustments, all 23 binding tests 
passed and independent native and bytecode programs each wrote and read an 
object through the memory service.
   
   The install used a warm Cargo cache with the opam sandbox disabled. An 
offline build with an empty registry stopped at the `ocaml` crate. A 
distributable package still needs a portable loader setup and a way to supply 
third-party Rust dependencies in a clean sandbox. Package publication remains 
open in #2756.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to