Giter VIP home page Giter VIP logo

Comments (4)

alexcrichton avatar alexcrichton commented on May 29, 2024

I've thought that it would be pretty easy in the past to support both miniz and zlib as a backend, and I'd be more than willing to accept a PR for that!

Did you run into problems with miniz, however? I'm curious what its limitations are.

from flate2-rs.

alexcrichton avatar alexcrichton commented on May 29, 2024

Actually I was interested in implementing this, so I went ahead and did so!

2709c8e

from flate2-rs.

kali avatar kali commented on May 29, 2024

well... this is just great :)

I have had several issues with flate2 due — i think — in part to miniz. zlib being very robust, people do all kind of weird things with their compressed files. Last year, it was a .gz made by concatenating several .gz together. Not in the standard, but zlib accepts it, so everybody does it.

This time it was a deflate-d file that was breaking for some unknown reason. In both occurrences, I had to ressort to piped external process to read the files.

So... thanks a lot.

from flate2-rs.

kali avatar kali commented on May 29, 2024

FYI, I was wrong, it was not a miniz problem, merely confusing filenames. The files I'm getting are called "deflate" but are actually using the small zlib header. Obviously I was using "deflate_decode()" where I should just have been using the "zlib_decode()".

As my external process, it was just detecting the header and picking the right encapsulation...

A good way to waste time.

from flate2-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.