mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-10-02 06:50:32 +00:00
21 lines
568 B
Bash
21 lines
568 B
Bash
set -euxo pipefail
|
|
|
|
main() {
|
|
# install latest Xargo
|
|
local tag=$(git ls-remote --tags --refs --exit-code https://github.com/japaric/xargo \
|
|
| cut -d/ -f3 \
|
|
| grep -E '^v[0-9.]+$' \
|
|
| sort --version-sort \
|
|
| tail -n1)
|
|
curl -LSfs https://japaric.github.io/trust/install.sh | \
|
|
sh -s -- \
|
|
--force \
|
|
--git japaric/xargo \
|
|
--tag $tag
|
|
|
|
rustup component list | grep 'rust-src.*installed' || \
|
|
rustup component add rust-src
|
|
}
|
|
|
|
main
|