Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how use rust in linux ubuntu

# Step 1: Update System
$ sudo apt-get update && sudo apt-get upgrade

# Step 2: Install Rust
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$ source $HOME/.cargo/bin
$ rustc --version

# Step 3: Hello World
$ cargo new hello_world
$ cargo run
 
PREVIOUS NEXT
Tagged: #rust #linux #ubuntu
ADD COMMENT
Topic
Name
8+9 =