# Rust をインストール
sudo snap install rustup --classic
rustup toolchain install 1.70.0
# いろいろ依存パッケージをインストール
sudo apt update
sudo apt install build-essential pkg-config libssl-dev zlib1g-dev
# cargo-compete, cargo-equip, sccache をインストール
rustup toolchain install nightly stable
cargo +nightly install cargo-compete
cargo +stable install sccache
# cargo-compete のセットアップ
cargo compete login atcoder
mkdir cp
cd cp
cargo compete init atcoder
curl https://gist.githubusercontent.com/magurofly/3ace701334588aed6920e238bd240075/raw/1ef8b9ed511b3b53e9bef2c1d05ea2059e54ccc8/compete.toml > compete.toml
# sccache のセットアップ
echo "export RUSTC_WRAPPER=$HOME/.cargo/bin/sccache" >> ~/.profile
-
-
Save magurofly/47dcff3cfcbbe5574bd353381ee30590 to your computer and use it in GitHub Desktop.
UbuntuにRust競プロ環境を構築する
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment