electrs: install rust with apt install cargo (#2279)

This commit is contained in:
openoms 2021-08-17 14:51:54 +01:00 committed by GitHub
parent 9f120db6df
commit f286189466
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,10 +263,11 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
echo
echo "# Installing Rust"
echo
sudo -u electrs curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sudo -u electrs sh -s -- --default-toolchain 1.39.0 -y
# https://github.com/romanz/electrs/blob/master/doc/usage.md#build-dependencies
#sudo -u electrs curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sudo -u electrs sh -s -- --default-toolchain 1.39.0 -y
sudo apt update
sudo apt install -y clang cmake # for building 'rust-rocksdb'
sudo apt install -y cargo
sudo apt install -y clang cmake build-essential # for building 'rust-rocksdb'
echo
echo "# Downloading and building electrs. This will take ~30 minutes" # ~22 min on an Odroid XU4