Rust の最初のステップ - Learn

"[rust]": {
  "editor.formatOnSave": true,
},
fn main() {
    println!("Hello, world!");
}
rustc main.rs
./main
cargo new hello-cargo
cargo run

Rust の一般的な概念を理解する - Learn

Rust プログラム構造の概要 - Learn

fn main() { // The function declaration is not indented

    // First step in function body
        // Substep: execute before First step can be complete

    // Second step in function body
        // Substep A: execute before Second step can be complete
        // Substep B: execute before Second step can be complete
            // Sub-substep 1: execute before Substep B can be complete

    // Third step in function body, and so on...
}