From 9e3aaf33678ba6cf3bbd2bc33c3a98564bb6ad92 Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Fri, 20 Mar 2026 12:33:48 +0100 Subject: [PATCH] devel: Add rust setup --- tasks/devel.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/tasks/devel.yml b/tasks/devel.yml index 75faadb..8e0beb4 100644 --- a/tasks/devel.yml +++ b/tasks/devel.yml @@ -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