1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

MacでRustの環境構築

Posted at
  • Xcodeをインストール
xcode-select --install
  • rustupをインストール
% curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# 対話が始まるが、気にせずEnterでOK!
...
% source "$HOME/.cargo/env"

% rustup -V
rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.72.1 (d5c2e9c34 2023-09-13)`

% rustc -V
rustc 1.72.1 (d5c2e9c34 2023-09-13)

% cargo -V 
cargo 1.72.1 (103a7ff2e 2023-08-15)
  • プロジェクトの作成
cargo new new_project
  • フォルダをすでに作ってしまったなら中に入って初期化
cargo init
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?