[ANN] Dune 3.0.0
On behalf of the dune team, I’m delighted to announce the availability of dune 3.0. The team has been working on this release for over 6 months, and there’s a bunch of new work to report. I’ll only...
View ArticleWould someone who knows BNF mind reviewing?
I’ve sent what I believe is a syntax fix for the dune-project file documentation: Update dependency syntax spec by yawaramin · Pull Request #5484 · ocaml/dune · GitHub Would someone who knows BNF mind...
View ArticleExample for enabled_if system in dune files
As recently discussed in the “zoo of values” thread, %system == "linux" can not be used to distinguish Linux targets from non-Linux targets. How does one construct an enabled_if such that a...
View ArticleSemantics of `package` qualifier for dune aliases
I’m having a lot of trouble understanding precisely what the dune stanzas alias and rule do, particularly when qualified with a (package <name>) directive. In a project with several packages...
View ArticleDifference between dune bootstrap and dune package
What is the difference between the dune3 binaries produced by make dune.exe vs. make release? Do they differ in behavior or supported features? 1 post - 1 participant Read full topic
View ArticleConfusing error related to include_dirs inside foreign_stubs with Dune 3.0
Hi, I have been getting this error message with Dune 3.0 when trying to build some FreeType wrapper with this dune file in my project: File "libs/dune", line 8, characters 18-32: 8 | (names...
View ArticlePpx lib for OCaml 5.0
Hello I am currently doing an academic project that will require access to the parse tree for algebraic effects and handlers using ppx. Currently I was not able to find any solution using ppxlibs or...
View ArticleRunning rules against multiple input files for promotion testing
I currently have a directory full of a bunch of *.mltt files that I want to run promotion tests against. Currently I have to hard-code these: (rule (with-stdout-to let.mltt.stdout.exp (with-stdin-from...
View Article`dune build @doc` generates nothing
I have a weird problem with dune build @doc @doc-private which generates nothing. And I’m trying to find a reason why it would behave this way. After running dune build @doc @doc-private the...
View Article[ANN] Dune 3.1.0
On behalf of the dune team, I’m pleased to announce version 3.1.0. This release contains some small, but interesting features, and some important quality of life bug fixes. I encourage everyone to...
View ArticleAdvanced C binding using ocaml-ctypes and dune
Hi there! I worked on a socket.h binding last summer and had a great experience integrating ocaml-ctypes with dune, I thought that might be of interest to other developers so I wrote about it:...
View Article[ctypes] [dune] Constant pass to know struct size
I am using the new dune ctypes stanza. I was wondering if it was possible to have a constant generation pass, before the type generation pass, in order to use the constants to build types. for...
View ArticleDune question: two executables sharing a module
I want to create two executable files that share a single module arith_inst. Here is what I tried to do in my dune file: (executable (public_name arith) (name arith_interp) (modules arith arith_inst...
View ArticleNot able to access library code in tests in a Dune project
Hi folks, Hopefully this is the right place for this question. I have a Dune project: $ tree . ├── bin │ ├── dune │ └── main.ml ├── compiler.opam ├── dune-project ├── lib │ ├── dune │ └── foo.ml └──...
View ArticleDune + ocamldebug
I’m trying to figure out how to use ocamldebug, although it seems quite easy on the wiki, I find it difficult to apply it to an actual dune project. For example, I made a project with dune init proj...
View Article[dune] The package XXX does not have any user defined stanzas attached to it
I just got the following error from dune when trying to build my project (named XXX): $ dune build Error: The package XXX does not have any user defined stanzas attached to it. If this is intentional,...
View ArticleLog rules executed by Dune
Hi. Dune has several options related to benchmarking the build steps of a project: --always-show-command-line --trace-file --verbose and dune rules <target> for seeing what rules are relevant...
View Article[ANN] Dune 3.2.0
On behalf of the dune team, I’m pleased to announce the availability of version 3.2.0. This release contains few new features, but is packed with bug fixes and usability improvements. In particular,...
View ArticleHow to compile plugins without access to main application source code
(This is a repost of my GH discussions post, but I get the feeling that this place is more active.) I saw in the documentation this part about loading additional files at runtime, for example for...
View Article`Unix` module on macOS "not implemented" when `dune build` but working in...
I’m confused about what’s happening and how to fix it. I’m on macOS and the Unix module works in utop but fails in dune build, dune exec, and possibly other commands. It is ocaml-platform extension in...
View Article