A friend recommended their official book. So I will start here: https://www.rust-lang.org/learn
A few years ago I had to decide before diving into Go or Rust. I eventually chose Go.
It was a choice between Go and Rust because the 2 most popular #Ethereum clients were written in these languages.
The official client is written in Go. https://github.com/ethereum/go-ethereum
It was a choice between Go and Rust because the 2 most popular #Ethereum clients were written in these languages.
The official client is written in Go. https://github.com/ethereum/go-ethereum
Rust is one of those modern languages that comes with a "native" set of tools for the devs.
Cargo - dependency manager, build tool
Rustfmt - code formatter, linter
The Rust Language Server - powers IDE integration for code completion and error messages
Cargo - dependency manager, build tool
Rustfmt - code formatter, linter
The Rust Language Server - powers IDE integration for code completion and error messages
Chapter 1: Installation and Hello World
I installed `rustup`, which is a Rust version manager like `nvm` (for Node.JS) or rvm (for Ruby).
#nodejs #ruby #rustlang
#nodejs #ruby #rustlang
I also installed the rustup plugin for zsh, to enable autocompletion.
https://github.com/pkulev/zsh-rustup-completion
#zsh #rustlang @ohmyzsh
https://github.com/pkulev/zsh-rustup-completion
#zsh #rustlang @ohmyzsh
I like you also have documentation available locally
$ rustup doc
Opens a browser window with the documentation, lots of rust books, even the one I'm reading right now.
You can learn and program rust even while flying or without internet.
#rustlang
$ rustup doc
Opens a browser window with the documentation, lots of rust books, even the one I'm reading right now.
You can learn and program rust even while flying or without internet.

#rustlang
I had to add
"rust-client.rustupPath": "~/.cargo/bin/rustup"
to my VSCode settings to use Rust Language Server.
"rust-client.rustupPath": "~/.cargo/bin/rustup"
to my VSCode settings to use Rust Language Server.