Project Setup and Toolchain

Here is the toolchain I used for this development:

  •     Rust 1.62.0 installation using rustup: Rust which will install basic Rust tools
    • rustc
    • cargo
    • rustup
  •     IDE: VSCode with rust-analyzer extension: VSCode
Create a folder for rust projects such as desktop/rust_projects.

Run VSCode, select File > Open Folder > select rust_projects folder.
Select Terminal > New Terminal

In the terminal window, type cargo --version to verify rust installation:
cargo 1.62.0 (a748cf5a3 2022-06-08)

Type cargo new hello_world
Type cd hello_world
Type cargo run

Verify the program output:
Hello, world!

Congradulations! You just created your first Rust program.

The source code is found in src/main.rs file:

fn main() {
    println!("Hello, world!");
}




Comments

Popular posts from this blog

Microwave RLC circuit analysis

Warning! Will Robinson...