Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Celebrating as our community reaches 100,000 members! Thank you!
avatar
Contributor

Install

  1. Install Rust from Install Rust
  2. This is interactive so needs to run in a terminal
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    
    Hello World
    
    Rust Hello World https://doc.rust-lang.org/book/ch01-02-hello-world.html​
  3. Reload your session and terminal to update the PATH env
  4. Run
    rustc main.rs
    
    main.rs
    
    
    
    …​

Why Rust? 

Original Post from Stack Overflow:  what is rust and why is it so popular

Rust has been Stack Overflow’s most loved language for four years in a row, indicating that many of those who have had the opportunity to use Rust have fallen in love with it. However, the roughly 97% of survey respondents who haven’t used Rust may wonder, “What’s the deal with Rust?”

  • Rust’s static typing does its best to get out of the programmer’s way while encouraging long-term maintainability.
  • Rust gives you the choice of storing data on the stack or the heap and determines at compile time when memory is no longer needed and can be cleaned up.
  • The biggest benefit Rust can provide compared to these languages is the borrow checker.
  • The Rust experience is larger than a language specification and a compiler; many aspects of creating and maintaining production-quality software are treated as first-class citizens.
439 Views
0 Kudos
Version history
Last update:
‎10-17-2023 10:22 PM
Updated by:
Contributors