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
@@ -35,6 +35,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
# History: none for root, near-unlimited otherwise (zsh has no -1 = unlimited).
if [[ $EUID == 0 ]] ; then
HISTSIZE=0