| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

Rust

提供: MyMemoWiki
ナビゲーションに移動 検索に移動

Rust

Install

Uninstall

  1. rustup self uninstall

Mac


  1. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • Rustの開発環境において、全てのツールは~/.cargo/binディレクトリにインストールされるため、PATHを通す

開発

パッケージの生成

  1. $ cargo new --bin hello

実行

  1. $ cd hello
  2. $ cargo run
  3. Compiling hello v0.1.0 (/Users/hirotoyagi/Workspaces/rust/lesson/hello)
  4. Finished dev [unoptimized + debuginfo] target(s) in 7.21s
  5. Running `target/debug/hello`
  6. Hello, world!

クリーン

  1. $ cargo clean