dub icon indicating copy to clipboard operation
dub copied to clipboard

Make build metadata visible to packages

Open Herringway opened this issue 3 years ago • 0 comments

It would be nice for a package to be able to access the same data available via dub describe's output at compile time. This could enable a package to be able to report its own version as well as those of its dependencies, for example. This could be achieved through an autogenerated module, like dub.build or something along those lines. While it is possible to achieve this through a pre-build step that processes dub describe's output, it can be pretty unreliable to do it this way.

Herringway avatar Aug 17 '22 14:08 Herringway