The integration of reqwest is pretty good at the moment, but I found that it doubles the space required for a simple program because it has a lot of dependencies.
Two cargo features, download-system and download-reqwest , could be added to allow choosing between them.
Each platform already has its own download tool, such as curl or wget. If self-update can automatically select and use them, there are two advantages:
- Reduce binary size
- Suppoert system proxy via ENV: HTTP_PROXY=http://proxy.example.com
If these library are implemented, it may be possible to import it for use.