Help: compile pure Rust code from Windows to macOS

I already know how do it in reverse. But to the question, I didn't find any helpful information, blog or something like that..

Anyone could help me with this? Very appreciate it.

You may be able to compile a static library. But to compile an executable, you would need proprietary Apple system libraries to link to, and these are only shipped as part of macOS.

Honestly your best bet might be running the compiler on a VM. This script can download and create an install disk that you can boot in your favorite VM (qemu, virtualbox, etc.) with some manual steps.

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.