Rust#
Installation#
Rustをインストールする.
$ curl https://sh.rustup.rs -sSf | sh
Configuring the PATH environment variable#
$HOME/.cargo/binを環境変数に追加する.
$ source $HOME/.cargo/env
Version#
$ rustc --version
rustc 1.80.1 (3f5fd8dd4 2024-08-06)
Example#
hello.rs:
fn main() {
println!("Hello, World!");
}
$ rustc hello.rs
$ ./hello
Hello, World!