How can i determine which one of the multiple binarys are build at the moment?

Hello,

i have a simple layout for multiple binaries src/bin/bin1.src and so on. In my build.rs i set icons and admin-priviliges. But I want set different icons and admin-privileges dependend on which binary is at the moment build?

If bin1 is build at the moment i want another ressource manifest and icon, and for bin2,bin3mbin4 the same.

thx

Is there a particular reason why this isn't and couldn't be implemented in a multi-crate structure, using workspaces?

@CoolSlimbo no there you ask smile. I only have coded my main-binary then i have thinked that all functions put in one binary with conditional parameters are uncool (yes unix philosophy, today hmm maybe not), why not make multiple binarys snip the functions.
Soooooo i have so much learned here about workspaces and others that i can ask myself your question.
And i must ask myself that it don't give any reasons for my thread-question. Every workspace has it own build.rs and good is:).

Oh and i feel i can outsource functions in rlibs(i know rlibs are not stable) or dlls.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.