I pulled some open-source substrate projects from Github.
I got many errors of API in crates. I think it was caused by version mismatching of Rust.
How can I know which version should I choose when running these commands?
rustup install nightly-<YYYY-MM-DD>
rustup target add wasm32-unknown-unknown --toolchain nightly-<YYYY-MM-DD>
rustup default nightly-<YYYY-MM-DD>
Suppose that I found the right version nightly-2021-10-20, is there a case it works on macOS, but not in Windows?
Suppose that I found the right version nightly-2021-10-20, is there a case it works on macOS, but not in Windows?
No it is independent of OS. If it is working on Mac, it will work on Linux and Windows as well.