On Wed, 28 Sep 2016 12:09:47 GMT, Sönke Ludwig wrote:

The directory structure must correspond to the fully qualified module name in order for the compiler to be able to find it. So in this case you'd have to put the bee.d file in a sub folder src/insects/ instead of directly into src/. It unfortunately creates a bit of redundancy, but there is usually no way around it (always compiling with dub build --combined would also make it work, but that's a rather questionable workaround).

You're right! Actually, in all my projects, the sources of library foo is always in foo/src/foo....

Thanks for your quick response and your great work.