0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Compiler Explorerで、Rustのコードを実行する方法

Last updated at Posted at 2022-07-12

Compiler Explorer
https://godbolt.org/
でRustのコードを実行するには以下の手順でできます。

  1. 言語の選択 - 右上から Rust を選ぶ
  2. main関数は、
    pub fn main()にする。
  3. Add new... より Execution only
  4. 新しく増えたタブをドラッグ&ドロップしてソースの右に並べる
  5. 実行プログラムにリンクを作るには、サイト右上 - Share
  6. プログラムコードの
    LightをDarkにするには、左上 More - Setting - Dark
    アセンブリ言語との対応を示す色分けがいらないときもそこから。

こんな感じで実行できます。
(最初の2つを除けば、他のプログラミング言語でも同じです)

実行結果
https://godbolt.org/z/Eaf7h5xsT

0
0
1

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?