pajowu / signal-backup-decode

Decode Signal Backups
GNU General Public License v3.0
217 stars 18 forks source link

Build fails #32

Closed chrstn-hntschl closed 4 years ago

chrstn-hntschl commented 4 years ago

The provided cargo install signal-backup-decode fails with

error[E0658]: non-builtin inner attributes are unstable
 --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-2.18.0/src/descriptor.rs:9:1
  |
9 | #![rustfmt::skip]
  | ^^^^^^^^^^^^^^^^^
  |
  = note: for more information, see https://github.com/rust-lang/rust/issues/54726

I assume this error is not in signal-backup-decode, but maybe the protobuf dependency needs to be updated? I am trying to build under debian stretch.

pajowu commented 4 years ago

What version of rust are you using (Output of rustc --version)

pajowu commented 4 years ago

I downgraded the protobuf version, currently checking that everything works. If it does I will upload a new version to crates and post here again

pajowu commented 4 years ago

Version 0.2.1 is now uploaded to crates.io

chrstn-hntschl commented 4 years ago

Thanks - does work now! Here is a Dockerfile to build with all necessary depenencies:

FROM rust:1.42.0-slim-stretch

# Ignore APT warnings about not having a TTY
ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && apt-get install -qq -y --no-install-recommends \
    libssl-dev pkg-config libsqlite3-dev

RUN cargo install signal-backup-decode

ENTRYPOINT ["signal-backup-decode"]
CMD ["--help"]
pajowu commented 4 years ago

Oh nice. If you want you can open a Pull Request to add that dockerfile. I'd be happy to merge that