lang/rust/ OxidiseYourLife


Notes from this youtube video by Tris

Aim: use Rust-based tools for as much as possible Everything in Rust and a single cargo install away.

There are a few dependencies that aren't installed on an out-of-the-box Ubuntu install. So I've prepended apt-get lines where necessary.

sccache

sudo apt-get install pkg-config libssl-dev
cargo install sccache
RUSTC_WRAPPER=sccache cargo install {package}

then in my cargo.stuff ``[ ! -d ~/.cargo ] && return # do nothing unless rust is installed .if . "$HOME/.cargo/env" if [ -x "$(which sccache)" ]; then alias cargoi='RUSTC_WRAPPER=sccache cargo install'; else alias cargoi='cargo install' fi

so then we can use `cargoi` instead of `cargo install` to use `sccache`.
## nu
nu is a shell inspired by powershell, built around nu language.
Views input as structured, like powershell, rather than text like bash.

cargo insall nu

## coreutils

cargo install coreutils

## starship

sudo apt-get install cmake cargo install starship

has many plugins
## exa
replacement for ls

cargo install exa

## du-dust
replacement for `du`

cargo install du-dust

## bat

cargo install bat

falls back to cat mode if output is not a terminal
## zellij
Like tmux

cargo install zellij

webassembly api for writing plugins
## mprocs

cargo install mprocs

like tmux but for long running processes
each command in its own vertical tab
## ripgrep

cargo install ripgrep

need to learn rust's regex engine
## bob-nvim
nvim version manager

cargo install bob-nvim

## gitui
replacement for lazygit

cargo install gitui

## irust

cargo install irust

like `ipython` but for rust, repl driven develpment.
## evcxr_jupyter
Needs jupyter, which can be installed via package manager.
(So install numpy, scipy, matplotlib and jupyter)

cargo install evcxr_jupyter

## bacon
for auto running build, clippy and so on

cargo install bacon

## cargo-info

cargo install cargo-info

# Applications
## ncspot
spotify client

cargo install ncspot

(I use `mpd` on a spare Thinkpad for all my music listening needs rather
than e.g. Spotify, so I don't install this one, hence the `#`.)

## porsmo
work timer

sudo apt-get install libasound2-dev cargo install porsmo

## speedtest-rs

cargo instll speedtest-rs

## wiki-tui
wikipedia ui

cargo install wiki-tui

## rtx-cli
asdf clone. General version switcher

cargo install rtx-cli


## Using
### Installing neovim