rust-synapse-compress-state
rust-synapse-compress-state copied to clipboard
How do I start the synapse-compress-state script?
trafficstars
Please add detailed information to the README for someone, who has never used rust before, how to start the script:
build this rust script
-
install Rust
-
on Debian 10:
sudo apt install cargo -
or manual rust install (min needed rust version 1.27)
Make sure to have at least 2GB free diskspace, then:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh`(choose default if asked)
-
-
clone this repo
git clone https://github.com/matrix-org/ cd rust-synapse-compress-state -
configure the current shell
source $HOME/.cargo/env -
build the script
cargo build
Now you can run the script in target/debug/synapse-compress-state
rust is quite large. On my synapse mashine I don't want to have 2GB rust hanging around, maybe you can use a minimal install for rust too? like https://github.com/lambci/lambci/blob/master/home/init/rust