-
Notifications
You must be signed in to change notification settings - Fork 0
hi from rust-c-ares! #2
Comments
The reasons are:
I prefer to use the original crates if reason 2 and reason 3 could be resolved. |
I'm not particularly attached to metadeps and I don't see anyone else using it these days. Is there a good reason to get rid of it? If so I'd likely accept a merge request basically reverting dimbleby/rust-c-ares#27 similar for winapi - I'd likely accept a merge request updating this code to use windows-sys instead support for very old versions of libcares is probably more awkward (and 1.12.0 really is very old). If you want 2016's libcares and 2023's rust code, there's an obvious tension!
|
The other option would be switch to system-deps, which is used by GTK bindings.
The reason to support old versions of c-ares is that many distros we support such as RHEL 8 or Debian 10, still stick to them. Those distros will provide security bug fixes via package managers, so we can avoid to publish new versions when libc-ares need to be fixed. In order to support multiple versions of libc-ares, we can check the version in build.rs and use explicit cfg flags to enable the new APIs, just like openssl. But as the API is much simpler, it will be easier to use feature flags. In addition to that, a |
I'm not particularly fussed about system-deps or not, either way is probably fine by me I might get round to removing metadeps and updating the windows dependency in due course: if you want to get there faster than that, then merge requests are welcome. If left alone, I'm unlikely to add feature flags and suchlike for support of older libcares. So if you're happy with the status quo, it probably won't happen. But if you are motivated to drive this work then I'd expect to be willing to merge it. |
I will try the openssl way once I have time. |
Hey,
I chanced across these forks on crates.io while publishing new versions of c-ares crates; and I guess I'm just curious as to what they're for?! I only looked very briefly, but I didn't yet understand how they were meaningfully different from the originals - perhaps you have plans?
Per the licensing, you are of course welcome to do whatever you like with my code - I am happy that someone is finding it useful.
If you have improvements that would be generally worthwhile, do please consider sending me merge requests...
Thanks!
The text was updated successfully, but these errors were encountered: