Rust toolchains: Difference between revisions
From wikinotes
(→rustc) |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= cargo = | |||
<blockquote> | |||
[[rust cargo]] is rust's build system, project, and package manager.<br> | |||
nearly all other tools are abstracted through cargo. | |||
= | </blockquote><!-- cargo --> | ||
= rustup = | |||
<blockquote> | <blockquote> | ||
The rust toolchain installer | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
rustup update # update latest rustc | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- | </blockquote><!-- rustup --> | ||
= | = rustc = | ||
<blockquote> | <blockquote> | ||
<code> | <code>rustc</code> is the rust compiler. | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
rustc foo.rs # compiles 'foo' executable from foo.rs | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- rustc --> | |||
</blockquote><!-- |
Latest revision as of 23:37, 9 February 2023
cargo
rust cargo is rust's build system, project, and package manager.
nearly all other tools are abstracted through cargo.
rustup
The rust toolchain installer
rustup update # update latest rustc
rustc
rustc
is the rust compiler.rustc foo.rs # compiles 'foo' executable from foo.rs