rust-synapse-compress-state icon indicating copy to clipboard operation
rust-synapse-compress-state copied to clipboard

How do I start the synapse-compress-state script?

Open rubo77 opened this issue 4 years ago • 1 comments

Please add detailed information to the README for someone, who has never used rust before, how to start the script:

build this rust script

  1. 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)

  2. clone this repo

    git clone https://github.com/matrix-org/
    cd rust-synapse-compress-state
    
  3. configure the current shell

    source $HOME/.cargo/env
    
  4. build the script

    cargo build
    

Now you can run the script in target/debug/synapse-compress-state

rubo77 avatar Nov 08 '19 19:11 rubo77

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

rubo77 avatar Nov 09 '19 07:11 rubo77