Files
garden/learning rust.md
T
flancian e26cc36d7c Wow, forgot to use 'git mv', previous changelists are [[cursed]].
Will still revert journals to [[iso 8601]] after this commit.
2021-05-07 21:33:26 +02:00

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 Rust’s 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."