Apparently, now Nimble supports the backend annotation. Documentation says: "Specifies the backend which will be used to build the files listed in bin. Possible values include: c, cc, cpp, objc, js".
I think it would be more useful to use this for libraries. One could specify that a certain library is only available for one or more backends, and nimble would fetch it only if the backend of the library matches that of the binary being built.
For instance, I could mark linalg as only available for the c or cpp backends, so that trying to use it from js would fail. Pure libraries would be available for all backends.
Is it possible to do something like this?