Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider supporting dune 3.0 #53

Open
gpetiot opened this issue Nov 10, 2024 · 1 comment
Open

Consider supporting dune 3.0 #53

gpetiot opened this issue Nov 10, 2024 · 1 comment

Comments

@gpetiot
Copy link

gpetiot commented Nov 10, 2024

Dune 3.0 has been released in 2022, it would be nice to progressively catch up with the latest releases to benefit from recent features.

For example, from the dune docs: https://dune.readthedocs.io/en/stable/foreign-code.html#stub-generation-with-dune-ctypes

Beginning in Dune 3.0, it’s possible to use the ctypes field to generate bindings for C libraries without writing any C code.

The file https://github.com/tjammer/raylib-ocaml/blob/master/src/c/dune needs to be modified (we get some errors like Error: The form %{lib:<libname>:.} is no longer supported since version 3.0) but it should be a net improvement.

@tjammer
Copy link
Owner

tjammer commented Nov 12, 2024

I'm not against it, I just didn't have time to do the update yet and the current solution works quite well.

When I first read about the ctypes integration I was afraid that I had to re-do the structure of the bindings quite a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants