feat(rust): improve overall setup around Rust

This commit is contained in:
2023-03-09 23:18:50 +00:00
parent 664f06bbdb
commit 72dde13eb7
3 changed files with 94 additions and 8 deletions

6
zshenv
View File

@@ -184,9 +184,15 @@ path_prepend "/opt/tmux/bin"
path_prepend "$HOME/.rbenv/shims"
# Rust setup
export RUSTUP_HOME="$HOME/.rustup"
export CARGO_HOME="$HOME/.cargo"
path_prepend "$CARGO_HOME/bin"
export RUST_BACKTRACE=1
if command-exists sccache; then
export RUSTC_WRAPPER=sccache
fi
# RTX shim setup
path_prepend "$HOME/.rtx/shims"