The target is x86_64-apple-darwin
, not stable-x86_64-apple-darwin
.
You will also need a compiler toolchain that can target macOS - GitHub - tpoechtrager/osxcross: Mac OS X cross toolchain for Linux, FreeBSD, OpenBSD and Android (Termux) is a decent way to do that.
You can also use cross
to handle some of the config plumbing for you, though you will need to do some of the work yourself for licensing reasons: GitHub - cross-rs/cross-toolchains: Additional Dockerfiles and crosstool-ng config files to build additional toolchains.