How do I install packages with Rust?

no one’s asking for a workaround, but here’s one anyway: install a whole separate copy of rust in a location where we do have permissions.

export RUSTUP_HOME=/tmp/rustup
export CARGO_HOME=/tmp/cargo
export CARGO_TARGET_DIR=/tmp/target
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

bad idea, if Glitch has to recompile dependencies on cold start

but it would have to do that for Node.js too, so maybe that’s not too bad

1 Like