How Add Local modules mymodule.d using DUB?
Bastiaan Veelo
Bastiaan at Veelo.net
Mon Aug 9 22:40:21 UTC 2021
On Monday, 9 August 2021 at 16:32:13 UTC, Marcone wrote:
> My main program need import a local module called mymodule.d.
> How can I add this module using DUB? Thank you.
Let’s assume you just created a dub project in `myproject` with
`dub init`. Place `mymodule.d` alongside `app.d` in
`myproject/source`. Now you can `import mymodule` in `app.d`. Dub
takes care of the linking.
— Bastiaan.
More information about the Digitalmars-d-learn
mailing list