2

I would like to run this Rust script on my Matrix server but it uses 1.8GB space to build it:

$ du -shc .rustup/ .cargo/ /var/www/rust-synapse-compress-state/
1,2G    .rustup/
86M     .cargo/
561M    /var/www/rust-synapse-compress-state/
1,8G    total

I found this CI script that installs Rust on AWS. Could I use this to install a minimal Rust version in my Debian VM where I am low on disk-space? What are the needed bash commands to install this package on Debian? Or is there a better solution?

Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164
rubo77
  • 27,777
  • 43
  • 130
  • 199

1 Answers1

3

Since you’re using Debian, you could use the Rust packages instead:

sudo apt install cargo

This will reduce the requirements significantly compared to the 1.2GiB taken by .rustup.

On Debian 10 this will give you Rust 1.34 which is sufficient to build rust-synapse-compress-state.

Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164