pajowu / signal-backup-decode

Decode Signal Backups
GNU General Public License v3.0
212 stars 17 forks source link

error[E0063]: missing field `customize` in initializer of `protoc_rust::Args<'_>` #2

Closed minnmann closed 6 years ago

minnmann commented 6 years ago

Hi there,

Thank you for developing and offering a tool to export Signal backups!

Unfortunately, I get the error below when trying to compile/install it. My system is an Ubuntu 16.04. I installed protobuf-compiler in version 2.6.1-1.3. I also tried to compile it on a Windows 10 machine, which leads to the same error.

Probably, I just made some minor mistake. But since I have no experience in Rust development, I would appreciate any help to solve this issue! Thanks a lot! :)

~$ cargo install signal-backup-decode
    Updating registry `https://github.com/rust-lang/crates.io-index`
  Installing signal-backup-decode v0.1.1                                        
   Compiling bitflags v1.0.3
   Compiling hex v0.3.2
   Compiling rust-ini v0.11.0
   Compiling strsim v0.7.0
   Compiling byteorder v1.2.3
   Compiling ansi_term v0.11.0
   Compiling unicode-width v0.1.4
   Compiling protobuf v1.6.0
   Compiling rustc-demangle v0.1.8
   Compiling lazy_static v1.0.0
   Compiling foreign-types-shared v0.1.1
   Compiling gcc v0.3.54
   Compiling cfg-if v0.1.3
   Compiling rustc-serialize v0.3.24
   Compiling cc v1.0.15
   Compiling libc v0.2.40
   Compiling remove_dir_all v0.5.1
   Compiling pkg-config v0.3.11
   Compiling vec_map v0.8.1
   Compiling openssl v0.10.7
   Compiling textwrap v0.9.0
   Compiling protobuf-codegen v1.6.0
   Compiling foreign-types v0.3.2
   Compiling rust-crypto v0.2.36
   Compiling log v0.4.1
   Compiling backtrace-sys v0.1.16
   Compiling rand v0.4.2
   Compiling atty v0.2.10
   Compiling time v0.1.40
   Compiling openssl-sys v0.9.30
   Compiling sqlite3-src v0.2.9
   Compiling protoc v1.6.0
   Compiling tempdir v0.3.7
   Compiling rand v0.3.22
   Compiling tempfile v3.0.2
   Compiling clap v2.31.2
   Compiling protoc-rust v1.6.0
   Compiling backtrace v0.3.7
   Compiling signal-backup-decode v0.1.1
error[E0063]: missing field `customize` in initializer of `protoc_rust::Args<'_>`
 --> build.rs:4:19
  |
4 |     protoc_rust::run(protoc_rust::Args {
  |                      ^^^^^^^^^^^^^^^^^ missing `customize`

error: aborting due to previous error

error: failed to compile `signal-backup-decode v0.1.1`, 
intermediate artifacts can be found at `/tmp/cargo-install.lnCiqeNrucZN`

Caused by:
  Could not compile `signal-backup-decode`.

To learn more, run the command again with --verbose.
pajowu commented 6 years ago

Hello,

the mistake is not on your side. A dependency of this project was updated, which lead to this error. This is fixed in version 0.1.2, which is now on https://crates.io/crates/signal-backup-decode. Please try again with this version. I would be happy to hear again if it worked

minnmann commented 6 years ago

Hey,

thanks for the update! This version works well.

Just out of curiosity: The exported attachments miss the file extensions. Is this the intended/expected behaviour?

pajowu commented 6 years ago

Yes, this is as expected. The backup contains the type of the attachment, but only inside the sqlite database. The extension is saved nowhere and to guess it I would need to read the database which is alot of work.