dotfiles/playbooks/roles/common/tasks/rust.yml
2018-11-19 20:19:29 -05:00

30 lines
679 B
YAML

---
- name: Install Rust
shell: curl https://sh.rustup.rs -sSf | sh
args:
creates: ~/.cargo
- name: Install ripgrep
shell: ~/.cargo/bin/cargo install ripgrep
args:
creates: ~/.cargo/bin/rg
- name: Install exa
shell: ~/.cargo/bin/cargo install exa
args:
creates: ~/.cargo/bin/exa
- name: Install just
shell: ~/.cargo/bin/cargo install just
args:
creates: ~/.cargo/bin/just
- name: Install cargo-update
shell: ~/.cargo/bin/cargo install cargo-update
args:
creates: ~/.cargo/bin/cargo-install-update
- name: Install rls
shell: ~/.cargo/bin/rustup component add rls-preview rust-analysis rust-src
args:
creates: ~/.cargo/bin/rls