changeset 517:92d3f40572b6

env: revise rust setup to be more modern
author Augie Fackler <raf@durin42.com>
date Thu, 02 Dec 2021 22:08:58 -0500
parents dbe413154ccd
children 62e62b885540
files .shell.d/99.rust.sh
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/.shell.d/99.rust.sh
+++ b/.shell.d/99.rust.sh
@@ -1,2 +1,3 @@
-insert_path_element $HOME/.cargo/bin
-# export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
+if [ -e "$HOME/.cargo/env" ] ; then
+    . "$HOME/.cargo/env"
+fi