How to cross compile from Mac to Linux?
问题 I wrote a little game using Rust, and I used cargo build --release to compile a release version on Mac. I tried to share this with my friend who is using Ubuntu, but when he tried to run the binary, he got the following error: cannot execute binary file: Exec format error I searched for this but found no answers. Doesn't Rust claim to have "no runtime"? Shouldn't it be able to run anywhere in binary form? 回答1: Rust not having a runtime means that it doesn't have a lot of code running as part