sithart / rust_practices

1 stars 0 forks source link

Rust Practices

Practice and implement projects in Rust

Steps

1, Getting Rust Overview from tutorial Point. 2, Installing the Rust based on the official Docs.

Create New Project: cargo new hello-rust Folder Structure: hello-rust |- Cargo.toml |- src |- main.rs

Cargo.toml - is the manifest file for rust. It's where you keep metadata for your project, as well as dependencies.

srs/main.rs - is where we'll write our apllication code. cargo-new - generates a "Hello, World" project for us! we can run this program by moving into the new directory that we made and running this is our terminal.

cargo-run

Links