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

Any way to disable "binary" feature by default? #519

Closed
nyurik opened this issue Jun 13, 2023 · 1 comment · Fixed by #528
Closed

Any way to disable "binary" feature by default? #519

nyurik opened this issue Jun 13, 2023 · 1 comment · Fixed by #528

Comments

@nyurik
Copy link

nyurik commented Jun 13, 2023

I suspect many oxipng lib users do not realize they are including many unneeded dependencies like clap because oxipng enables "binary" feature by default. Is there a way to make it optional, or at least place a this at the top of the readme somewhere?

oxipng = { version = "8.0", features = ["parallel", "zopfli", "filetime"], default-features = false }
@shssoichiro
Copy link
Owner

Unfortunately disabling a default feature isn't currently supported by Cargo, you would have to do it with the method you specified. Adding this to the readme probably does make sense.

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

Successfully merging a pull request may close this issue.

2 participants