pajowu / signal-backup-decode

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

Build fails #53

Open winst0nsmith opened 2 years ago

winst0nsmith commented 2 years ago

similar to issue #32 ? while installing on arch from the aur repos, i get this error:

error: custom inner attributes are unstable --> src/Backups.rs:9:4 9 #![rustfmt::skip] ^^^^^^^^^^^^^

= note: #[deny(soft_unstable)] on by default = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #64266 https://github.com/rust-lang/rust/issues/64266

warning: unused variable: key_value --> src/output_csv.rs:101:32 101 fn write_key_value(&mut self, key_value: &crate::Backups::KeyValue) -> Result<(), anyhow::Error>{ ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _key_value
   = note: `#[warn(unused_variables)]` on by default

warning: unused variable: key_value --> src/output_none.rs:72:32 | 72 | fn write_key_value(&mut self, key_value: &crate::Backups::KeyValue) -> Result<(), anyhow::Error>{ | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _key_value

warning: unused variable: key_value --> src/output_raw.rs:247:32 | 247 | fn write_key_value(&mut self, key_value: &crate::Backups::KeyValue) -> Result<(), anyhow::Error>{ | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _key_value

warning: signal-backup-decode (bin "signal-backup-decode") generated 3 warnings error: could not compile signal-backup-decode due to previous error; 3 warnings emitted

i am new to rust, and not so great a decoding compiler issues anyhow. but i believe the warnings are somewhat innocuous. it's the original error, the message about "unstable attributes" that is the problem, right? i followed the referenced link, but the info there is way beyond my understanding.

any thoughts on how to fix? trying to import my signal messages to sms on android so i can import to imessage...why be so difficult signal devs?!? lol

running rust 1.59.0

thanks,

winston smith

Noorquacker commented 2 years ago

As someone who also uses Arch, I personally don't like using Arch's built-in stuff for Rust. It looks like the AUR package isn't maintained by pajowu, so if you really want the AUR package to work, you'd have to talk to the AUR package maintainer about that. The way that Rust is officially installed is with rustup, a script you run at https://rustup.rs. Once you run that script, you get cargo, the Rust package manager. From there, it's just cargo install signal-backup-decode and it works like a charm, at least on my machine ;)