I have my main dune project, which includes an implementation for a small parser library. Ideally, I would like to put the parser library into a different package and just depend on that in my main dune project somehow.
The way I would do this in Haskell with stack would be to put my parser library in a separate git repo and then include that git repo as a dependency in my main project.
I haven't found a way to depend on git projects in dune/opam though. Is the only way to include external packages really to publish them to the opam repository?