Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoder auto-detection #258

Open
Turbo87 opened this issue Jan 24, 2024 · 1 comment
Open

Decoder auto-detection #258

Turbo87 opened this issue Jan 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Turbo87
Copy link

Turbo87 commented Jan 24, 2024

I have a use-case where I don't know the compression of a file up-front. It would be nice if there was a way to use this crate to figure out the compression algorithm based on the magic number at the beginning of the compressed file.

@robjtede robjtede added the enhancement New feature or request label Jan 25, 2024
@NobodyXu
Copy link
Collaborator

A PR is welcomed, I am aware of crates doing such thing (IIRC it's called file-format, it has many breaking releases due to the enum), but just not sure whether it can be trusted for such use case.

Maybe we should build a generic one, that enables user to plug in their own implementation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants