alexcrichton / curl-rust

Rust bindings to libcurl
MIT License
1k stars 234 forks source link

support for libcurl's url parsing? #442

Open jleverenz opened 2 years ago

jleverenz commented 2 years ago

Is there interest in supporting the URL parsing functionality of later libcurls? https://curl.se/libcurl/c/libcurl-url.html

I'd be happy to share some initial work toward support, with a caveat that I'm using it to learn rust along the way.

sagebind commented 2 years ago

I'm not sure what the advantage of using that API would be over using something native such as the url crate.

This does run into the problem though of backwards compatibility -- we support curl versions older than 7.62.0 so this API, if added, would have to be an opt-in feature.

jleverenz commented 2 years ago

Good point, and not knowing how consuming projects are using curl-rust, I don't have a great answer other than a more complete binding for curl's functionality. This thread on the hurl project got me looking into it, but mostly out of curiosity.

Agreed, it'd have to be opt-in.