Closed mvd-ows closed 6 years ago
Could you post an example of this in action? It's hard to tell what "having two binary crates" means here.
Thanks for the quick reply!
I've spent some time trying to reproduce this issue in a new project, and failed at doing so. I believed the issue to be present when using a Rust workspace, with crate a
and crate b
being just two independent crates in the workspace.
I went back to the original code to examine it and the artifacts produced from building said code. I then discovered that there's no issue at all. The reason I was confused is because one of the crates produces several binaries which have very little in common. I then falsely assumed that they came from different crates.
TLDR; The resource information does not "jump between" crates. It was all a misunderstanding :-)
As an example, let's say we have two binary crates,
crate a
andcrate b
, where the first one has resource information and the seconds one doesn't.crate a
is built first and the resulting exe correctly includes the intended resource information. However, whencrate b
is built the environment seems to still be configured to include the resource file that was specified forcrate a
.The unwanted result is that
crate b
reuses the resource information that was specified forcrate a
.