feat(install): Rust toolchain via rustup, cargo env sourced by the rc files

install_rust(): official rustup script as the user (stable, default profile,
--no-modify-path), rustup update on a re-run, rust-analyzer + rust-src added.
libssl-dev (apt) / openssl@3 (brew) for openssl-sys crates. bashrc-linux,
bashrc-osx and zshrc-osx source ~/.cargo/env when present. README, CHANGELOG,
CLAUDE.md, TODO plan.
This commit is contained in:
bchanot committed 2026-10-12 23:35:39 +02:00
1 parent f825caf094
commit 7d62da44b0
8 files changed
+59 -6

No files matched your search

+6
View File
@@ -16,6 +16,12 @@ case ":$PATH:" in
*) export PATH="$HOME/.local/bin:$PATH" ;;
esac
# Rust toolchain (install.sh, rustup): puts ~/.cargo/bin on PATH, dedup done by the env file.
if [ -f "$HOME/.cargo/env" ]; then
# shellcheck source=/dev/null
. "$HOME/.cargo/env"
fi
# Rootless Docker (install.sh offer): tools that ignore the CLI context (docker-py,
# testcontainers...) need DOCKER_HOST; only set when the user daemon's socket exists.
if [ -S "${XDG_RUNTIME_DIR:-/run/user/$(id -u)}/docker.sock" ]; then