Required
Rust
Optional
-
Install
rustup
-
Install the stable toolchain for now
Terminal window rustup install stable -
Install the
rust-analyzer
component (LSP)Terminal window rustup component add rust-analyzer-preview -
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")~/.config/xonsh/env.xsh $PATH.prepend("~/.cargo/bin") -
Install
cargo-binstall
for easier installation of Rust tools, without needing to compile everythingTerminal window curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash -
Restart your shell for the PATH change to take effect
Dioxus
I’m also trying out Dioxus for GUI.
To setup the prerequisites, just
-
Install Dioxus’s CLI tool
Terminal window cargo binstall dioxus-cli -
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