$ rustup target add stable-x86_64-apple-darwin
error: toolchain 'stable-x86_64-unknown-linux-gnu' does not contain component 'rust-std' for target 'stable-x86_64-apple-darwin'
note: not all platforms have the standard library pre-compiled: https://doc.rust-lang.org/nightly/rustc/platform-support.html
Why? It doesn't work any other compiled language, why should it work for Rust?
Apple's position is extra clear: if you want to develop something for macOS or iOS you have to do that on Mac. Period, end of story. Nothing else is supported (and by “unsupported” I mean not “Apple wouldn't help you” but “Apple's license doesn't allow that and there are technical measures in place to make that impossible really hard”).
Where does your link say that Tier 1 target is supposed to be usable on host of your choosing?
Tiers are about level of support, it doesn't tell anything about your ability to use some random host to use compilers for these tiers.
In fact it specifically tells about this situation: If running the testsuite requires additional infrastructure (such as physical systems running the target), the target maintainers must arrange to provide such resources to the Rust project, to the satisfaction and approval of the Rust infrastructure team.
I'm not 100% sure but I think it's precisely about MacOS: it wasn't tier 1 platform till Rust project got enough MacOS systems for the CI.
x86_64-apple-darwin is pretty well supported target, you just have to use MacOS if you want to use it.
Note that even if you do all that you would still need to get certificate from Apple and use that, or else your apps wouldn't run on normal MacOS setup.
Basically: Apple haven't yet made it impossible to build binaries for MacOS on some other OS, but it becomes increasingly harder each year.
I wouldn't trust these tools, if you really want to provide binaries for MacOS you need MacOS, anything else is just asking for trouble.
That helped. I can install support for that target.
Building the default "hello world" project gets to the point that linking with "cc" fails with the message cc: error: unrecognized command-line option '-arch' Which is kind of strange. cargo generated a cc command that can't work.