Skip to content

Support curl/wget instead of reqwest to support system proxy/reduce binary size #146

@mokeyish

Description

@mokeyish

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:

  1. Reduce binary size
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions