I want to generate binaries for multiple targets, i have tried this:
cargo r --target x86_64-unknown-linux-musl --target x86_64-unknown-linux-gnu
but it didn't work.
How can i pass these to cargo correctly ?
Is there an way to hard code this in
.cargo/config.toml as it's annoying to pass this long text to cargo ?
target = ["x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl", "i686-unknown-linux-gnu"]
I have checked those:
After thinking a lot about it, I started porting a little software I made initially in Go, to Rust. Let's say I started having real issues with the language, the decisions that were made, and the general behavior "embrace it or get out, but don't bother us ". So, Rust.
The development is going quite well, pretty sure the quality of the code is not that good, but I'm learning a lot, I love the design choices that were made (sum types feel like a blessing, clap puts any CLI…
06:33PM - 11 Mar 22 UTC
### What does this PR try to resolve?
Support `-Zmultitarget` in cargo config
10:54PM - 24 Apr 20 UTC
09:49PM - 29 Apr 20 UTC
**Describe the problem you are trying to solve**
When building rust code for
07:34PM - 28 Apr 20 UTC
07:39PM - 17 Jul 22 UTC
This is intended to be a tracking issue for `-Zmultitarget` being implemented in
You can run
cargo multiple times, one target at a time.
Thanks for help. In fact, i already know i can do this, i want to hard code the target builds in
config.toml or any place else or at least pass all the targets in one command. Are there any future plans to support something like i this ?
The tracking issue hints it should work. It's probably just not fully implemented. Cargo currently is severely understaffed, unfortunately.
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.