This is now implemented in the dune describe
command in the latest release of dune 3.1.0.
In particular, you will get the direct dependencies between modules within an executable or library with the command dune describe workspace --with-deps
.
3 Likes