Skip to content

Rust

  1. Install rustup

  2. Install the stable toolchain for now

    Terminal window
    rustup install stable
  3. Install the rust-analyzer component (LSP)

    Terminal window
    rustup component add rust-analyzer-preview
  4. Add cargo’s .bin directory to your $PATH

    ~/.config/nushell/user.nu
    use std/util "path add"
    path add ($env.CARGO_HOME | path join "bin")
  5. Install cargo-binstall for easier installation of Rust tools, without needing to compile everything

    Terminal window
    curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
  6. Restart your shell for the PATH change to take effect

Dioxus

I’m also trying out Dioxus for GUI.

To setup the prerequisites, just

  1. Install Dioxus’s CLI tool

    Terminal window
    cargo binstall dioxus-cli
  2. Install WebView dependencies / make sure they’re installed

    Terminal window
    paru -S --needed webkit2gtk-4.1 base-devel curl wget file openssl appmenu-gtk-module libappindicator-gtk3 librsvg xdotool