Repository: shssoichiro/oxipng (language: rust)

Issue:
Any way to disable "binary" feature by default?
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?

```toml
oxipng = { version = "8.0", features = ["parallel", "zopfli", "filetime"], default-features = false }
```


Discussion / hints:
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.

Fix patch:
diff --git a/README.md b/README.md
index d2e7262e..04189a9c 100644
--- a/README.md
+++ b/README.md
@@ -115,6 +115,11 @@ method of usage involves creating an
 passing it, along with an input filename, into the
 [optimize function](https://docs.rs/oxipng/3.0.1/oxipng/fn.optimize.html).
 
+It is recommended to disable the "binary" feature when including oxipng as a library. Currently, there is
+no simple way to just disable one feature in Cargo, it has to be done by disabling default features
+and specifying the desired ones, for example:
+`oxipng = { version = "8.0", features = ["parallel", "zopfli", "filetime"], default-features = false }`
+
 ## History
 
 Oxipng began as a complete rewrite of the OptiPNG project,
diff --git a/README.template.md b/README.template.md
index 265e9f9b..6f14ed8d 100644
--- a/README.template.md
+++ b/README.template.md
@@ -75,6 +75,11 @@ method of usage involves creating an
 passing it, along with an input filename, into the
 [optimize function](https://docs.rs/oxipng/3.0.1/oxipng/fn.optimize.html).
 
+It is recommended to disable the "binary" feature when including oxipng as a library. Currently, there is
+no simple way to just disable one feature in Cargo, it has to be done by disabling default features
+and specifying the desired ones, for example:
+`oxipng = { version = "8.0", features = ["parallel", "zopfli", "filetime"], default-features = false }`
+
 ## History
 
 Oxipng began as a complete rewrite of the OptiPNG project,


Test patch: