diff --git a/README.md b/README.md index 299b63f..4447abf 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ git lfs pull ### Install rust ``` curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \ - | sh -s -- -y --default-toolchain "$(cat rust-toolchain)" + | sh -s -- -y --default-toolchain nightly ``` ### Load cargo environment (or optionally reboot) @@ -36,6 +36,11 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \ source ~/.cargo/env ``` +### Ensure rust source is installed for current toolchain +``` +rustup component add --toolchain "$(cat rust-toolchain)" rust-src +``` + ### Install cargo-xbuild ``` cargo install cargo-xbuild diff --git a/README.md.in b/README.md.in index f13f9c7..5beb29a 100644 --- a/README.md.in +++ b/README.md.in @@ -28,7 +28,7 @@ git lfs pull ### Install rust ``` curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \ - | sh -s -- -y --default-toolchain "$(cat rust-toolchain)" + | sh -s -- -y --default-toolchain nightly ``` ### Load cargo environment (or optionally reboot) @@ -36,6 +36,11 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \ source ~/.cargo/env ``` +### Ensure rust source is installed for current toolchain +``` +rustup component add --toolchain "$(cat rust-toolchain)" rust-src +``` + ### Install cargo-xbuild ``` cargo install cargo-xbuild