Files
garden/learning-rust.md
T

957 B
Raw Blame History

Learning Rust

  • This is just a place where I might dump random observations while [learning] [rust].
  • [go] https://doc.rust-lang.org/stable/book/ch01-02-hello-world.html
    • a movable pointer
  • Installing rustup via curl produced a working install right away, whereas snap install curl didn't for some reason.
  • println! is a macro, not a function, and this is indicated by the !. At first glance I thought it meant it was a function with side effects.
  • Semicolons. Sigh.
  • "Cargo is Rusts build system and package manager. Most Rustaceans use this tool to manage their Rust projects because Cargo handles a lot of tasks for you, such as building your code, downloading the libraries your code depends on, and building those libraries."