Dune 2.0.0 coming soon!
@diml wrote: Hi all, As we are preparing the Dune 2.0.0 release, we wanted to share a few words about it. Most of it is straightforward. One notable change is that Dune 2 will require a recent version...
View ArticleAvoid duplication of code in js_of_ocaml output
@monstasat wrote: I’m developing a web application using js_of_ocaml. Some of my app’s pages include several javascript files generated by jsoo, like: <script src="/js/file1.js"...
View ArticleProperly wrap a package’s modules with dune
@Maelan wrote: dune is great for brainless, fast compilation. However it’s hard to control with precision what it produces. Situation Say we are writing a library pkg with modules A and B, and we want...
View ArticleDune external-lib-deps does not list all required libraries
@olafhering wrote: I use dune external-lib-deps to check what libraries a given project needs as rpm BuildRequires. For qtest commit 074da5e3a0d480937ddc379fc6f4feeab9da85e3 the output looks like...
View ArticleHow do I specify an Ocaml to Coq dependency across dune files?
@cpitclaudel wrote: Hi all, I have a Coq file set up to create an OCaml file through extraction. The Coq file (extraction.v) is built with dune: (coq.theory (name test) (modules Extraction))...
View ArticleHow to pass CFLAGS into a dune project?
@olafhering wrote: Is there a way to pass compiler flags to an existing dune based project? The documentaton does not seem to cover this. I’m looking for the equivalent of ‘env CFLAGS=“some string”...
View ArticleImproving interoperability between ocaml, ocamlfind and dune
@avsm wrote: In the OCaml library ecosystem, there are two important pieces of software that are being relied on for managing our code: ocamlfind, lead by Gerd Stolpmann has been the standard for...
View ArticleRedirect stdin from a file in a dune custom test
@ifazk wrote: I’m trying to write a custom test where I feed some test data to the main executable of my project via standard in. Is there a way to do this? Here’s what I have so far. (alias (name...
View ArticleDune and dependencies for C files
@olafhering wrote: I have (library (c_names a)), which will process an a.c. This a.c does #include "a.h". Dune already has a rule to generate this a.h with (rule (target a.h) (deps a.input) (action...
View ArticleDune and module initialization side effects
@martinslota wrote: I came across an arrangement of libraries where using dune produces confusing results (well, at least to me). The fully functioning (and somewhat minimized) example of this can be...
View ArticleHow to get merlin to do a good job on project dependencies? How to get dune...
@sid wrote: It’s a very convenient feature for dune to generate .merlin files. However merlin does not seem to do a good job with recognizing symbols and locations in project dependencies (though it...
View ArticleRequirements for dune inline tests
@olafhering wrote: In this c-cube/gen issue the maintainer claims dune runtest works for him, while it fails for me with unexpanded variables in the qtest extract '${impl-files}' '${intf-files}'...
View ArticleThe state of OCaml and Windows
@pdonadeo wrote: As a premise, I’m not interested in Windows and OCaml in that OS. I’m only asking because I have a long standing PR on GitHub asking me to port ocaml-lua under Windows and Esy. What...
View ArticleFind the `.cmt` built by `dune @check` from the original file name
@nobrakal wrote: Hi, I want, from the name of a source file, to get the corresponding .cmt built by dune @check. Is there any convenient way to do it? I tried to use dune rules without success and...
View ArticleFinding the root of a Dune project (request for comments)
@grayswandyr wrote: Hi there, I’m reporting on a discussion I had with @diml on dune’s issue tracker. As of now, when dune is run, it looks for the root of the project to be built. This is done by...
View ArticleDune do not build bytecode
@nickgian wrote: Hey all, I am trying to compile a file with the intention of dynamically loading it as a plugin later. As I don’t intent to use the bytecode version I am only interested in its native...
View ArticlePlease commit dune-project files in your repositories :)
@diml wrote: Hello, Just a quick message to ask dune users to commit the dune-project file in their repositories. We introduced this file in Dune 1.0.0. Among other things, its main goal is to declare...
View Article[ANN] Dune 2.0.0
@rgrinberg wrote: On behalf of the dune team, I’m delighted to announce the release of dune 2.0. This release is the culmination of 4 months of hard work by the dune team and contains new features,...
View ArticleReplacing dune-release delegates
@NathanReb wrote: The plan is described in detail in this issue but I’ll try to summarize it here. Natively, dune-release only knows how to publish documentation and distribution tarballs to github....
View ArticleGenerated opam files in SCM for projects using dune
@olafhering wrote: Recently I converted some existing libraries to use dune as buildsystem. Since a while dune can create <package>.opam files from dune-project. Since a dune-project file is...
View Article