Rust
https://gyazo.com/e83c29c7de7f97e8bc665d3d731a11fe
mascot
Ferris
https://gyazo.com/d65b4d6b6bf32cfc1fbc92130c4c485b
文書
標準 library は std crate
日本語譯が有る
安裝
asdf-rust (asdf-vm) は rustup を叩いてゐる。Rust stable を入れられる 開發道具
project 管理
Cargo
formatter
$ rustup component add rustfmt
$ cargo fmt
$ cargo fmt --all -- --check
linter
$ cargo c
$ cargo check
$ cargo b
$ cargo build
$ rustup component add clippy
$ cargo clippy
$ cargo clippy -- -D warnings
test
$ cargo t
$ cargo test
$ cargo t --no-fail-fast -- --nocapture
$ cargo fmt --all -- --check && cargo clippy -- -D warnings && cargo t --no-fail-fast -- --nocapture
fail fast にするのに cargo check を入れても好い
$ cargo fmt --all -- --check && cargo c && cargo clippy -- -D warnings && cargo t --no-fail-fast -- --nocapture
documentation
rustdoc
$ cargo doc
依存更新
$ cargo update
Cargo.lock を書き換へる
Language Server
$ rustup component add rls rust-analysis rust-src
GitHub Actions
好く使ふ library
非同期處理
WAF (Web Application Framework)
Also have HTTP client
WebSocket implemented
HTTP/2 implemented
actix-web is based on actix: actor framework like ScalaScala.icon's Akka and ErlangErlang.icon/OTP. actix is based on tokio. cargo-web
wasm-bindgen
wasm-pack
構文解析
parser generator
ANTLR4
Rust target
parser combinator