Skip to content

ElectronAmpere/rust-language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Programming language

Learning to code in Rust programming language

Directories

Sample

These are sample programs created using cargo build and package management system.

Source

The source directory will contain all the examples, exercises and more from the book The Rust Programming Language

References

Books

  1. Steve Klabnik_ Carol Nichols - The Rust Programming Language, 2nd Edition-No Starch Press (2022).pdf

  2. Rust Book

Command Line

  1. curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh - To install Rust, Linux or macOS

  2. rustup update - To update Rust

  3. rustup self uninstall - To uninstall Rust

  4. rustc --version - To check version of Rust C

  5. rustup --version - To check version of Rustup

  6. cargo --version - To check version of Cargo

  7. rustup doc - To get local documentation

  8. cargo doc --open - To generate the doc locally and viewed in browser

  9. To create a new project run, cargo new <project_name>

    cargo new hello-rust
  10. To build the project run, cargo build

  11. To run the project, cargo run

  12. To add dependencies run, cargo add <crate_name>

    cargo add ferris-says
  13. To check for compilation errors and not create a binary file run, cargo check

Links

Rust

  1. Rust Foundation
  2. Rust Language
  3. Rust Blog
  4. The Cargo Book
  5. Rust Package Registry
  6. Rust Standard Library
  7. Rust Edition Guide
  8. Rustdoc
  9. Rustc
  10. Rust Error Codes
  11. Rust Command Line Book
  12. Rust Webassembly Book
  13. Rust Embedded Book
  14. Rust Reference
  15. Rustonomicon
  16. Rust Unstable Book
  17. Rust Forge
  18. Rust TOML Files
  19. Rust Comments Section
  20. Rust Commenting Conventions

Miscellaneous

  1. TOML Lang
  2. TOML Files
  3. Markdown Land

Sample Project

The hello-rust and hello-cargo are projects created using cargo build system and package manager for Rust. This is to simulate the properties of creating a project using cargo.

About

Learning to code in Rust programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages