various fixes
[buildscripts] / rust
diff --git a/rust b/rust
index 38d2a6058405ff713a804682cd313ebb485ec42e..08aea33679f53721af1df82b812a22c90ed1d33f 100755 (executable)
--- a/rust
+++ b/rust
@@ -11,6 +11,10 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
 # source /path/errhandle/err
 # on my machine
 source /a/bin/errhandle/err
+source /a/bin/distro-functions/src/package-manager-abstractions
+
+PATH="$PATH:$HOME/.cargo/bin"
+hash -r
 
 # install rust.
 if type -t rustc &>/dev/null; then
@@ -24,6 +28,9 @@ if ! which rg &>/dev/null; then
 fi
 
 if ! type -t cargo-install-update &>/dev/null; then
+  # due to
+  # error: failed to run custom build command for `openssl-sys v0.9.53`
+  pi libssl-dev pkg-config
   cargo install cargo-update
 fi