Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 365 Bytes

File metadata and controls

29 lines (20 loc) · 365 Bytes

Install

Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

rustup --version
rustc --version
cargo --version

# update
rustup update

# Build new Cargo project named hello_rust
cargo init hello_rust

# Build project
cargo build

# Format code
cargo fmt

# Run main.rs
cargo run

# Run test
cargo test