From 61056ed16262d68103613ef2381d0a7b4da164ce Mon Sep 17 00:00:00 2001 From: Uncle Stretch Date: Mon, 28 Jul 2025 16:28:23 +0300 Subject: [PATCH] recomendations for rustc compilation and cargo usage for automation script Signed-off-by: Uncle Stretch --- scripts/starter.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/starter.sh b/scripts/starter.sh index 67e313d..2f7caf7 100755 --- a/scripts/starter.sh +++ b/scripts/starter.sh @@ -200,6 +200,15 @@ if [[ $HARD_RESET = true ]]; then # echo "[+] fetching the latest ghost-node source code" # git switch main # git pull origin main + + # rustc version control, this works fine + # cargo --version | cut -d'.' -f2, if higher then do + # rustup default 1.83.0 + # rustup target add wasm32-unknown-unknown --toolchain 1.83.0-x86_64-unknown-linux-gnu + # rustup component add rust-src --toolchain 1.83.0-x86_64-unknown-linux-gnu + # + # I think we need to do clean before recompilation + # cargo clean cd $PROJECT_FOLDER echo "[+] starting build in 3 seconds..."