-
Tommie Levy authoredTommie Levy authored
setup.sh 564 B
#!/usr/bin/env bash
set -e
echo "Downloading latest pkgutils"
git submodule update --init --remote pkgutils
cargo update --manifest-path pkgutils/Cargo.toml
echo "Defaulting to rust nightly"
rustup override set nightly
echo "Update rust nightly"
rustup update nightly
echo "Downloading rust source"
rustup component add rust-src
if [ -z "$(which cargo-config)" ]
then
echo "Installing cargo-config"
cargo install -f cargo-config
fi
if [ -z "$(which xargo)" ]
then
echo "Installing xargo"
cargo install -f xargo
fi
echo "cook.sh is ready to use"