/Learn-Rust

Learn Rust

Primary LanguageRustMIT LicenseMIT

Learn-Rust

Learn Rust

Run-Rust

rustc file-name.rs

1 Cmd: file-name

2 VsCode: ./file-name

3 New package rust: cargo new namepackage

4 Run package rust: cd namepackage --> cargo run

5 Check package rust: cd namepackage --> cargo check

6 Add dependencies: cargo add name-library "maybe add version: -> name-library@=version"

6 Update library in package rust: add library at cargo.toml --> cargo build