You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried using rust-lzma on my Raspberry Pi (Debian Jessie armhf), but unfortunately, it doesn't work, it always fails when writing with "Unsupported compression options".
My example:
externcrate lzma;use lzma::LzmaWriter;use std::io::prelude::*;use std::fs::File;fnmain(){let f = File::create("foo.xz").unwrap();letmut f = LzmaWriter::new_compressor(f,6).unwrap();matchwrite!(f, "It's a small world!"){Ok(_) => println!("ok"),Err(err) => panic!("error writing: {}", err)}
f.finish().unwrap();}
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Error { repr: Custom(Custom { kind: Other, error: Options }) }', ../src/libcore/result.rs:746
...
I've tried using 0, 6, and 9 as compression preset, no difference. I've looked into your code, but I couldn't find any clue what could be wrong.
It works on Debian Jessie x86_64 though.
Thanks
The text was updated successfully, but these errors were encountered:
I've tried using rust-lzma on my Raspberry Pi (Debian Jessie armhf), but unfortunately, it doesn't work, it always fails when writing with "Unsupported compression options".
My example:
When run, I get:
Also, all tests fail on the same error:
I've tried using 0, 6, and 9 as compression preset, no difference. I've looked into your code, but I couldn't find any clue what could be wrong.
It works on Debian Jessie x86_64 though.
Thanks
The text was updated successfully, but these errors were encountered: