I wonder what the best practice is to build different architecture files and merge them together? There are several scenarios we may need this:
-
When building a windows application, we need to link resource file into the final binary. We can choose to use native resource compiler and have a custom build.rs but we need to remember all identifiers. Having two separated files, even in different formats, may cause maintenance difficulty.
-
Another case is building CUDA source code. There is already existing cuda backend for rust but still we need to keep the function signature the same across multiple crates. Ideally they should be together.