zbigniewzolnierowicz / rust-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Recipes

Tools used:

In the app proper

Usual New
postgres SurrealDB (not using this, I wanna show off sqlx)
Spring Actix Web
React Leptos
Minio Garage
curl hurl

In my terminal

Usual New
tmux zellij
Neovim still Neovim, but with bob, or helix, or zed
nvm/rubyenv/pyenv mise
cd/z zoxide
oh-my-zsh prompt starship
grep ripgrep
find fd
cat bat
du dust
ls eza
lazygit gitui
vscode neovide
tldr tealdeer
zsh nu (but I'm not using this one, too used to zsh)
ctrl-r mcfly && mcfly-fzf

Prerequisites

# Installing tools we need

cargo install cargo-binstall
cargo binstall trunk
cargo binstall hurl

# Setting compilation targets && switching to nightly compiler (needed for Leptos)

rustup toolchain add nightly
rustup override set nightly
cd frontend
rustup target add wasm32-unknown-unknown
rustup component add rust-analyzer

Issues

  • Rust is a very slow to write in language
    • But a very correct language!
  • Steep learning curve
  • Integrating with existing JS libraries is a bit of a pain
  • Async traits have caveats (for library developers mostly)
  • Cannot use pooled connections with Neon (issue in sqlx, just use normal connections rather than Neon's connection pooling)

Others

Energy efficiency across programming languages Cargo script? LINQ in Rust Python-like list comprehension Are we learning yet? Are we web yet? sccache

mk48.io

About


Languages

Language:Rust 97.3%Language:Shell 1.0%Language:Dockerfile 0.5%Language:JavaScript 0.5%Language:TypeScript 0.3%Language:HTML 0.2%Language:CSS 0.1%