From 9857c8eb00ea135ce1ef90d01eeccaaabde11ee7 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Wed, 17 Jul 2024 09:41:41 +0300 Subject: [PATCH] feat(asdf): move rust to asdf --- config/asdf/cargo-packages | 21 +++++++++++++++++++++ config/asdf/plugin-versions | 1 + config/asdf/tool-versions | 1 + config/exports-apps | 1 + local/bin/dfm | 2 +- 5 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 config/asdf/cargo-packages diff --git a/config/asdf/cargo-packages b/config/asdf/cargo-packages new file mode 100644 index 0000000..73136a5 --- /dev/null +++ b/config/asdf/cargo-packages @@ -0,0 +1,21 @@ +// A cargo subcommand for checking and applying +// updates to installed executables +cargo-update +// Cargo cache management utility +cargo-cache +// An incremental parsing system for programming tools +tree-sitter-cli +// a subprocess caching utility +bkt +// a structural diff that understands syntax +difftastic +// A simple, fast and user-friendly alternative to 'find' +fd-find +// recursively searches directories for a +// regex pattern while respecting your gitignore +ripgrep +// A version manager for neovim +bob-nvim +// bottom, btm - A cross-platform graphical process/system monitor with +// a customizable interface and a multitude of features. +bottom diff --git a/config/asdf/plugin-versions b/config/asdf/plugin-versions index e56f9a9..88e3a5a 100644 --- a/config/asdf/plugin-versions +++ b/config/asdf/plugin-versions @@ -15,6 +15,7 @@ nodejs https://github.com/asdf-vm/asdf-nodejs.git pipx https://github.com/yozachar/asdf-pipx.git 31db618 pre-commit https://github.com/jonathanmorley/asdf-pre-commit.git 26bfc42 ripgrep https://gitlab.com/wt0f/asdf-ripgrep.git e836665 +rust https://github.com/code-lever/asdf-rust.git 95acf4f semgrep https://github.com/brentjanderson/asdf-semgrep.git 13ff78b shellcheck https://github.com/luizm/asdf-shellcheck.git 780d78d shfmt https://github.com/luizm/asdf-shfmt.git a42c5ff diff --git a/config/asdf/tool-versions b/config/asdf/tool-versions index 8bc5d9e..006289c 100644 --- a/config/asdf/tool-versions +++ b/config/asdf/tool-versions @@ -16,6 +16,7 @@ nodejs 22.4.1 pipx 1.6.0 pre-commit 3.7.1 ripgrep 14.1.0 +rust 1.79.0 semgrep system shellcheck 0.10.0 shfmt 3.8.0 diff --git a/config/exports-apps b/config/exports-apps index 1f6688b..c8098a0 100755 --- a/config/exports-apps +++ b/config/exports-apps @@ -34,6 +34,7 @@ export ASDF_NODEJS_LEGACY_FILE_DYNAMIC_STRATEGY="latest_available" export ASDF_NPM_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/npm-packages" export ASDF_GOLANG_MOD_VERSION_ENABLED=true export ASDF_GOLANG_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/golang-packages" +export ASDF_CRATE_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/cargo-packages" export PATH="${ASDF_DIR}/bin:${PATH}" # bob manages nvim versions diff --git a/local/bin/dfm b/local/bin/dfm index 5f8bb3d..73c4e96 100755 --- a/local/bin/dfm +++ b/local/bin/dfm @@ -65,7 +65,7 @@ function section_install $0 install asdf # $0 install ohmybash # $0 install pip - $0 install cargo + # $0 install cargo $0 install composer # $0 install dotenv $0 install fzf