add rust setup

This commit is contained in:
R.J. 2025-02-02 19:22:10 +01:00
parent b09bd5fa62
commit 1fdf0a1f3f
3 changed files with 15 additions and 0 deletions

2
.config/fish/config.fish Normal file
View file

@ -0,0 +1,2 @@
fish_add_path /root/.cargo/bin/

View file

@ -16,7 +16,13 @@ RUN apk add --no-cache \
lazygit \ lazygit \
most \ most \
k9s \ k9s \
bash \
curl \
cargo \
git git
RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
RUN cargo binstall --strategies crate-meta-data jj-cli
# Set the entrypoint to fish # Set the entrypoint to fish
ENTRYPOINT ["fish"] ENTRYPOINT ["fish"]

7
setup_langs/rust.sh Normal file
View file

@ -0,0 +1,7 @@
#!/usr/bin/bash
apk add --no-cache \
rust \
cargo \
rust-analyzer \
clippy