From 9c1278ee657dd04f913aef8facbecd8a94159245 Mon Sep 17 00:00:00 2001 From: Shikong <919411476@qq.com> Date: Sun, 26 Jun 2022 15:07:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20hello=5Fcargo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2.hello_cargo/src/main.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/2.hello_cargo/src/main.rs b/2.hello_cargo/src/main.rs index df3a1fe..6a27613 100644 --- a/2.hello_cargo/src/main.rs +++ b/2.hello_cargo/src/main.rs @@ -1,6 +1,18 @@ // Cargo 创建项目 // cargo new hello_cargo +// 构建项目 +// cargo build + +// 构建 + 运行 项目 +// cargo run + +// 代码检查 +// cargo check + +// 构建发布 +// cargo build --release + fn main() { println!("Hello, world!"); }