Is there a way to mark a dub package as linux only?

Ahmet Sait nightmarex1337 at
Tue Sep 27 11:07:50 UTC 2022

On Monday, 26 September 2022 at 20:57:06 UTC, Christian Köstlin 
> Or posix only? Or not windows?
> Kind regards,
> Christian

Not necessarily a dub solution but you can do something like this:
version(Posix) { }
     static assert(0, "Unsupported platform.");
This will result in a compiler error while targetting a non-posix 

More information about the Digitalmars-d-learn mailing list