瀏覽代碼

rustc: add page

Daniel Campoverde [alx741] 9 年之前
父節點
當前提交
de5e247966
共有 1 個文件被更改,包括 19 次插入0 次删除
  1. 19 0
      pages/common/rustc.md

+ 19 - 0
pages/common/rustc.md

@@ -0,0 +1,19 @@
+# rustc
+
+> The Rust compiler.
+
+- Compile a single file:
+
+`rustc {{file.rs}}`
+
+- Compile with high optimization:
+
+`rustc -O {{file.rs}}`
+
+- Compile with debugging information:
+
+`rustc -g {{file.rs}}`
+
+- Build a test harness:
+
+`rustc --test {{file.rs}}`