Skip to content

A curated collection of materials designed to assist learners at various stages of their journey with the Rust programming language, focusing on blockchain development.

Notifications You must be signed in to change notification settings

FredMunene/learn_rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 

Repository files navigation

Coursework for learning Rust for blockchain projects.

  • What is Cargo and why do you need it?

    • Cargo is a Rust package manager It downloads your package's dependencies, compiles your packages, makes distributable packages, and uploads them to crates.io.
  • To install Rust and Cargo on a Linux OS, run below command on the terminal.

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

For other OS, check this link for instructions

Run the command to store the projects. cargo new folder_name

A typical setup for a Rust project will contain the below. In our case, folder folder_name should contain:

  • Cargo.lock
  • Cargo.toml
  • src
  • target

To run a single script, first compile is using the below command rustc file_name.rs Then run your program using ./file_name

  • Commands
    • cargo build
    • cargp run
    • cargo check

About

A curated collection of materials designed to assist learners at various stages of their journey with the Rust programming language, focusing on blockchain development.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages