Skip to content

Compile Rust toolchain

kdtie edited this page Oct 7, 2025 · 1 revision

Install Rust compiler

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile default --no-modify-path -y

# Add ${HOME}/.cargo/bin into PATH
source ~/.ashrc

# Verify
echo $PATH
# Output should have /home/$USER/.cargo/bin
/home/tie/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Install C complier and set Rust compile flags

ss apk add build-base
stow -v cargo

Note

To use build-next-overlay after installing it, you must call stow -v --overwrite=.cargo/config.toml cargo-build-next

Clone this wiki locally