Skip to content

Add c-ares feature support for curl-sys/curl - #647

Open
plv1313 wants to merge 4 commits into
sagebind:mainfrom
plv1313:feat/c-ares-static-curl
Open

plv1313 wants to merge 4 commits into
sagebind:mainfrom
plv1313:feat/c-ares-static-curl

Conversation

@plv1313

@plv1313 plv1313 commented Apr 1, 2026 •

Copy link
Copy Markdown

This PR adds a new c-ares feature and wires it through both crates.

Included changes:

  • Added c-ares feature in curl and curl-sys.
  • Enabled c-ares in vendored/static builds (static-curl + c-ares).
  • Added c-ares detection for build dependencies:
    • pkg-config on non-Windows
    • vcpkg on MSVC
  • Made c-ares without static-curl require a system libcurl that was built with c-ares (explicit failure otherwise).
  • Updated README with c-ares behavior and requirements.

@plv1313 plv1313 changed the title Add c-ares feature for static libcurl builds Add c-ares feature support for curl-sys/curl Apr 2, 2026
@plv1313 plv1313 closed this Apr 6, 2026
@plv1313 plv1313 reopened this Apr 6, 2026
@plv1313

plv1313 commented Apr 8, 2026

Copy link
Copy Markdown
Author

@alexcrichton would love your feedback on that

@alexcrichton

Copy link
Copy Markdown
Collaborator

Sorry, but I do not have the bandwidth/time to review major new features to this crate like this.

@plv1313

plv1313 commented Apr 10, 2026

Copy link
Copy Markdown
Author

@alexcrichton no worries thanks for the reply. Maybe @sagebind if you have time.

@plv1313
plv1313 force-pushed the feat/c-ares-static-curl branch from 9c6871f to 75aacb2 Compare October 26, 2026 20:37

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants