Skip to content

Releases: alexcrichton/curl-rust

Improved Unix socket support

23 Jul 00:22
Compare
Choose a tag to compare

Added

  • Add proxy_cacert, which completes the bindings for proxy SSL options. (#160, #344)
  • Update bundled libcurl build configuration to enable support for Unix sockets automatically on Unix platforms. (#297, #309, #346)
  • Add unix_socket_path that exposes more Unix socket control than the existing unix_socket method. (#347)
  • Expose CURLOPT_CONNECT_TO via connect_to, which allows you to override the socket address that requests are made to. (#348)

Dependencies

  • Bump bundled libcurl version to 7.71.1. (#343, #345)

0.4.30

24 Jun 03:15
Compare
Choose a tag to compare

Fixed

  • Fix a safety hole in Multi::close and hide it from docs. This method previously would free the underlying CURLM pointer without consuming the Multi struct, making it possible to cause a use-after-free in safe code. This function now simply returns Ok(()) in order to maintain backwards compatibility, but will be either changed or removed in a future breaking release. (#340, #342)

Added

  • Add bindings for setting SSL/TLS options for proxies: proxy_cainfo, proxy_sslcert, and proxy_sslkey. (#339)
  • Add HttpVersion::V3 to accomodate for future HTTP/3 support. (#331)

Changed

  • Mitigate a race condition that can occur when libcurl is first initialized with certain TLS engine versions on a thread other than the main thread by attempting to initialize in a constructor function automatically. This should reduce the likelihood of the misuse occurring on most targets. (#333, #334)