nitt's blog

rust 101

Welcome to the uncooked rust series, where i'll teach you about rust, which i myself don't know but i'm learning. This will help me understand the concepts better. This is kinda personal notes that i'm taking down from WBA solana cohort so it won't be much detailed and only a basic understanding of rust to get started with anchor.

What is rust?

Rust is a systems programming language that helps you write faster and more reliable software (the book states it idk, yet to try). Unlike python which is dynamically typed and interpreted, rust is statically typed and compiled.

Rust gives you the ability to control low level details such as memory usage, etc.

Some advantages of rust are:

Key Concepts:

Some additional notes on installation and writing a world hello program

installing rust on linux, macOS

on MacOS and linux

type the following on the command line $ curl https://sh.rustup.rs -sSf | sh
The command downloads a script and starts the installation of the rustup tool, which installs the latest stable version of Rust

If installed correctly, Rust is installed now. Great! you get this. If not, please google.

world hello program in rust

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

I'll write about anchor in next post