I’ve been running into an interesting situation for the last year or so:
When you want to build and deploy Rust code to multiple targets (in the rustup sense of the word) you quickly find out that it is next to impossible at the moment to just use 1 host and build for Linux, OS X, and Windows, at least when the host is OS X or Linux. I haven’t checked Windows.
In practice it is immensely easier to “just find a suitable build host”, which has its own problems e.g. dependency on 3rd parties, and solutions like TravisCI are extremely slow (compared to a regular Rust build, that is).
Xargo seems to help somewhat with this issue apparently. But what I’ve been bumping into this issue repeatedly and I think the ideal workflow would be something like: 1. install the target you want to build for, and 2. use cargo build --target <TARGET> or something like that to successfully build the code.
It’ll probably be tricky to get this done, but the value would be immense.
I’m interested in what you all think about this, do you consider this a useful feature?
And what are the hurdles (technological or otherwise) to take in order to get this feature?