devel: Add rust setup

This commit is contained in:
Jannik Beyerstedt 2026-03-20 12:33:48 +01:00
parent 114ae08921
commit 9e3aaf3367

View file

@ -77,7 +77,7 @@
PATH=/usr/local/bin:/opt/homebrew/bin:$PATH
code --install-extension ms-python.python
# VC Code - Golang Development Tools
# VS Code - Golang Development Tools
# https://golang.org/doc/install
- name: Devel - Golang - Setup Environment
tags: lang_golang
@ -136,3 +136,30 @@
ansible.builtin.shell: |
PATH=/usr/local/bin:/opt/homebrew/bin:$PATH
code --install-extension james-yu.latex-workshop
# VC Code - Rust Development Tools
- name: Devel - Rust - Setup Environment
tags: lang_rust
when: user_lang_rust
block:
- name: Devel - Rust - Install rustup
ansible.builtin.package:
name: rustup
# - name: Devel - Rust - Install toolchains
# ansible.builtin.command:
# cmd: "rustup toolchain install {{ item }}"
# loop:
# - stable
# - nightly
- name: Devel - Rust - Use nightly toolchain by default
ansible.builtin.command:
cmd: rustup default nightly
- name: VSCode - Rust
tags: lang_rust
when: user_vscode and user_lang_rust
block:
- name: VSCode - Rust - Configure VS Code
ansible.builtin.shell: |
PATH=/usr/local/bin:/opt/homebrew/bin:$PATH
code --install-extension rust-lang.rust-analyzer