This is how to fix the compiling error in rust where link.exe is not found.
Even if you have VS Build Tools installed, it will still show that link.exe is not found, what you need to do is run Visual Studio Installer and modify the Visual Studio Community (2022) and checkmark the C++ Desktop Development and install it.