In the Hello world example given in the official website document, I see that the compiled command uses rustc.
Take windows 10 as an examplerustup- init.exe 64 bitAnd the correct installation, rustc will also be installed. deposit rustc.exe What’s the location of this
>dir /b cargo-clippy.exe cargo-fmt.exe cargo-miri.exe cargo.exe clippy-driver.exe rls.exe rust-gdb.exe rust-lldb.exe rustc.exe rustdoc.exe rustfmt.exe rustup.exe
Rustc is the compiler of the programming language rust. Rustc compiles the source code into binary code in the form of library or executable file.
In the actual project, people will not directly use rustc to compile all the files, but use the cargo command. implement
cargo build --verboseYou can see how it works
This work adoptsCC agreementReprint must indicate the author and the link of this article