Skip to content

Instantly share code, notes, and snippets.

@dhconnelly
Last active June 19, 2019 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhconnelly/38d2b0d03d80c643eed7814cbb0c8928 to your computer and use it in GitHub Desktop.
Save dhconnelly/38d2b0d03d80c643eed7814cbb0c8928 to your computer and use it in GitHub Desktop.

rust

https://www.rust-lang.org/

features

  • traits (interfaces), enums (abstract data types), generics
  • pattern matching and destructuring
  • memory safety, no nulls, smart pointers, borrow-checking, raii
  • not garbage collected

getting started

https://www.rust-lang.org/learn/get-started

run code in the browser

https://play.rust-lang.org/

installing & running locally

  • install locally: curl https://sh.rustup.rs -sSf | sh
  • create new project: cargo new hello-rust
  • edit edit edit: vim src/main.rs
  • run code: cargo run

learning

rust book

https://doc.rust-lang.org/book/

rust by example book

https://doc.rust-lang.org/stable/rust-by-example/

rustlings: small exercises

https://github.com/rust-lang/rustlings/

  • install: curl -L https://git.io/rustlings | bash
  • run verifier, auto runs tests as you edit exercises: rustlings watch
  • edit exercises: `vim exercises/exercise/mentioned/in/rustlings/watch/above'

etc

some projects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment