Open3
Rust に入門する
Rust そろそろ触るぐらいはしたほうが良いのではと思ったので感想を書きつつ入門する
Getting Started にしたがって rust を入れようとしたけどすでに入ってた。以前に入門しようと思って入れただけ入れたんだと思う。
❯ rustup --version
rustup 1.24.3 (ce5817a94 2021-05-31)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.54.0 (a178d0322 2021-07-26)`
バージョンが古かったので rustup update
した。
新幹線内なのでインストールが若干遅い
その間に vscode の extention を入れておく
Getting Started も読み進める
cargo
コマンドで色々できるみたい。cargo test
でテスト実行できるのoml簡単そうでよい
cargo new project-name
で新しいプロジェクトが作成できる
Cargo.toml が dependencies などのプロジェクトの metadata 管理しているファイル
めっちゃ時間かかってるので the book の Guessing Game をつくるところ読んでる