about summary refs log tree commit diff stats
path: root/profile/rust.sh
blob: fa23ae9955c7cacb73932e89ebda38e1d807365c (plain)
1
2
3
4
5
6
7
8
9
10
execp cargo || return

export RUSTUP_HOME="${XDG_DATA_HOME:=$LOCAL_PREFIX/share}/rustup"
export CARGO_HOME="${XDG_DATA_HOME:=$LOCAL_PREFIX/share}/cargo"

path_add_to_PATH "$CARGO_HOME/bin"

if test -f "$CARGO_HOME/env"; then
	. "$CARGO_HOME/env" # takes care of $PATH for us
fi