初始化Rust示例项目ex01,包含基础项目结构和"Hello, world!"示例

This commit is contained in:
程广 2025-07-02 17:49:43 +08:00
parent 3dc26f670c
commit d02e229239
4 changed files with 17 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
target/

7
examples/ex01/Cargo.lock generated Normal file
View File

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "ex01"
version = "0.1.0"

6
examples/ex01/Cargo.toml Normal file
View File

@ -0,0 +1,6 @@
[package]
name = "ex01"
version = "0.1.0"
edition = "2024"
[dependencies]

View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}