Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Build fails #32

Closed
chrstn-hntschl opened this issue Oct 9, 2020 · 5 comments
Closed

Build fails #32

chrstn-hntschl opened this issue Oct 9, 2020 · 5 comments

Comments

@chrstn-hntschl
Copy link

The provided cargo install signal-backup-decode fails with

error[E0658]: non-builtin inner attributes are unstable
 --> /usr/local/cargo/registry/src/github.heygears.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
Copy link
Owner

pajowu commented Oct 9, 2020

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

@pajowu
Copy link
Owner

pajowu commented Oct 9, 2020

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
Copy link
Owner

pajowu commented Oct 9, 2020

Version 0.2.1 is now uploaded to crates.io

@pajowu pajowu closed this as completed Oct 9, 2020
@chrstn-hntschl
Copy link
Author

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
Copy link
Owner

pajowu commented Oct 9, 2020

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants