dub for lib & app?
Paul Backus
snarwin at gmail.com
Tue Feb 4 20:59:57 UTC 2020
On Tuesday, 4 February 2020 at 19:21:07 UTC, mark wrote:
> Ah, thank you.
>
> And if I'm doing *separate* individual projects, for an app,
> dub creates source/app.d (which I rename src/app.d).
>
> But what should it be for a library? Should it be src/package.d
> along with any supporting src/one.d src/two.do etc?
For a library, you can name the source files anything you want.
If you put your code in `src/mylib.d`, for example, users of your
library can import it with `import mylib`.
More information about the Digitalmars-d-learn
mailing list