sstadick / crabz

Like pigz, but rust
The Unlicense
334 stars 13 forks source link

Fails to build without the snap feature enabled #25

Closed Shnatsel closed 8 months ago

Shnatsel commented 1 year ago

cargo auditable install crabz --no-default-features --features=deflate_rust results in the following error:

error[E0599]: no variant or associated item named `Snap` found for enum `Format` in the current scope
   --> /home/shnatsel/.cargo/registry/src/github.com-1ecc6299db9ec823/crabz-0.8.1/src/main.rs:264:21
    |
150 | enum Format {
    | ----------- variant or associated item `Snap` not found for this enum
...
264 |             Format::Snap => ("sz", string_set!["sz", "snappy"]),
    |                     ^^^^ variant or associated item not found in `Format`

For more information about this error, try `rustc --explain E0599`.
sstadick commented 1 year ago

yep, that's a bug! I'll work out a fix before pushing a release for https://github.com/sstadick/crabz/pull/24