Hallo hallo.
I am new to Rust and hope someone can answer a few stupid questions.
I want to test out Yew and did the following as suggested on the website:
cargo install trunk
I got the error:
error: failed to run custom build command for `ring v0.16.20`
I tried a few things and ended up getting the solution by:
rustup default x86_64-pc-windows-msvc
The error messages kept complaining about gcc.exe not being found (even when my other Rust projects compile).
So my questions are:
- What is the difference between
x86_64-pc-windows-gnu
andx86_64-pc-windows-msvc
from a user perspective? - Which toolchain do Rust users use on Windows? I saw that
Rustup show
indicated 3 toolchains on my device. - I have no idea why changing the default from
nightly gnu
tostable msvc
solved my problem?
Sorry for the noob question, I come from Python and don't work with build tools.
Any comments would be appreciated.
Thanks.