Separate build behavior for multiple project binaries

Hello! In a project with multiple binaries, is there a way for each binary to have their own separate build.rs file, or have a single project wide build.rs file that is aware which binary is being compiled and choose the specific build behavior accordingly?

Yes, you can create a workspace and put each bin into their own crates within the workspace. Read more about workspaces in the relevant chapter in The Book or in the cargo manifest docs. Also have a look at some real-world examples of a workspace layout in action:

1 Like

That was it, thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.