devel: Add rust setup
This commit is contained in:
parent
114ae08921
commit
e53e80925b
1 changed files with 28 additions and 1 deletions
|
|
@ -77,7 +77,7 @@
|
||||||
PATH=/usr/local/bin:/opt/homebrew/bin:$PATH
|
PATH=/usr/local/bin:/opt/homebrew/bin:$PATH
|
||||||
code --install-extension ms-python.python
|
code --install-extension ms-python.python
|
||||||
|
|
||||||
# VC Code - Golang Development Tools
|
# VS Code - Golang Development Tools
|
||||||
# https://golang.org/doc/install
|
# https://golang.org/doc/install
|
||||||
- name: Devel - Golang - Setup Environment
|
- name: Devel - Golang - Setup Environment
|
||||||
tags: lang_golang
|
tags: lang_golang
|
||||||
|
|
@ -136,3 +136,30 @@
|
||||||
ansible.builtin.shell: |
|
ansible.builtin.shell: |
|
||||||
PATH=/usr/local/bin:/opt/homebrew/bin:$PATH
|
PATH=/usr/local/bin:/opt/homebrew/bin:$PATH
|
||||||
code --install-extension james-yu.latex-workshop
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue