commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
4f10982ee36ff99d2ac4b552acac8115f929e74c
Kirill Bulatov
2023-10-09T13:51:11
Link with CoreServices to fix macOs curl init crash (#530) * Link curl with CoreServices * Bump the package version to prepare for the next release
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index c24cd42..88f2a3b 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.4.66+curl-8.3.0" +version = "0.4.67+curl-8.3.0" authors = ["Alex Crichton <alex@alexcrichton.com>"] links = "curl" build...
2
2
1
ff9e33f2ad9683bbe8e95e8b2ff60901c8b7e1ff
Eric Huss
2023-10-09T13:50:54
Fix suspicious_double_ref_op warning (#531)
diff --git a/tests/server/mod.rs b/tests/server/mod.rs index a474a1a..a1899ce 100644 --- a/tests/server/mod.rs +++ b/tests/server/mod.rs @@ -59,7 +59,7 @@ fn run(stream: impl Read + Write, rx: &Receiver<Message>) { let mut found = None; for header in expected_headers.iter() { ...
1
1
1
3dc087286d05b2e035b5b923c8a1ba174291e443
Louis
2023-08-21T17:14:58
Replace winapi with windows-sys (#525)
diff --git a/Cargo.toml b/Cargo.toml index 3e95157..5e70332 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ openssl-probe = { version = "0.1.2", optional = true } [target.'cfg(target_env = "msvc")'.dependencies] schannel = "0.1.13" -winapi = { version = '0.3', features = ['libloaderapi', 'wincrypt'] } +w...
4
11
16
16e7f87140467737344acdb56da488cf6c50e7ce
Jean-Christophe Amiel
2023-08-10T15:13:27
Fix semantic of `HttpVersion::V3` for libcurl >= 7.88.0 (#521) CURL_HTTP_VERSION_3, introduced in curl 7.66.0, has changed with curl 7.88.0. Prior 7.88.0, CURL_HTTP_VERSION_3 implies no fallback if error; since 7.88.0, CURL_HTTP_VERSION_3 can fallback to HTTP/1 or HTTP/2. There is a new flag CURL_HTTP_VERSION_3_ONLY...
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index d0e9aa6..46a51a3 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -660,7 +660,7 @@ pub const CURL_HTTP_VERSION_2TLS: c_int = 4; /// Please use HTTP 2 without HTTP/1.1 Upgrade /// (Added in CURL 7.49.0) pub const CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE: c_int = 5;...
2
5
6
ff6ad21cc1034826b2ab3f8be0653d8c446e1bdc
Eric Huss
2023-07-27T21:04:03
Silence dropping_references lint. (#514)
diff --git a/src/easy/handler.rs b/src/easy/handler.rs index f53896e..95e365f 100644 --- a/src/easy/handler.rs +++ b/src/easy/handler.rs @@ -112,7 +112,7 @@ pub trait Handler { /// `transfer` method and then using `read_function` to configure a /// callback that can reference stack-local data. fn read(&m...
1
4
4
431babf1dffe205641793353d3d57fdd36fe8534
Weihang Lo
2023-06-12T18:27:52
feat: add three more curl multi options (#505) * feat: new curlmopt * feat: method for setting max concurrent streams for http2 * test: skip newly added consts
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index ee6a1de..d0e9aa6 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -998,6 +998,9 @@ pub const CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE: CURLMoption = CURLOPTTYPE_OFF_T + pub const CURLMOPT_PIPELINING_SITE_BL: CURLMoption = CURLOPTTYPE_OBJECTPOINT + 11; pub const CURL...
3
24
0
5089f373b76b6495fd005a8573d0cb379a5661ef
Lorenzo Leonardo
2023-06-12T17:54:57
Remove mut to all getopt functions (#507) * Use CURLOPT_TIMEOUT if timeout too big If the time that was converted into millisecond is more than the capacity of c_long, it will overflow, thus we need to convert it into seconds and use CURLOPT_TIMEOUT. * Remove mut to all getopt functions There is no mutatio...
diff --git a/src/easy/handler.rs b/src/easy/handler.rs index 04df104..f53896e 100644 --- a/src/easy/handler.rs +++ b/src/easy/handler.rs @@ -2727,7 +2727,7 @@ impl<H> Easy2<H> { // /// Fetches this handle's private pointer-sized piece of data. // /// // /// This corresponds to `CURLINFO_PRIVATE` and defa...
1
34
34
746d702c9b65532f52f0c8157bf67e7dcf442669
Scott Robinson
2023-06-12T16:01:06
Only update the curl submodule (#504) Running `git submodule update --init` will trigger and update on all submodules including those in any repository that depends on curl-sys. This will break builds on partial checkouts.
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index aae0ac6..285ab57 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -39,7 +39,7 @@ fn main() { if !Path::new("curl/.git").exists() { let _ = Command::new("git") - .args(&["submodule", "update", "--init"]) + .args(&["su...
1
1
1
05641302d20a3b3ba98d8af155935a8296054c76
Alex Gaynor
2023-06-12T16:00:12
Fix compilation with specified minimal versions (#503) Verified with `cargo +nightly test -Zminimal-versions`.
diff --git a/Cargo.toml b/Cargo.toml index bf28371..3e95157 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ socket2 = "0.5.0" # Unix platforms use OpenSSL for now to provide SSL functionality [target.'cfg(all(unix, not(target_os = "macos")))'.dependencies] -openssl-sys = { version = "0.9.43", optional = ...
2
2
2
c58a6cc622836c69bea3a8f4521e1512aad1a166
Lorenzo Leonardo
2023-05-11T23:17:28
Use CURLOPT_TIMEOUT if timeout too big (#495) If the time that was converted into millisecond is more than the capacity of c_long, it will overflow, thus we need to convert it into seconds and use CURLOPT_TIMEOUT.
diff --git a/src/easy/handler.rs b/src/easy/handler.rs index 3b1b34d..04df104 100644 --- a/src/easy/handler.rs +++ b/src/easy/handler.rs @@ -1925,10 +1925,15 @@ impl<H> Easy2<H> { /// By default this option is not set and corresponds to /// `CURLOPT_TIMEOUT_MS`. pub fn timeout(&mut self, timeout: Duratio...
2
39
4
f10612bdff4337774731488e62c50f8998bbceed
Lorenzo Leonardo
2023-05-11T15:10:03
Use CURLOPT_CONNECTTIMEOUT if timeout too big (#497) If the time that was converted into millisecond is more than the capacity of c_long, it will overflow, thus we need to convert it into seconds and use CURLOPT_CONNECTTIMEOUT.
diff --git a/src/easy/handler.rs b/src/easy/handler.rs index c602ff9..3b1b34d 100644 --- a/src/easy/handler.rs +++ b/src/easy/handler.rs @@ -1,4 +1,5 @@ use std::cell::RefCell; +use std::convert::TryFrom; use std::ffi::{CStr, CString}; use std::fmt; use std::io::{self, SeekFrom, Write}; @@ -2048,8 +2049,15 @@ impl<...
2
42
4
5d7b44c9d7a52aa123b104cabacd6a6bece26cde
Niels Sascha Reedijk
2023-05-08T15:13:51
Update socket2 dependency to the 0.5.x version (previously 0.4.x) (#494)
diff --git a/Cargo.toml b/Cargo.toml index 5fbe3a4..bf28371 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ appveyor = { repository = "alexcrichton/curl-rust" } [dependencies] libc = "0.2.42" curl-sys = { path = "curl-sys", version = "0.4.59", default-features = false } -socket2 = "0.4.0" +socket2 = "0.5....
1
1
1
c9201821ddbe8405eecc1e9896e25ec70b7287fb
Niels Sascha Reedijk
2023-05-08T15:07:09
curl-sys: remove Haiku cross-compilation workaround (#496) Previously, there were issues cross-compiling the curl library from source on the Haiku platform. That meant that a workaround was added to `build.rs` to always link to the shared library in that case. When testing for the current build, this workaround is ...
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 332fe9e..1b621d5 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -5,7 +5,6 @@ use std::process::Command; fn main() { println!("cargo:rerun-if-changed=curl"); - let host = env::var("HOST").unwrap(); let target = env::var("TARGET").unwrap(...
1
0
8
ce691200f3ea315889da5b1dbd202db6c2f804b8
Eric Huss
2023-03-20T14:34:30
Fix some documentation links (#489)
diff --git a/src/easy/handler.rs b/src/easy/handler.rs index c0924f1..c602ff9 100644 --- a/src/easy/handler.rs +++ b/src/easy/handler.rs @@ -2631,17 +2631,13 @@ impl<H> Easy2<H> { /// /// You'll find more details about cipher lists on this URL: /// - /// https://www.openssl.org/docs/apps/ciphers.html ...
1
4
12
386e2c4429ec93803c27fe8eaa19c2b95c8bbfe9
Lars Persson
2023-02-02T13:10:12
Expose the POST redirection setting (#286) Change-Id: Ib094f5480f7571255c50f9a7d05fa3102df74e27
diff --git a/src/easy/handle.rs b/src/easy/handle.rs index 4ef8c80..737bc7c 100644 --- a/src/easy/handle.rs +++ b/src/easy/handle.rs @@ -10,7 +10,7 @@ use curl_sys; use libc::c_void; use crate::easy::handler::{self, InfoType, ReadError, SeekResult, WriteError}; -use crate::easy::handler::{Auth, NetRc, ProxyType, Ss...
3
82
3
51a086501dc19a2d713b4cec509b62035e969e14
Lars Persson
2023-02-02T13:06:31
Add option flags for CURLOPT_POSTREDIR (#286) Change-Id: I3d4d71c9c4de8df87fed8903db66417c83132a7b
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index 5856dab..b12e83f 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -715,6 +715,12 @@ pub const CURL_FORMADD_INCOMPLETE: CURLFORMcode = 5; pub const CURL_FORMADD_ILLEGAL_ARRAY: CURLFORMcode = 6; pub const CURL_FORMADD_DISABLED: CURLFORMcode = 7; +pub const CUR...
1
6
0
b50c5d355aab69483752db51815c5a679b29d6c4
Lorenzo Leonardo
2022-11-17T15:28:41
Added HTTP Auto authentication. (#477) This is a combination of CURLAUTH_BASIC, CURLAUTH_DIGEST, CURLAUTH_GSSNEGOTIATE and CURLAUTH_NTLM.
diff --git a/src/easy/handler.rs b/src/easy/handler.rs index 46b8eb0..2b3152d 100644 --- a/src/easy/handler.rs +++ b/src/easy/handler.rs @@ -3779,6 +3779,14 @@ impl Auth { self.flag(curl_sys::CURLAUTH_AWS_SIGV4, on) } + /// HTTP Auto authentication. + /// + /// This is a combination for CURLAUT...
1
8
0
a4958d1fe718359fd11d076c6617255d58d522b7
ETKNeil
2022-11-07T14:55:01
Add missing SSL Options (#467) * Add missing SSL Options * Add constants to systest
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index a12899a..5856dab 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -637,6 +637,10 @@ pub const CURL_IPRESOLVE_V6: c_int = 2; pub const CURLSSLOPT_ALLOW_BEAST: c_long = 1 << 0; pub const CURLSSLOPT_NO_REVOKE: c_long = 1 << 1; +pub const CURLSSLOPT_NO_PARTIALCH...
3
65
7
0162fe1dae6ead8b2e75cca2818e72df49a21eb6
Eric Huss
2022-11-02T19:38:12
Fix build error with clang (#472)
diff --git a/Cargo.toml b/Cargo.toml index 6522195..5fbe3a4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ appveyor = { repository = "alexcrichton/curl-rust" } [dependencies] libc = "0.2.42" -curl-sys = { path = "curl-sys", version = "0.4.56", default-features = false } +curl-sys = { path = "curl-sys", ...
3
3
2
a6b0f18bbf187ae0d4c4af6d3d396f74a01d6b94
FH#範輝
2022-10-08T16:33:02
support ABSTRACT_UNIX_SOCKET (#469) this PR add supports for this feature: https://curl.se/libcurl/c/CURLOPT_ABSTRACT_UNIX_SOCKET.html
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index 63d2c79..a12899a 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -605,6 +605,8 @@ pub const CURLOPT_PROXY_SSL_CIPHER_LIST: CURLoption = CURLOPTTYPE_OBJECTPOINT + pub const CURLOPT_PROXY_CRLFILE: CURLoption = CURLOPTTYPE_OBJECTPOINT + 260; pub const CURLOPT_PR...
4
27
1
9c2d8a460bd3c2c87d4db55c22ffe00883ee5d5f
jcamiel
2022-09-30T14:21:30
Add support for HTTPS proxy feature (#464) (#468)
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index 5927244..63d2c79 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -907,6 +907,7 @@ pub const CURL_VERSION_TLSAUTH_SRP: c_int = 1 << 14; pub const CURL_VERSION_NTLM_WB: c_int = 1 << 15; pub const CURL_VERSION_HTTP2: c_int = 1 << 16; pub const CURL_VERSION_UNIX...
3
9
1
055ef1b635d0c1aaf55f1a68fd7e1db9b6cd7e7b
Stephen M. Coakley
2022-07-22T01:20:20
Prepare 0.4.44 and curl-sys 0.4.56 release
diff --git a/Cargo.toml b/Cargo.toml index c4c0de4..f2dbf87 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl" -version = "0.4.43" +version = "0.4.44" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT" repository = "https://github.com/alexcrichton/curl-rust" @@ -18,7 ...
2
3
3
204c3bf6eb9644a4a138d3cf6e1ebcca7d14bb4d
Stephen M. Coakley
2022-07-19T16:03:55
Expose proxy-specific SSL options (#453) * Expose proxy-specific SSL options Expose proxy-specific versions of various SSL options for completeness. Currently we have basically all the SSL options exposed, but only a few of the proxy-specific versions. * Make rustfmt happy * Make rustfmt happy
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index fef1a01..5927244 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -377,6 +377,7 @@ pub const CURLOPTTYPE_OBJECTPOINT: CURLoption = 10_000; pub const CURLOPTTYPE_FUNCTIONPOINT: CURLoption = 20_000; pub const CURLOPTTYPE_OFF_T: CURLoption = 30_000; pub const CU...
4
301
17
2dee20b09e0687b78eab54056ad96cc6b150889f
Alex Crichton
2022-06-13T14:30:41
Run rustfmt
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index 9a55624..fef1a01 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -49,20 +49,20 @@ pub const CURL_SOCKET_BAD: curl_socket_t = !0; pub enum curl_httppost { // Note that this changed in some versions of libcurl, so we currently don't -// bind the fields as...
1
14
14
1aab372799e76aa1b33a4e324659668a83e8ac9b
MarcusCalhoun-Lopez
2022-06-13T14:30:22
Don't assume compiler is system clang on macOS (#451) On older systems, it may be necessary to use custom compiler. So respect whichever compiler user is using to build crate.
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 73d1d5a..22bce1c 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -551,7 +551,9 @@ fn curl_config_reports_http2() -> bool { } fn macos_link_search_path() -> Option<String> { - let output = Command::new("clang") + let output = cc::Build::new() +...
1
3
1
16133f713af1e5493a5141b87edb939343d7ee73
Joseph Angelo
2022-05-05T14:31:06
Expose the CURLOPT_HTTP09_ALLOWED libcurl option (#447)
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index 5bd87f0..9a55624 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -598,6 +598,8 @@ pub const CURLOPT_PROXY_SSLKEY: CURLoption = CURLOPTTYPE_OBJECTPOINT + 256; pub const CURLOPT_DOH_URL: CURLoption = CURLOPTTYPE_OBJECTPOINT + 279; pub const CURLOPT_UPLOAD_BUFFE...
4
19
0
d006f00b762ed6e89acd6010351074feabcb6ae2
Jeff Leverenz
2022-04-19T13:55:11
Add upload_size (#443) * Add integration tests for download_size * Add support for upload_size
diff --git a/src/easy/handle.rs b/src/easy/handle.rs index 6c19a41..597a1af 100644 --- a/src/easy/handle.rs +++ b/src/easy/handle.rs @@ -1164,6 +1164,12 @@ impl Easy { pub fn download_size(&mut self) -> Result<f64, Error> { self.inner.download_size() } + + /// Same as [`Easy2::upload_size`](struct...
3
107
0
3afea7309b60821f83e039408bd0160140b90f23
Alex Touchet
2022-03-12T06:35:57
Remove obsolete badge references
diff --git a/Cargo.toml b/Cargo.toml index c4c0de4..5629966 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,10 +12,6 @@ readme = "README.md" autotests = true edition = "2018" -[badges] -travis-ci = { repository = "alexcrichton/curl-rust" } -appveyor = { repository = "alexcrichton/curl-rust" } - [dependencies] lib...
2
0
8
0985c30b58f3dd724c3efdb84eda32aee7c6aaa9
Stephen M. Coakley
2022-03-12T03:49:26
Prepare 0.4.43 and curl-sys 0.4.53 release
diff --git a/Cargo.toml b/Cargo.toml index 413c699..c4c0de4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl" -version = "0.4.42" +version = "0.4.43" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT" repository = "https://github.com/alexcrichton/curl-rust" @@ -18,7 ...
2
3
3
b3a3ce876921f2e82a145d9abd539cd8f9b7ab7b
Kirill A. Korinsky
2022-02-10T15:26:57
Never try to link with `/lib/darwin` (#435) `clang --print-search-dirs` may return `libraries: =` that leads to `/lib/darwin` which may leads to attempt to find `clang_rt.osx` inside this wired path and which fails the build.
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index e9a2a42..4bdffcd 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -572,7 +572,9 @@ fn macos_link_search_path() -> Option<String> { for line in stdout.lines() { if line.contains("libraries: =") { let path = line.split('=').nth(1...
1
3
1
490ca13b20237ef3de04dc7295177a68fcd48ba1
Stephen M. Coakley
2022-02-02T14:45:46
Expose DNS-over-HTTP options (#434) * Expose DNS-over-HTTP options Expose options related to DNS-over-HTTP name resolution support. Includes a brief working example. Support for DoH is enabled in curl by default and is available as of 7.62.0. * Fix verify option datatypes * Make rustfmt happy
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index c539206..7fa354e 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -597,6 +597,7 @@ pub const CURLOPT_PROXY_CAPATH: CURLoption = CURLOPTTYPE_OBJECTPOINT + 247; pub const CURLOPT_PROXY_SSLCERT: CURLoption = CURLOPTTYPE_OBJECTPOINT + 254; pub const CURLOPT_PROXY_...
5
167
0
3e35a00d059c96e8010e7a13d1cdf848baba6575
Stephen M. Coakley
2022-01-08T01:07:39
Prepare 0.4.42 and curl-sys 0.4.52 release
diff --git a/Cargo.toml b/Cargo.toml index 82f6fc3..413c699 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl" -version = "0.4.41" +version = "0.4.42" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT" repository = "https://github.com/alexcrichton/curl-rust" @@ -18,7 ...
2
3
3
b584036a21dd2006731ef009a15f2de6d532e23b
Ziox
2022-01-04T20:29:57
Added an example for the "multi" api (#431)
diff --git a/Cargo.toml b/Cargo.toml index bb948f4..db97170 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -71,3 +71,8 @@ required-features = ["ssl"] name = "aws_sigv4" path = "examples/aws_sigv4.rs" required-features = ["static-curl", "ssl"] + +[[example]] +name = "multi-dl" +path = "examples/multi-dl.rs" +required-fe...
2
93
0
5b9b5ffe5a6e8004a4cea07d2e7fbb69e0236d4e
Stephen M. Coakley
2021-11-20T17:24:36
Prepare 0.4.41 and curl-sys 0.4.51 release
diff --git a/Cargo.toml b/Cargo.toml index b5db3c6..2624d66 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl" -version = "0.4.40" +version = "0.4.41" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT" repository = "https://github.com/alexcrichton/curl-rust" @@ -18,7 ...
2
3
3
0aea09c428b9bc2bcf46da0fc33959fe3f03c74a
Stephen M. Coakley
2021-11-17T14:26:18
Refactor init to avoid link bugs on macOS Monterey (#426) Compilation currently fails for curl on macOS Monterey due to upstream rustc issue https://github.com/rust-lang/rust/issues/90342. To make this problem hurt users less, we can work around this by avoiding the specific issue that this bug causes. To avoid the...
diff --git a/src/lib.rs b/src/lib.rs index 66c492b..2965e2b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -70,6 +70,9 @@ pub mod easy; pub mod multi; mod panic; +#[cfg(test)] +static INITIALIZED: std::sync::atomic::AtomicBool = std::sync::atomic::AtomicBool::new(false); + /// Initializes the underlying libcurl libra...
1
68
34
88b5171eb75a49445e0a8ed0007493e2f6e2920a
Stephen M. Coakley
2021-11-13T19:17:51
Guarantee that curl_multi_remove_handle is called (#423) Add a drop handler that guarantees that `curl_multi_remove_handle` is always called on easy handles added to a multi handle before the easy handle is dropped. Based on https://github.com/curl/curl/issues/7982, we should not be allowing users to drop a previously...
diff --git a/src/multi.rs b/src/multi.rs index 4e4fd02..077561a 100644 --- a/src/multi.rs +++ b/src/multi.rs @@ -58,6 +58,8 @@ pub struct Message<'multi> { /// be used via `perform`. This handle is also used to remove the easy handle /// from the multi handle when desired. pub struct EasyHandle { + // Safety: Thi...
1
49
14
24bba13c2bf64d0f5d0ecfc10c930c4085a593d7
darkprokoba
2021-11-08T15:21:10
Exposed the CURLOPT_CAINFO_BLOB libcurl option. (#420) See also https://curl.se/libcurl/c/CURLOPT_CAINFO_BLOB.html Co-authored-by: Andrey Petrov <apetrov@vmware.com>
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index c7fb047..5c9d800 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -607,6 +607,8 @@ pub const CURLOPT_ISSUERCERT_BLOB: CURLoption = CURLOPTTYPE_BLOB + 295; pub const CURLOPT_AWS_SIGV4: CURLoption = CURLOPTTYPE_OBJECTPOINT + 305; +pub const CURLOPT_CAINFO_BLO...
4
20
0
68968d6cf87f093116352952bac35bde3a999deb
Alex Crichton
2021-11-02T14:35:49
Bump crate versions
diff --git a/Cargo.toml b/Cargo.toml index 0283116..b5db3c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl" -version = "0.4.39" +version = "0.4.40" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT" repository = "https://github.com/alexcrichton/curl-rust" @@ -18,7 ...
2
3
3
10db235cc25e17fd1af6ea6ed1830bb3d034b8b6
Alex Crichton
2021-11-02T14:35:13
Update OpenSSL initialization check (#419) As described in sfackler/rust-openssl#1548
diff --git a/build.rs b/build.rs index 5dad284..11539d4 100644 --- a/build.rs +++ b/build.rs @@ -1,13 +1,12 @@ use std::env; -use std::str::FromStr; fn main() { // OpenSSL >= 1.1.0 can be initialized concurrently and is initialized correctly by libcurl. // <= 1.0.2 need locking callbacks, which are provid...
1
4
5
142ee968f41c115738dde60cfb463c7f6e0fc596
Alex Crichton
2021-11-02T14:31:49
Initialize openssl-probe env vars if curl requires init (#418) This commit should fix an issue that showed up in rust-lang/cargo#10013 where curl's initialization was accidentally detecting that curl needed an early initialization (due to sfackler/rust-openssl#1548). This early initialization caused the later env-v...
diff --git a/src/lib.rs b/src/lib.rs index 80edc5d..66c492b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -107,6 +107,8 @@ pub fn init() { )] extern "C" fn init_inner() { INIT.call_once(|| { + #[cfg(need_openssl_init)] + openssl_probe::init_ssl_cert_env_vars(); #[cfg(...
1
2
0
df64ee4fcb1e3e2927d04e6bb6d8a1c0feedc844
Winter
2021-10-19T15:28:23
Fix Clippy lints (#416)
diff --git a/examples/ssl_proxy.rs b/examples/ssl_proxy.rs index 7a50b03..1884d68 100644 --- a/examples/ssl_proxy.rs +++ b/examples/ssl_proxy.rs @@ -16,9 +16,9 @@ fn main() -> Result<()> { handle.proxy(proxy_url)?; handle.proxy_port(proxy_port)?; - handle.proxy_cainfo(&cainfo)?; - handle.proxy_sslcert...
9
27
40
5df9997d159ea50dc71be4056759e10428c93e98
Winter
2021-10-18T15:26:34
Ensure that the Xcode CLI tools are installed (#415)
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 24475cc..8615c4d 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -497,14 +497,17 @@ fn try_pkg_config() -> bool { } fn xcode_major_version() -> Option<u8> { - let output = Command::new("xcodebuild").arg("-version").output().ok()?; - if output....
1
12
9
b57ef183bbeef5b6d6bc0539d6f6eecd3f24115f
Alex Crichton
2021-10-01T17:18:56
Bump crate versions (#412)
diff --git a/Cargo.toml b/Cargo.toml index 0b4645d..abd0ada 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl" -version = "0.4.38" +version = "0.4.39" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT" repository = "https://github.com/alexcrichton/curl-rust" @@ -18,7 ...
2
3
3
ecc8a2b16a84bb7fbfca887d95ae0dbedd7ea29a
darkprokoba
2021-10-01T14:05:03
Exposed the CURLOPT_UPLOAD_BUFFERSIZE curl option. (#411) * Exposed the CURLOPT_UPLOAD_BUFFERSIZE curl option. See also: https://curl.se/libcurl/c/CURLOPT_UPLOAD_BUFFERSIZE.html * [trivial] Fixed a typo. * [trivial] Only test the upload_buffer_size(...) API if the system's libcurl is 7.62.0 or later. * An ...
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index 5be290f..4eaab0b 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -595,6 +595,8 @@ pub const CURLOPT_PROXY_CAPATH: CURLoption = CURLOPTTYPE_OBJECTPOINT + 247; pub const CURLOPT_PROXY_SSLCERT: CURLoption = CURLOPTTYPE_OBJECTPOINT + 254; pub const CURLOPT_PROXY_...
5
31
0
b0b6c68997833675a842c2fa46f361c5a44d4a2a
Eric Huss
2021-09-27T19:35:58
Add vendored field to Version information. (#409)
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 4357698..24475cc 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -64,6 +64,7 @@ fn main() { println!("cargo:root={}", dst.display()); println!("cargo:include={}", include.display()); println!("cargo:static=1"); + println!("cargo:rustc-...
3
12
0
e244263329286880cb79d95c8ab92fcb309d213c
Eric Huss
2021-09-18T21:04:16
Trigger rebuild if a curl source file has changed. (#407)
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 482bfe4..4357698 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -4,6 +4,7 @@ use std::path::{Path, PathBuf}; use std::process::Command; fn main() { + println!("cargo:rerun-if-changed=curl"); let host = env::var("HOST").unwrap(); let ta...
1
1
0
8eb27f7c3427c6f730313f49aeeddf814c5b2bb1
Alex Crichton
2021-09-16T18:22:40
Bump curl-sys
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index ce2581a..dc730ab 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.4.46+curl-7.79.0" +version = "0.4.47+curl-7.79.0" authors = ["Alex Crichton <alex@alexcrichton.com>"] links = "curl" bui...
1
1
1
ca8ce45831f671fe053563a765affe89b688d5ac
Abhinav Singh
2021-08-02T14:13:16
Add support for aws-sigv4 authentication (#401) Closes https://github.com/alexcrichton/curl-rust/issues/392
diff --git a/Cargo.toml b/Cargo.toml index 45ae6bc..0b4645d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -64,3 +64,8 @@ required-features = ["ssl"] name = "ssl_cert_blob" path = "examples/ssl_cert_blob.rs" required-features = ["ssl"] + +[[example]] +name = "aws_sigv4" +path = "examples/aws_sigv4.rs" +required-feature...
7
82
1
937da74476ca36c368e85e94d2d2903df55f035a
Stephen M. Coakley
2021-05-22T05:16:03
Update ctest to ctest2 (#395) This swaps out ctest with a fork which has been updated to be able to compile on newer rustc versions. This fixes the failing tests on nightly in CI recently introduced. Long-term we should consider moving off of ctest, but that's a larger effort with more unknowns.
diff --git a/systest/Cargo.toml b/systest/Cargo.toml index cc129cd..3a28375 100644 --- a/systest/Cargo.toml +++ b/systest/Cargo.toml @@ -11,5 +11,5 @@ curl-sys = { path = "../curl-sys" } libc = "0.2" [build-dependencies] -ctest = { git = 'https://github.com/alexcrichton/ctest', branch = 'use-maybe-unini' } +ctest2 ...
2
2
2
d39fcb478bec3e35fb9eb5641129c254170f43a3
Stephen M. Coakley
2021-05-13T01:28:07
Prepare 0.4.37 and curl-sys 0.4.43 release
diff --git a/Cargo.toml b/Cargo.toml index c9c98d7..24c9935 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl" -version = "0.4.36" +version = "0.4.37" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT" repository = "https://github.com/alexcrichton/curl-rust" @@ -18,7 ...
2
3
3
2dbc1b051d8f86109ef1735d9a7df44c0b5358b3
Stephen M. Coakley
2021-05-11T14:10:47
Disable compiling with poll() on macOS (#393) I've noticed recently that when using the bundled curl version on macOS, very occasionally curl will get "stuck" in the TCP connection phase when using the multi interface. Apparently this is caused by the `poll()` implementation not behaving quite as the POSIX standard sa...
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 6e4b024..839d276 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -300,7 +300,6 @@ fn main() { .define("HAVE_NETDB_H", None) .define("HAVE_NETINET_IN_H", None) .define("HAVE_NETINET_TCP_H", None) - .defin...
1
5
2
19313129e3a4080eca22d1389217dd86ac96280d
yoavk
2021-05-04T19:09:52
Add support for CURLOPT_PINNEDPUBLICKEY (#391) * Implement CURLOPT_PINNEDPUBLICKEY setter * Implement in Easy wrapper * rustfmt
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index c1d4214..fe4c2dc 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -584,6 +584,7 @@ pub const CURLOPT_SSL_OPTIONS: CURLoption = CURLOPTTYPE_LONG + 216; // pub const CURLOPT_DNS_LOCAL_IP6: CURLoption = CURLOPTTYPE_OBJECTPOINT + 223; // pub const CURLOPT_LOGIN_OP...
3
24
17
f41ace0ba028fb8517b753b71ef69f371bd71786
Weihang Lo
2021-05-03T17:10:35
Upgrade project to edition 2018 (#389) * Run `cargo fix` * Fix edition warnings * Cargo.toml to edition 2018 * Remove all extern crate * Link to mesalink explicitly
diff --git a/Cargo.toml b/Cargo.toml index 8263bf1..c9c98d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ description = "Rust bindings to libcurl for making HTTP requests" categories = ["api-bindings", "web-programming::http-client"] readme = "README.md" autotests = true +edition = "2018" [badges] t...
22
57
98
5732afc2ce1d0c1b2a534fe31bc54bfef6c90294
Greg Kuruc
2021-04-21T19:31:53
Add support for path_as_is curlopt (#385) Co-authored-by: Greg Kuruc <gkuruc@tenable.com>
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index 78580b2..22c973a 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -587,6 +587,7 @@ pub const CURLOPT_SSL_OPTIONS: CURLoption = CURLOPTTYPE_LONG + 216; // pub const CURLOPT_LOGIN_OPTIONS: CURLoption = CURLOPTTYPE_OBJECTPOINT + 224; pub const CURLOPT_EXPECT_100_...
4
39
6
c9a3e5f0139e0df51ed5c59af99b5ce1150242f3
Stephen M. Coakley
2021-04-17T14:19:06
Prepare 0.4.36 and curl-sys 0.4.42 release
diff --git a/Cargo.toml b/Cargo.toml index f04ccbb..8263bf1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl" -version = "0.4.35" +version = "0.4.36" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT" repository = "https://github.com/alexcrichton/curl-rust" @@ -17,7 ...
2
3
3
81e362250e57b9b6b1c262e5061595da5eab8593
Arun Kulshreshtha
2021-04-15T18:51:14
Add support for in-memory certificates (#384)
diff --git a/Cargo.toml b/Cargo.toml index de0a87b..f04ccbb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,3 +58,8 @@ harness = false name = "ssl_proxy" path = "examples/ssl_proxy.rs" required-features = ["ssl"] + +[[example]] +name = "ssl_cert_blob" +path = "examples/ssl_cert_blob.rs" +required-features = ["ssl"] ...
6
179
0
7104e1703f6097b1c1149297cffd52cc7b85225e
Stephen M. Coakley
2021-03-09T03:40:35
Prepare 0.4.35 and curl-sys 0.4.41 release
diff --git a/Cargo.toml b/Cargo.toml index 9130a3e..b892f29 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl" -version = "0.4.34" +version = "0.4.35" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT" repository = "https://github.com/alexcrichton/curl-rust" @@ -17,7 ...
2
4
4
67b361a4c8ecf396ad18258198480775a0ab2698
Stephen M. Coakley
2021-03-08T03:37:15
Fix TCP_NODELAY not defined for static builds on Unix (#381) * Fix TCP_NODELAY not defined for static builds on Unix The `TCP_NODELAY` macro/constant was not being defined during compilation for the bundled libcurl build on Unix systems because `netinet/tcp.h` was not being included. It is difficult to verify that ...
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 7cf401f..64df41e 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -238,11 +238,6 @@ fn main() { .file("curl/lib/vauth/vauth.c"); } - if !windows { - cfg.define("USE_UNIX_SOCKETS", None) - .define("HAVE_SYS_UN_H", ...
1
13
14
b0fb7fb64433d565a5f121e24f514183af636891
Stephen M. Coakley
2021-02-23T15:09:47
Fix debug formatting for Events struct (#377) Fix a copy and paste error that showed the value of the `input` flag of `Events` in place of the `output` and `error` flags in the debug formatting.
diff --git a/src/multi.rs b/src/multi.rs index ebc9606..9e0b580 100644 --- a/src/multi.rs +++ b/src/multi.rs @@ -1041,8 +1041,8 @@ impl fmt::Debug for Events { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { f.debug_struct("Events") .field("input", &(self.bits & curl_sys::CURL_CSELECT_...
1
2
2
15a48d2346cb1d28d76bcbdde42bfb2c6e62c621
Niels Sascha Reedijk
2021-02-16T16:39:48
Haiku: rework build.rs logic for curl-sys (#375) Due to several issues, the Haiku build of rustc and cargo is cross-compiled from a Linux host. In this official build, it is prefered to link to the libcurl build that is being distributed as an official Haiku port. This change adds the logic to link to the official ...
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 2dd3e2e..7cf401f 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -9,6 +9,7 @@ use std::path::{Path, PathBuf}; use std::process::Command; fn main() { + let host = env::var("HOST").unwrap(); let target = env::var("TARGET").unwrap(); let w...
1
10
4
d48298d8b54747f75191460557c099a42e1fb0ba
Abhinav Singh
2021-02-10T19:02:06
Add environment variable to find GSSAPI (#373)
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index bed9fb4..2dd3e2e 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -344,6 +344,10 @@ fn main() { .file("curl/lib/curl_gssapi.c") .file("curl/lib/socks_gssapi.c") .file("curl/lib/vauth/spnego_gssapi.c"); +...
1
4
0
623c9de6a31c705870505d52ab6d99be1167b613
Alex Crichton
2020-12-17T16:25:25
Add some more fields to `Debug for Version` (#368) Added some fields which were tacked on recently plus went ahead and added indicators of the two Rust crate versions as well.
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index 28edab1..9f87f29 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -1074,3 +1074,7 @@ extern "C" { sockp: *mut c_void, ) -> CURLMcode; } + +pub fn rust_crate_version() -> &'static str { + env!("CARGO_PKG_VERSION") +} diff --git a/src/version.rs ...
2
18
0
e6a94aab17e7a42c6fb56b7f7ab2183d498c5155
Linus Färnstrand
2020-11-30T17:53:30
Upgrade socket2 dependency (#365) Upgrades to a version not making invalid assumptions about the memory layout of std::net::SocketAddr
diff --git a/Cargo.toml b/Cargo.toml index 687d7ca..8a0e715 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ appveyor = { repository = "alexcrichton/curl-rust" } [dependencies] libc = "0.2.42" curl-sys = { path = "curl-sys", version = "0.4.37", default-features = false } -socket2 = "0.3.7" +socket2 = "0.3....
1
1
1
65cb1c2c78321a1aedb919ee2b4225879f89f594
Stephen M. Coakley
2020-10-30T01:04:44
Probe for OpenSSL certificates only once (#363) Fixes #362.
diff --git a/src/easy/handler.rs b/src/easy/handler.rs index fc0ea77..685037f 100644 --- a/src/easy/handler.rs +++ b/src/easy/handler.rs @@ -673,7 +673,18 @@ impl<H: Handler> Easy2<H> { #[cfg(need_openssl_probe)] fn ssl_configure(&mut self) { - let probe = ::openssl_probe::probe(); + use std::...
1
12
1
4d58de2c45768981d6f9de554896d8bcb6d2f5bd
Stephen M. Coakley
2020-10-14T01:42:26
Prepare 0.4.34 and curl-sys 0.4.37 release
diff --git a/Cargo.toml b/Cargo.toml index 18c46fb..687d7ca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl" -version = "0.4.33" +version = "0.4.34" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT" repository = "https://github.com/alexcrichton/curl-rust" @@ -17,7 ...
2
3
3
454a7202a23a8773281b69a825a2a9971f31bd10
Garrett Squire
2020-10-11T17:12:54
Add Max Age CURL Option (#360) * add max age option to CURL system crate * correctly identify constant and expose Rust API * correct API
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index 9f70613..28edab1 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -582,6 +582,8 @@ pub const CURLOPT_PROXY_CAPATH: CURLoption = CURLOPTTYPE_OBJECTPOINT + 247; pub const CURLOPT_PROXY_SSLCERT: CURLoption = CURLOPTTYPE_OBJECTPOINT + 254; pub const CURLOPT_PROXY_...
4
19
0
badb4487f305e8ef6d15452ec2a9ab68a2c32d46
Breno Viana
2020-10-02T14:24:58
Fix some Clippy warnings (#356) * fix collapsible if warning * remove needlees return * substitute write! to writeln! * remove redundant field names in struct initialization * add non exhaustive attribute in all enums in handler.rs * fix inconsistent digit grouping * simplify return of extra_descript...
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index debbfae..ae74528 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -23,10 +23,10 @@ fn main() { if !cfg!(feature = "static-curl") { // OSX and Haiku ships libcurl by default, so we just use that version // so long as it has the righ...
6
56
99
fbb8e02fb6fdf103df9f0d5f6ce4ae76c86a0f6c
Bachue Zhou
2020-09-08T13:47:14
Fix the bug that cvt() could get rid of extra error message
diff --git a/src/easy/handler.rs b/src/easy/handler.rs index 4198195..c70f258 100644 --- a/src/easy/handler.rs +++ b/src/easy/handler.rs @@ -3011,7 +3011,7 @@ impl<H> Easy2<H> { if let Some(msg) = self.take_error_buf() { err.set_extra(msg); } - Err(Error::new(rc)) + Err(err)...
1
1
1
6e714f7aee720b197eb451ae077f073f8d7538b5
Tomoki Aonuma
2020-08-22T17:45:40
Fix Easy2::fmt to print handler correctly (#353)
diff --git a/src/easy/handler.rs b/src/easy/handler.rs index d96add0..4198195 100644 --- a/src/easy/handler.rs +++ b/src/easy/handler.rs @@ -3019,7 +3019,7 @@ impl<H: fmt::Debug> fmt::Debug for Easy2<H> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { f.debug_struct("Easy") .field("ha...
1
1
1
e0f491cb6a1163168cc5ef36b060fde13fa44c1f
Stephen M. Coakley
2020-08-19T05:14:01
Bump versions for re-packaging See #352
diff --git a/Cargo.toml b/Cargo.toml index 870762d..18c46fb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl" -version = "0.4.32" +version = "0.4.33" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT" repository = "https://github.com/alexcrichton/curl-rust" @@ -17,7 ...
2
3
3
e220da3c650ae6ea55c08591f36ead6d4a94f97e
Josh Triplett
2020-08-18T22:53:58
Add support for zlib-ng (#351) * Add support for zlib-ng Upgrade to libz-sys 1.1.0. Add a feature zlib-ng-compat to build with zlib-ng in zlib-compat mode. This requires building our own curl (as system curl will link with another zlib), so make zlib-ng-compat require static-curl. * Bump curl version to 0.4.3...
diff --git a/Cargo.toml b/Cargo.toml index a36481d..870762d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl" -version = "0.4.31" +version = "0.4.32" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT" repository = "https://github.com/alexcrichton/curl-rust" @@ -17,7 ...
2
6
4
428fbe8efc8f17b5f8eb3a7380842dc243c4df5b
Stephen M. Coakley
2020-08-07T00:03:54
Prepare curl-sys 0.4.34 release
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index ff1a6d9..2a4eca4 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.4.33+curl-7.71.1" +version = "0.4.34+curl-7.71.1" authors = ["Alex Crichton <alex@alexcrichton.com>"] links = "curl" bui...
1
1
1
8592cfb46ab4b617e508b634843091a153a54c55
Stephen M. Coakley
2020-08-06T14:37:03
Enable HAVE_GETSOCKNAME for bundled build (#350) Define `HAVE_GETSOCKNAME` for bundled curl-sys so that `Easy2::local_ip` and `Easy2::local_port` don't return blank values. We're already enabling `HAVE_GETPEERNAME` and your system probably has `getsockname` if it has `getpeername`.
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index ef53e6f..32c8d3a 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -202,6 +202,7 @@ fn main() { .file("curl/lib/wildcard.c") .define("HAVE_GETADDRINFO", None) .define("HAVE_GETPEERNAME", None) + .define("HAVE_GETSOCKNAME"...
1
1
0
c7d04299ddacb27c6e335085ee47274f567c589f
Stephen M. Coakley
2020-07-23T00:04:16
Update curl-sys version
diff --git a/Cargo.toml b/Cargo.toml index ce1ef20..a36481d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ appveyor = { repository = "alexcrichton/curl-rust" } [dependencies] libc = "0.2.42" -curl-sys = { path = "curl-sys", version = "0.4.32", default-features = false } +curl-sys = { path = "curl-sys", ...
1
1
1
823ec1b4703e13327b5f4ad67794e6c956ca3a52
Stephen M. Coakley
2020-07-23T00:02:29
Prepare 0.4.31 release
diff --git a/Cargo.toml b/Cargo.toml index f5165cf..ce1ef20 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl" -version = "0.4.30" +version = "0.4.31" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT" repository = "https://github.com/alexcrichton/curl-rust" diff --gi...
2
2
2
2c69a44fce52a04b200b0e08d8886253c3f23843
Stephen M. Coakley
2020-07-22T23:52:20
Add support for CURLOPT_CONNECT_TO (#348)
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index 685f3ef..108382f 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -576,6 +576,7 @@ pub const CURLOPT_SSL_OPTIONS: CURLoption = CURLOPTTYPE_LONG + 216; // pub const CURLOPT_LOGIN_OPTIONS: CURLoption = CURLOPTTYPE_OBJECTPOINT + 224; pub const CURLOPT_UNIX_SOCKET...
4
29
2
fc7510d83078109cb766f172cdc719d77525ccc3
Stephen M. Coakley
2020-07-22T13:55:52
Add unix_socket_path that exposes more Unix socket control (#347) The existing `unix_socket` method has some limitations in its design: - You cannot unset a previously set path. - You cannot set non-UTF-8 paths. This adds a second method named `unix_socket_path` that instead takes an `Option<impl AsRef<Path>>` ...
diff --git a/src/easy/handle.rs b/src/easy/handle.rs index 695b332..a6e60c3 100644 --- a/src/easy/handle.rs +++ b/src/easy/handle.rs @@ -165,6 +165,11 @@ impl Easy { self.inner.unix_socket(unix_domain_socket) } + /// Same as [`Easy2::unix_socket_path`](struct.Easy2.html#method.unix_socket_path) + ...
2
34
2
4a656fd1eaa3ad094e609d380a9ca4eae27fc5fc
Cynthia Coan
2020-07-17T14:07:25
added support for unix sockets (#346) Co-authored-by: ggeorgiev_ <ggeorgiev@gitlab.com>
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 984b73e..ef53e6f 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -235,6 +235,11 @@ fn main() { .file("curl/lib/vauth/vauth.c"); } + if !windows { + cfg.define("USE_UNIX_SOCKETS", None) + .define("HAVE_SYS_UN_H", ...
3
86
15
1ddd4e8c1736211941636c65c89cd4c8e307c7ec
Stephen M. Coakley
2020-06-30T14:15:34
Add proxy_cacert support (#344) * Add proxy_cacert support This completes the bindings for proxy SSL options and fixes #160. * Formatting * Add CURLOPT_PROXY_CAPATH debut version
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index 90aede1..685f3ef 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -577,6 +577,7 @@ pub const CURLOPT_SSL_OPTIONS: CURLoption = CURLOPTTYPE_LONG + 216; pub const CURLOPT_UNIX_SOCKET_PATH: CURLoption = CURLOPTTYPE_OBJECTPOINT + 231; pub const CURLOPT_PIPEWAIT: C...
4
34
6
dcaf7b81a0be6a8608dcf444d33ccad0f6718746
Stephen M. Coakley
2020-06-24T03:01:06
Prepare 0.4.30 release
diff --git a/Cargo.toml b/Cargo.toml index 3d33a9d..f5165cf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl" -version = "0.4.29" +version = "0.4.30" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT" repository = "https://github.com/alexcrichton/curl-rust" @@ -17,7 ...
2
3
3
683cc81e0c0a6ad60476b954baaa4885b1cebd08
Stephen M. Coakley
2020-06-24T02:27:39
Add deprecation warning to Multi::close
diff --git a/src/multi.rs b/src/multi.rs index 7cf1026..9205e38 100644 --- a/src/multi.rs +++ b/src/multi.rs @@ -701,6 +701,11 @@ impl Multi { /// /// This method will be changed to take `self` in a future release. #[doc(hidden)] + #[deprecated( + since = "0.4.30", + note = "cannot close...
1
5
0
55a27ae441b724985bf3ca758ef1a4c322ff45cc
Stephen M. Coakley
2020-06-15T13:58:28
Fix safety hole in Multi::close and hide it from docs (#342) Fixes #340.
diff --git a/src/multi.rs b/src/multi.rs index b8a3601..7cf1026 100644 --- a/src/multi.rs +++ b/src/multi.rs @@ -696,19 +696,23 @@ impl Multi { } } - /// Attempt to close the multi handle and clean up all associated resources. + /// Does nothing and returns `Ok(())`. This method remains for backwa...
1
10
6
ee68a613620ded4a5570551848899169f297e1a2
Stephen M. Coakley
2020-06-01T13:40:17
Experimental use of constructor functions to call init (#334) * Experimental use of constructor functions to call init As mentioned in #333, this is a potentially helpful addition that ensures that curl is initialized on the main thread by using constructor functions that get called by the OS before the current pro...
diff --git a/src/lib.rs b/src/lib.rs index b9c0c01..9f2e50e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -46,6 +46,12 @@ //! There is a large number of releases for libcurl, all with different sets of //! capabilities. Robust programs may wish to inspect `Version::get()` to test //! what features are implemented in t...
1
59
24
33b7a0b3eba194b5b13a66e38950f6076f0c91c1
Stephen M. Coakley
2020-05-04T14:08:48
Define HTTP/3 constant (#331) * Define HTTP/3 constant HTTP/3 support in libcurl is still experimental at this point, but the constant for requesting it is stable. This just defines the constant and makes it available in the `curl` crate. * Update ctests
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index df2d69f..0049a9d 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -602,6 +602,9 @@ pub const CURL_HTTP_VERSION_2TLS: c_int = 4; /// Please use HTTP 2 without HTTP/1.1 Upgrade /// (Added in CURL 7.49.0) pub const CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE: c_int = 5;...
3
20
0
68349087c8c09a5e56b57bcfc40c12e790aa5c71
Alex Crichton
2020-04-10T16:42:32
Use a fork of ctest for now
diff --git a/systest/Cargo.toml b/systest/Cargo.toml index a87e609..4f733d6 100644 --- a/systest/Cargo.toml +++ b/systest/Cargo.toml @@ -3,11 +3,12 @@ name = "systest" version = "0.1.0" authors = ["Alex Crichton <alex@alexcrichton.com>"] build = "build.rs" +publish = false [dependencies] curl-sys = { path = "../...
1
2
1
b776087a6ae5e0c1b20133be9e9f3ff12680a68e
Alex Crichton
2020-03-04T15:22:22
Bump curl-sys to 0.4.28
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index 28d3373..d9068d9 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.4.27" +version = "0.4.28+curl-7.69.0" authors = ["Alex Crichton <alex@alexcrichton.com>"] links = "curl" build = "build....
1
1
1
22ba0053ebdea435605d3861d882dbefb05f10aa
Alex Crichton
2020-03-04T15:20:45
Update nghttp2 requirement
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index e7390a0..28d3373 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -21,7 +21,7 @@ path = "lib.rs" [dependencies] libz-sys = "1.0.18" libc = "0.2.2" -libnghttp2-sys = { optional = true, version = "0.1" } +libnghttp2-sys = { optional = true, vers...
1
1
1
53359be89f18316e5411b1a6658c6df2c431ca0e
Alex Crichton
2020-02-28T16:19:36
Bump versions
diff --git a/Cargo.toml b/Cargo.toml index f468df9..21cb6be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl" -version = "0.4.25" +version = "0.4.26" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT" repository = "https://github.com/alexcrichton/curl-rust" @@ -16,7 ...
2
3
3
6e8f555b3bbe326b355b00ddba8c5bb2d6101772
Stephen M. Coakley
2020-02-18T17:34:47
Version bump curl-sys (#324) I'd like to pull in https://github.com/alexcrichton/curl-rust/pull/283 downstream so that I can close https://github.com/sagebind/isahc/issues/68. Master has everything needed now, I just need a new version...
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index 246ece1..89ec8a0 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.4.25" +version = "0.4.26" authors = ["Alex Crichton <alex@alexcrichton.com>"] links = "curl" build = "build.rs"
1
1
1
a6969c03b1e8f66bc4c801914327176ed38f44c5
Jan-Erik Rediger
2020-01-09T18:03:24
Link against clang runtime on static builds on macOS (#283) * Link against clang runtime on static builds on macOS On OSX we need to link against the clang runtime, which is hidden in some non-default path. We can get the path from `clang --print-search-dirs`. Kudos to @ehuss for finding that workaround. Fixes...
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 4ced5df..6f89d7a 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -47,6 +47,17 @@ fn main() { .status(); } + if target.contains("apple") { + // On (older) OSX we need to link against the clang runtime, + // which is h...
1
35
0
1069cc50d80012a03a51093b3e21579efd6579ff
Alex Crichton
2020-01-08T15:27:01
Bump curl-sys to 0.4.25
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index 47e07df..246ece1 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.4.24" +version = "0.4.25" authors = ["Alex Crichton <alex@alexcrichton.com>"] links = "curl" build = "build.rs"
1
1
1
6c23bab222ce5216d17736928d8957688946c0ce
Ohad Ravid
2019-11-22T16:05:41
Do not define `HAVE_CLOCK_GETTIME_MONOTONIC` on macOS, use `HAVE_MACH_ABSOLUTE_TIME` instead (#314) `clock_gettime` wasn't added until macOS 10.12, which causes `dyld: Symbol not found: _clock_gettime` error
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 7352121..4ced5df 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -270,12 +270,15 @@ fn main() { } } else { if target.contains("-apple-") { - cfg.define("__APPLE__", None).define("macintosh", None); + cfg.defi...
1
6
3
0a9e9f267886fc10be95e3aa491baa973b314478
Alex Crichton
2019-11-06T19:27:52
Bump curl-sys to 0.4.24
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index 787a478..47e07df 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.4.23" +version = "0.4.24" authors = ["Alex Crichton <alex@alexcrichton.com>"] links = "curl" build = "build.rs"
1
1
1
cbc96624ebfe6b378ecd7e683b349da43d16264d
Stephen M. Coakley
2019-10-08T18:14:06
Version bump (#307) Publish recent fixes in curl and curl-sys. I did not bump the minimum curl-sys requirement from curl.
diff --git a/Cargo.toml b/Cargo.toml index d5ce11f..d01a020 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl" -version = "0.4.24" +version = "0.4.25" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT" repository = "https://github.com/alexcrichton/curl-rust" diff --gi...
2
2
2
951910a4cd0f7268aada5c8a2f8cf3a20718c7e4
Adam Batkin
2019-10-04T14:44:09
Fix fmt::Debug for Version feature list (#306) * Fix fmt::Debug for Version feature list * rustfmt
diff --git a/src/version.rs b/src/version.rs index d539ef8..ea2d255 100644 --- a/src/version.rs +++ b/src/version.rs @@ -291,15 +291,18 @@ impl fmt::Debug for Version { .field("feature_ntlm", &self.feature_ntlm()) .field("feature_gss_negotiate", &self.feature_gss_negotiate()) .fie...
1
12
9
fa920a62463989c362e92a6e1d65cbdabd5afd5c
Stephen M. Coakley
2019-10-03T14:26:37
Fix Curl_now() timer resolution (#305) * Fix Curl_now() timer resolution Configure libcurl to use more accurate means of time measurement for use with various calculations, such as CURLINFO_TOTAL_TIME. * Formatting
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index cf28454..03a004a 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -258,7 +258,8 @@ fn main() { } if windows { - cfg.define("USE_THREADS_WIN32", None) + cfg.define("WIN32", None) + .define("USE_THREADS_WIN32", None) ...
1
8
1
f807ab025ac393e54844f5062f9796fae09a62b3
Alex Crichton
2019-10-01T21:35:00
Bump curl-sys to 0.4.22
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index a72926b..720cfee 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.4.21" +version = "0.4.22" authors = ["Alex Crichton <alex@alexcrichton.com>"] links = "curl" build = "build.rs"
1
1
1
30de1e5b781c39c2427b3e980a68ac4020b6ba4b
Alex Crichton
2019-10-01T21:34:39
Enable HAVE_GETPEERNAME when building `curl` (#304) Looks like this enables a few optimizations internally, such as reusing connections! Let's be sure to enable this for our platforms, which should all have this, so we can get those performance optimizations with HTTP.
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 59c23b0..cf28454 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -187,6 +187,7 @@ fn main() { .file("curl/lib/warnless.c") .file("curl/lib/wildcard.c") .define("HAVE_GETADDRINFO", None) + .define("HAVE_GETPEERNAME", Non...
1
1
0
972209763f499e91caed48e9224543b6e2e2dff5
Stephen M. Coakley
2019-09-26T14:20:27
Bindings for CURLMOPT_MAXCONNECTS and CURLMOPT_MAX_TOTAL_CONNECTIONS (#301) Add bindings for `CURLMOPT_MAXCONNECTS` and `CURLMOPT_MAX_TOTAL_CONNECTIONS`. Also export more `CURLM` options in `curl-sys`, and add a getter for accessing the underlying `CURLM` pointer.
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index 9eaca45..28c996c 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -899,14 +899,14 @@ pub const CURLMOPT_SOCKETDATA: CURLMoption = CURLOPTTYPE_OBJECTPOINT + 2; pub const CURLMOPT_PIPELINING: CURLMoption = CURLOPTTYPE_LONG + 3; pub const CURLMOPT_TIMERFUNCTION: ...
2
42
6
fd2b973d321ba3849d36d16f9c35efdd4e76c4bd
EliSnow
2019-09-20T17:59:16
Version bump (#299)
diff --git a/Cargo.toml b/Cargo.toml index 3def9cb..d5ce11f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl" -version = "0.4.23" +version = "0.4.24" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT" repository = "https://github.com/alexcrichton/curl-rust"
1
1
1