A DUB package of mine, which consists of a single source file ('fixed' for those who are curious), has a targetType of 'sourceLibrary'. A user of the package has suggested that it should be 'library' instead. Would someone be willing to explain what the full difference is between the two and why I should choose 'library' over 'sourceLibrary' (or visa-versa).

My current understanding is that library generates a binary library to be linked, while sourceLibrary doesn't, and that, for a single file, generating a link library is not justified.

Any help would be appreciated. Thank you.

Regards