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
09406460d15b38dfe3c927d7cc3cce130ab79c60
Silvio Fricke
2017-01-12T08:29:59
Add .netrc binding Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com>
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index ce24714..4fd1227 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -375,6 +375,10 @@ pub const CURLGSSAPI_DELEGATION_FLAG: c_ulong = 1 << 1; // curl_khmatch, // *mut c_void) -> c_...
2
29
0
8ca6975d25f09ebfc3ec81f340144e81a3ab0a60
Alex Crichton
2017-01-06T19:28:58
Bump to 0.4.3
diff --git a/Cargo.toml b/Cargo.toml index c12fa24..86f4924 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.4.2" +version = "0.4.3" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"] license = "MIT"
1
1
1
bc26365eef7659163d4f504f7ef2b40d549cf360
Alex Crichton
2017-01-06T19:27:43
Add a doc url
diff --git a/src/lib.rs b/src/lib.rs index bdb95fc..436fd64 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -47,6 +47,7 @@ //! what features are implemented in the linked build of libcurl at runtime. #![deny(missing_docs)] +#![doc(html_root_url = "https://docs.rs/curl/0.4")] extern crate curl_sys; extern crate libc...
1
1
0
784454d9bc216d2a3b490396d1fd4dff7fd101df
Alex Crichton
2016-12-27T17:31:50
Bump to 0.4.2
diff --git a/Cargo.toml b/Cargo.toml index 978fb02..c12fa24 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.4.1" +version = "0.4.2" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"] license = "MIT"
1
1
1
591bfa6ff67f200a4a7ff63b70227f866182a48e
Alex Crichton
2016-12-27T17:31:19
Don't call curl_global_cleanup We can't actually satisfy the guarantees it wants, so we're forced to just leak the memory it references.
diff --git a/src/lib.rs b/src/lib.rs index 95a7f01..bdb95fc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -82,13 +82,18 @@ pub fn init() { platform_init(); unsafe { assert_eq!(curl_sys::curl_global_init(curl_sys::CURL_GLOBAL_ALL), 0); - libc::atexit(cleanup); } - }); ...
1
10
5
8d1618617bbc14e8a69f08825714224da0a8d882
Alex Crichton
2016-12-15T00:15:12
Bump curl-sys to 0.3.6
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index 44c1b71..093e50a 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.3.5" +version = "0.3.6" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"]...
1
1
1
ccb8602d1a7d50c491deca2595b3e30db6491fa8
Alex Crichton
2016-12-15T00:14:52
Use msys_compatible for more paths in build.rs
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index e6e7e17..1558b8a 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -122,10 +122,10 @@ fn main() { cmd.arg("--without-ca-path"); } if let Some(root) = openssl_root { - cmd.arg(format!("--with-ssl={}", root.display())); + cm...
1
2
2
1710c430c5b75564086a27bf35d860199b2bd6f0
Alex Crichton
2016-12-02T21:27:28
Bump curl-sys to 0.3.5
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index 9ebb3d4..44c1b71 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.3.4" +version = "0.3.5" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"]...
1
1
1
73017ae001c45bc0d0f8c47f735007506a7fb59f
Alex Crichton
2016-12-02T18:56:41
Support the crt-static feature on MSVC
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 462d12a..e6e7e17 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -265,6 +265,12 @@ fn build_msvc(target: &str) { .arg("ENABLE_SSPI=yes") .arg(format!("MACHINE={}", machine)); + let features = env::var("CARGO_CFG_TARGET_FEATURE") + ...
1
6
0
b73c60e552b615b26fbaea5f59c8996dc4a2b282
Alex Crichton
2016-11-14T21:49:04
Bump curl-sys to 0.3.4
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index b206c29..9ebb3d4 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.3.3" +version = "0.3.4" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"]...
1
1
1
a8923bf8d6da19bfa649881f0b3b0670ef36ec62
Alex Crichton
2016-11-14T21:48:38
Register env vars first, then pass args Make sure PKG_CONFIG_PATH gets set
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 86c7529..462d12a 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -66,6 +66,9 @@ fn main() { return build_msvc(&target); } + let openssl_root = register_dep("OPENSSL"); + let zlib_root = register_dep("Z"); + let cfg = gcc::Conf...
1
7
4
87737b266c503cf4ef8b28acb3e2c871105dc45a
Alex Crichton
2016-11-14T20:34:57
Bump curl-sys to 0.3.3
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index 02a6da5..b206c29 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.3.2" +version = "0.3.3" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"]...
1
1
1
17dfd438cf3c7dfbc8ec2818ec883cbfe56965c5
Alex Crichton
2016-11-14T20:33:01
Still pass --with args
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index e6e7ae4..86c7529 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -117,9 +117,13 @@ fn main() { } else { cmd.arg("--without-ca-bundle"); cmd.arg("--without-ca-path"); - register_dep("OPENSSL"); + if let Some(root) = r...
1
11
5
dc8d64e55e0f3418bd88445daa23f6efc2a18096
Alex Crichton
2016-11-14T20:27:44
Try again at libz registration
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index ca842cd..e6e7ae4 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -117,29 +117,9 @@ fn main() { } else { cmd.arg("--without-ca-bundle"); cmd.arg("--without-ca-path"); - - // DEP_OPENSSL_ROOT was what cargo used to use via ov...
1
25
22
14ec76b0b367e90bcf6863f00a0cc96e2bc3ea55
Alex Crichton
2016-11-14T19:21:14
Bump to 0.3.2
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index e38cd9f..02a6da5 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.3.1" +version = "0.3.2" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"]...
1
1
1
774f56a75c55574d94619b5c55805d47dd55b90e
Alex Crichton
2016-11-14T19:17:48
Try force enabling zlib
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index d6f0c20..ca842cd 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -137,6 +137,9 @@ fn main() { cmd.arg(format!("--with-ssl={}", s.to_str().unwrap())); } } + if let Ok(root) = env::var("DEP_Z_ROOT") { + cmd.arg(format!...
1
3
0
304afe7b91e60a610db443ce8945dd120036917f
Alex Crichton
2016-11-11T15:37:54
Bump to 0.4.1
diff --git a/Cargo.toml b/Cargo.toml index f02e7e7..978fb02 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.4.0" +version = "0.4.1" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"] license = "MIT"
1
1
1
09f044bfc14f6c6274c554287ee97b07e65de988
Alex Crichton
2016-11-10T19:10:23
Use lossy from_utf8 conversion instead of panicking
diff --git a/src/easy.rs b/src/easy.rs index 292217c..a67b339 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -2802,7 +2802,7 @@ impl Easy { return Err(Error::new(rc)) } let pos = buf.iter().position(|i| *i == 0).unwrap_or(buf.len()); - let msg = str::from_utf8(&buf[..pos]).expect("n...
1
1
1
2c40a3c6c1a3bce19bed16127750db3c6f7a137d
Alex Crichton
2016-11-10T15:26:17
Bump curl-sys to 0.3.1
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index 0826ace..e38cd9f 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.3.0" +version = "0.3.1" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"]...
1
1
1
40c9caab1043f85fa5e46c11979f337b0588ad60
Alex Crichton
2016-11-10T15:25:37
Support custom OpenSSL by looking at INCLUDE
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index ced752b..d6f0c20 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -121,11 +121,20 @@ fn main() { // DEP_OPENSSL_ROOT was what cargo used to use via overrides, and // OPENSSL_ROOT_DIR is also used by libssh2 which cargo uses and can be ...
1
13
4
2d3531f177c7b656743084d5aefa3e89cfec2d3f
Alex Crichton
2016-11-08T20:51:50
Bump to 0.4.0
diff --git a/Cargo.toml b/Cargo.toml index aa8fade..f02e7e7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.3.11" +version = "0.4.0" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"] license = "MIT"
1
1
1
891d325f5c26ce74db05c13390ebd4b2b07a6cef
Alex Crichton
2016-11-08T20:50:48
Bump curl-sys to 0.3.0
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index acfabc0..0826ace 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.2.5" +version = "0.3.0" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"]...
1
1
1
db29bbf244a8d2a27de86c94ea4a0df95e7ef1eb
Alex Crichton
2016-11-08T20:50:26
Bump openssl deps
diff --git a/Cargo.toml b/Cargo.toml index d9791bf..aa8fade 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,11 +10,11 @@ description = "Rust bindings to libcurl for making HTTP requests" [dependencies] libc = "0.2" -curl-sys = { path = "curl-sys", version = "0.2.5" } +curl-sys = { path = "curl-sys", version = "0.3"...
2
3
3
20b6065ec0884ccd3d04ffebb05aa506259e87fe
Alex Crichton
2016-11-08T20:47:35
Bump curl to 0.3.11
diff --git a/Cargo.toml b/Cargo.toml index cf66a6b..d9791bf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.3.10" +version = "0.3.11" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"] license = "MIT" @@ -10,7 +10,7 @@ ...
1
2
2
f96f24305915178ed4832724ffff6f2e4a35d80b
Alex Crichton
2016-11-08T20:46:34
Bump curl-sys to 0.2.5
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index 720c404..85a8b6e 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.2.4" +version = "0.2.5" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"]...
1
1
1
9227707fb15ef417761daec6ca3c0d697a6bc6a4
Alex Crichton
2016-11-08T20:46:07
Downgrade openssl deps
diff --git a/Cargo.toml b/Cargo.toml index 57c37e8..cf66a6b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ curl-sys = { path = "curl-sys", version = "0.2.3" } # Unix platforms use OpenSSL for now to provide SSL functionality [target."cfg(all(unix, not(target_os = \"macos\")))".dependencies] -openssl-sys...
2
2
2
48272a0d0f78e737e4df784b096ee74c1f4a1ba8
Alex Crichton
2016-11-06T05:28:26
Bump to 0.3.10
diff --git a/Cargo.toml b/Cargo.toml index 1914afb..57c37e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.3.9" +version = "0.3.10" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"] license = "MIT"
1
1
1
ea26c9e7b55cd869eeab93b37766df1ff404f84d
Alex Crichton
2016-11-06T05:27:14
Update openssl dep
diff --git a/Cargo.toml b/Cargo.toml index a8f4153..1914afb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,8 @@ curl-sys = { path = "curl-sys", version = "0.2.3" } # Unix platforms use OpenSSL for now to provide SSL functionality [target."cfg(all(unix, not(target_os = \"macos\")))".dependencies] -openssl-sys...
3
5
2
53ea2aff6d813b8573567f4af80b7a1c4af57845
Lionel Flandrin
2016-10-30T20:13:01
Implement a safe interface to CURLOPT_SSL_CTX_FUNCTION and _DATA.
diff --git a/src/easy.rs b/src/easy.rs index 77216e2..bcbfb4b 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -119,6 +119,7 @@ struct EasyData { debug: Option<Box<FnMut(InfoType, &[u8]) + Send>>, header: Option<Box<FnMut(&[u8]) -> bool + Send>>, progress: Option<Box<FnMut(f64, f64, f64, f64) -> bool + Send...
1
117
0
a3b736f78c3d8e07d638c3c33bb02c27fef431bc
Alex Crichton
2016-10-31T18:26:11
Bump to 0.3.9
diff --git a/Cargo.toml b/Cargo.toml index 778aaf6..a8f4153 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.3.8" +version = "0.3.9" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"] license = "MIT"
1
1
1
928ad2fe9979e56fcc0089cbbc45f9eecb5039f9
Alex Crichton
2016-10-31T18:25:48
Bump curl-sys to 0.2.4
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index f8f3195..64a469d 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.2.3" +version = "0.2.4" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"]...
1
1
1
aefd6dd232179cc5eaca3b46115668b2322bc863
Alex Crichton
2016-10-31T17:24:31
Link to crypt32 on mingw
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 82e197e..ced752b 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -57,7 +57,8 @@ fn main() { println!("cargo:root={}", dst.display()); println!("cargo:include={}/include", dst.display()); if windows { - println!("cargo:rustc-flags=-...
1
2
1
6e815cf59dd9314241480e58e5696991e0a3ace7
Alex Crichton
2016-10-31T17:12:59
Use workspaces and crates.io ctest
diff --git a/Cargo.toml b/Cargo.toml index db217bd..778aaf6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,3 +21,6 @@ winapi = "0.2" [dev-dependencies] mio = "0.6" + +[workspace] +members = ["systest"] diff --git a/systest/Cargo.toml b/systest/Cargo.toml index 05d7886..301b949 100644 --- a/systest/Cargo.toml +++ b...
2
4
1
888851d6fb654353daf91c723b2ff4c7cab8f9cb
Alex Crichton
2016-10-31T01:48:29
Let closing fds do deregistering
diff --git a/tests/multi.rs b/tests/multi.rs index 6102fe2..19e81e4 100644 --- a/tests/multi.rs +++ b/tests/multi.rs @@ -158,7 +158,6 @@ HTTP/1.1 200 OK\r\n\ Ok(Message::Wait(socket, events, token)) => { let evented = mio::unix::EventedFd(&socket); ...
1
0
1
703ca4f36eaf0b9bbcdb7ecc3fba0f193a789470
Alex Crichton
2016-10-30T20:43:16
Upgrade to mio 0.6
diff --git a/Cargo.toml b/Cargo.toml index c59c7c6..db217bd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,4 +20,4 @@ openssl-sys = "0.7.0" winapi = "0.2" [dev-dependencies] -mio = "0.5" +mio = "0.6" diff --git a/src/multi.rs b/src/multi.rs index 349b03c..bcca7af 100644 --- a/src/multi.rs +++ b/src/multi.rs @@ -69...
3
83
95
93c959661956f7389671d7b235eb7153a506add9
Alex Crichton
2016-10-30T20:30:20
Assert init succeeds Closes #133
diff --git a/src/lib.rs b/src/lib.rs index 87220f3..646fe65 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -79,7 +79,7 @@ pub fn init() { INIT.call_once(|| { platform_init(); unsafe { - curl_sys::curl_global_init(curl_sys::CURL_GLOBAL_ALL); + assert_eq!(curl_sys::curl_global_in...
1
1
1
0eb1e75070c23499ffd95919d1affc976ce265b2
Lionel Flandrin
2016-10-30T20:16:24
Fix incorrect CURLOPT doc for `progress_function` The method is implemented using CURLOPT_PROGRESS* callbacks, not CURLOPT_XFERINFO*
diff --git a/src/easy.rs b/src/easy.rs index 77216e2..3ecdbf4 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -646,7 +646,7 @@ impl Easy { /// called. /// /// By default this function calls an internal method and corresponds to - /// `CURLOPT_XFERINFOFUNCTION` and `CURLOPT_XFERINFODATA`. + /// `CURLO...
1
1
1
dc138a0cca501ecc13ff217798333f1f2134f2a9
Alex Crichton
2016-10-13T17:25:15
Bump to 0.3.8
diff --git a/Cargo.toml b/Cargo.toml index 2c459b7..c59c7c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.3.7" +version = "0.3.8" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"] license = "MIT"
1
1
1
f5a0ec540601a364f5183f276f710f4b15cd3cb5
Andrea Scarpino
2016-10-11T21:03:03
Bump curl-sys required version
diff --git a/Cargo.toml b/Cargo.toml index d42f62e..2c459b7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ description = "Rust bindings to libcurl for making HTTP requests" [dependencies] libc = "0.2" -curl-sys = { path = "curl-sys", version = "0.2.2" } +curl-sys = { path = "curl-sys", version = "0.2.3"...
1
1
1
d97e7dc8cc9734772b2601fca90c960e42eb25a9
Alex Crichton
2016-10-05T22:25:09
FIx tests on OSX
diff --git a/tests/easy.rs b/tests/easy.rs index fc9e441..38c899a 100644 --- a/tests/easy.rs +++ b/tests/easy.rs @@ -206,19 +206,14 @@ fn proxy() { GET http://example.com/ HTTP/1.1\r\n\ Host: example.com\r\n\ Accept: */*\r\n\ -Proxy-Connection: Keep-Alive\r\n\ \r\n"); s.send("\ HTTP/1.1 200 OK\r\n\ \r\n"); ...
2
4
5
7a8ee68bb897575ad333d606b2415c2cca50139c
Alex Crichton
2016-09-30T01:56:38
Be sure to configure the error buffer first
diff --git a/src/easy.rs b/src/easy.rs index b5d8c69..77216e2 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -2754,12 +2754,6 @@ impl Easy { buf[0] = 0; Err(::error::error_with_extra(rc, msg.into_boxed_str())) } - - fn set_error_buf(&self) { - self.setopt_ptr(curl_sys::CURLOPT_ERRORBUFFE...
1
4
9
7f7c73c7bc5450b74e07a5b1a75e1a104b5d0a18
Alex Crichton
2016-09-30T00:28:23
Bump curl to 0.3.7
diff --git a/Cargo.toml b/Cargo.toml index c444430..d42f62e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.3.6" +version = "0.3.7" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"] license = "MIT"
1
1
1
182583dc916f1d7202ff9cffc91e14032ab8b61e
Alex Crichton
2016-09-30T00:27:59
Bump curl-sys to 0.2.3
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index 49e17a6..f8f3195 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.2.2" +version = "0.2.3" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"]...
1
1
1
07323ab5e868babb7a5437e8d2604761b913dab3
Alex Crichton
2016-09-30T00:26:32
Configure CURLOPT_ERRORBUFFER for more error info Persist this with the `Easy` itself to ensure that all errors we hand out have an extra field if one is available.
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index 5616d36..ce24714 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -911,6 +911,8 @@ pub const CURLMOPT_TIMERDATA: CURLMoption = CURLOPTTYPE_OBJECTPOINT + 5; // pub const CURLMOPT_PIPELINING_SERVER_BL: CURLMoption = CURLOPTTYPE_OBJECTPOINT + 12; // pub const CUR...
3
81
27
c771f81a772a947e537448237804b5a2432b77a6
Alex Crichton
2016-09-06T19:37:08
Bump to 0.3.6
diff --git a/Cargo.toml b/Cargo.toml index 498fc3d..c444430 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.3.5" +version = "0.3.6" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"] license = "MIT"
1
1
1
8b1f981b9778f26b740e4564bd3b38fe9a56f820
Alex Crichton
2016-09-06T19:36:10
Fix constant passed in
diff --git a/src/multi.rs b/src/multi.rs index 18f813f..349b03c 100644 --- a/src/multi.rs +++ b/src/multi.rs @@ -572,13 +572,13 @@ impl<'multi> Message<'multi> { /// represents a completion for. /// /// This function will return the token assigned with - /// `EasyHandle::set_token`. This reads the `CU...
1
2
2
7539f29cc3ba3e861fa7b0bf8d662b6b970cfc6d
Alex Crichton
2016-09-06T19:31:59
Expose CURLOPT_PRIVATE on `EasyHandle` and `Message`
diff --git a/src/easy.rs b/src/easy.rs index 30eaa44..7215653 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -18,7 +18,7 @@ use std::time::Duration; use curl_sys; use libc::{self, c_long, c_int, c_char, c_void, size_t, c_double, c_ulong}; -use {Error, FormError}; +use {Error, FormError, cvt}; use panic; // TODO:...
3
46
17
9ac068ab471ad0d7753cefb82108d3069de6c735
Alex Crichton
2016-08-26T22:02:58
Bump to 0.3.5
diff --git a/Cargo.toml b/Cargo.toml index 834a621..498fc3d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.3.4" +version = "0.3.5" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"] license = "MIT" @@ -10,7 +10,7 @@ de...
1
2
2
2408194df0e16db13d9f87edf56133cc4d86d63f
Alex Crichton
2016-08-26T22:02:21
Bump curl-sys to 0.2.2
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index 9d512db..49e17a6 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.2.1" +version = "0.2.2" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"]...
1
1
1
592b914f1f39ba0c00edb1ca965762aa66fb795a
Alex Crichton
2016-08-26T01:14:04
Add a `Multi::fdset` function Enables implementing this at all on Windows!
diff --git a/Cargo.toml b/Cargo.toml index 76f3da7..834a621 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,5 +16,8 @@ curl-sys = { path = "curl-sys", version = "0.2.1" } [target."cfg(all(unix, not(target_os = \"macos\")))".dependencies] openssl-sys = "0.7.0" +[target."cfg(windows)".dependencies] +winapi = "0.2" + ...
5
75
6
7fdc01ced974c3aeb8993ef8acc930bc864fbd31
Alex Crichton
2016-08-11T22:18:13
Bump to 0.3.4
diff --git a/Cargo.toml b/Cargo.toml index 493945b..76f3da7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.3.3" +version = "0.3.4" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"] license = "MIT"
1
1
1
aa5cf4fc3eef70142009cd3a991ce67dcf795e09
Alex Crichton
2016-08-11T22:16:26
Clear transfer data on Multi::add Closes #122
diff --git a/src/multi.rs b/src/multi.rs index 7160b86..8c38a18 100644 --- a/src/multi.rs +++ b/src/multi.rs @@ -256,7 +256,11 @@ impl Multi { /// The easy handle will remain added to the multi handle until you remove /// it again with `remove` on the returned handle - even when a transfer /// with that ...
1
5
1
68b9cb559c54a2768c6b5325fbf7e227c3bfd152
Alex Crichton
2016-08-11T05:51:20
Bump to 0.3.3
diff --git a/Cargo.toml b/Cargo.toml index 7a464d2..493945b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.3.2" +version = "0.3.3" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"] license = "MIT"
1
1
1
d273b919586030ac4b951e5411d67f86f68c1591
Alex Crichton
2016-08-11T05:46:27
Accept the breaking change for now
diff --git a/src/multi.rs b/src/multi.rs index a8c883a..7160b86 100644 --- a/src/multi.rs +++ b/src/multi.rs @@ -1,7 +1,6 @@ //! Multi - initiating multiple requests simultaneously use std::time::Duration; -use std::marker; use libc::{c_int, c_char, c_void, c_long}; use curl_sys; @@ -46,9 +45,8 @@ pub struct Me...
1
2
5
0e7a6510b4e4d46823764137d1c1c58fa3498604
Alex Crichton
2016-08-10T03:57:39
Return Error from Message::result
diff --git a/src/multi.rs b/src/multi.rs index 6455783..a8c883a 100644 --- a/src/multi.rs +++ b/src/multi.rs @@ -6,7 +6,7 @@ use std::marker; use libc::{c_int, c_char, c_void, c_long}; use curl_sys; -use MultiError; +use {MultiError, Error}; use easy::Easy; use panic; @@ -478,10 +478,14 @@ impl<'multi> Message<...
1
7
3
9fa0f3bb210329913859a72c81b7cec111a82238
Alex Crichton
2016-08-09T22:23:34
Learn about handle from Message
diff --git a/src/multi.rs b/src/multi.rs index e95ce53..6455783 100644 --- a/src/multi.rs +++ b/src/multi.rs @@ -488,7 +488,11 @@ impl<'multi> Message<'multi> { } } - // TODO: expose the easy handle somehow... + /// Returns whether this easy message was for the specified easy handle or + /// no...
1
5
1
f5982a968a391d3ecd517814962790ecd4943e2a
Alex Crichton
2016-08-09T22:17:59
Don't tie EasyHandle to a Multi Ensure that it's independently owned
diff --git a/src/multi.rs b/src/multi.rs index 86c3e9d..e95ce53 100644 --- a/src/multi.rs +++ b/src/multi.rs @@ -1,6 +1,7 @@ //! Multi - initiating multiple requests simultaneously use std::time::Duration; +use std::marker; use libc::{c_int, c_char, c_void, c_long}; use curl_sys; @@ -45,9 +46,9 @@ pub struct Me...
2
27
41
722d19a5fe237db40caaa9c6da68043bd327bef1
Alex Crichton
2016-08-07T00:38:03
Bump to 0.3.2
diff --git a/Cargo.toml b/Cargo.toml index 51bf9a6..7a464d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.3.1" +version = "0.3.2" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"] license = "MIT"
1
1
1
86eeb2906e525176682e30981bfbe361bb1af04a
Alex Crichton
2016-08-07T00:37:35
Be sure to initialize OpenSSL Looks like libcurl doesn't do this automatically for us.
diff --git a/src/lib.rs b/src/lib.rs index 968276f..bc726ce 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -75,6 +75,7 @@ pub mod multi; pub fn init() { static INIT: Once = ONCE_INIT; INIT.call_once(|| { + platform_init(); unsafe { curl_sys::curl_global_init(curl_sys::CURL_GLOBAL_AL...
1
9
0
985448774e54eb1cf988f564daa1063d67a576dc
Alex Crichton
2016-08-05T06:23:20
Add http/proxy auth types Closes #120
diff --git a/src/easy.rs b/src/easy.rs index d5b8cba..30eaa44 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -16,7 +16,7 @@ use std::str; use std::time::Duration; use curl_sys; -use libc::{self, c_long, c_int, c_char, c_void, size_t, c_double}; +use libc::{self, c_long, c_int, c_char, c_void, size_t, c_double, c_ulo...
1
130
1
809242829389ef786b27d91120b7c42649cbdcb9
Alex Crichton
2016-07-19T06:43:12
Bump to 0.3.1
diff --git a/Cargo.toml b/Cargo.toml index 8524227..51bf9a6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.3.0" +version = "0.3.1" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"] license = "MIT" @@ -10,7 +10,7 @@ de...
1
2
2
a71e70e62967bbc2dac2e625dcb1a2d9650cd51d
Alex Crichton
2016-07-19T06:42:22
Bump curl-sys to 0.2.1
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index 8f2beab..392a905 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curl-sys" -version = "0.2.0" +version = "0.2.1" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"]...
1
1
1
d5f84ac16eb7fa6fadd372f534507d0a1e9c8674
Alex Crichton
2016-07-14T18:32:09
Fail with a nice message for spaces in directories Closes #110
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index b32bd64..82e197e 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -91,6 +91,26 @@ fn main() { .current_dir(&dst.join("build")) .arg(msys_compatible(&src.join("curl/configure"))); + // For now this build script doesn't support paths w...
1
20
0
78af42fee1b73830d5126011642b346ea4ae853d
Nikita Baksalyar
2016-06-10T01:44:50
Fix compilation on Solaris/Illumos
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 77c431b..b32bd64 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -28,6 +28,11 @@ fn main() { return println!("cargo:rustc-flags=-l curl"); } + // Illumos/Solaris requires explicit linking with libnsl + if target.contains("solaris")...
1
5
0
5f9fe7be0d0b96d17ca554064eb3fa0a6e6b2111
Alex Crichton
2016-06-07T06:33:45
Use CString more aggressively with Part APIs Turns out it helps if we're correct!
diff --git a/src/easy.rs b/src/easy.rs index 0915d0f..d5b8cba 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -146,6 +146,7 @@ pub struct Form { tail: *mut curl_sys::curl_httppost, headers: Vec<List>, buffers: Vec<Vec<u8>>, + strings: Vec<CString>, } /// One part in a multipart upload, added to a `F...
1
25
17
5e8d206aadb9caabcac3e81847009303d5416c70
Alex Crichton
2016-05-19T22:11:42
Fill out docs of Transfer
diff --git a/src/easy.rs b/src/easy.rs index 58b6918..ce78597 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -94,7 +94,17 @@ pub struct Easy { data: Box<EasyData>, } -/// TODO: dox +/// A scoped transfer of information which borrows an `Easy` and allows +/// referencing stack-local data of the lifetime `'data`. ...
1
11
1
3f1e4a4226ae15a9206cc6e31e835263d10fb238
Alex Crichton
2016-05-19T18:27:06
Add a test that perform-in-perform is bad
diff --git a/tests/easy.rs b/tests/easy.rs index d93f5ea..fc9e441 100644 --- a/tests/easy.rs +++ b/tests/easy.rs @@ -641,3 +641,31 @@ b"); })); t!(h.transfer.borrow().perform()); } + +#[test] +fn perform_in_perform_is_bad() { + let s = Server::new(); + s.receive("\ +GET / HTTP/1.1\r\n\ +Host: 127.0.0.1...
1
28
0
e7462571b9441c9acc87a66226ca973ad185e598
Alex Crichton
2016-05-19T18:24:32
Change perform to take `&self`, add test for pausing While a transfer is in progress we need access to the original handle to unpause it, so it's gotta take `&self`.
diff --git a/src/easy.rs b/src/easy.rs index 1dcc7f1..58b6918 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -7,6 +7,7 @@ //! Most simple usage of libcurl will likely use the `Easy` structure here, and //! you can find more docs about its usage on that struct. +use std::cell::Cell; use std::ffi::{CString, CStr}; u...
2
167
50
894c0987e2bd8ffe8f9639280577e8036db337f6
Alex Crichton
2016-05-19T18:15:24
Remove the `Send` bound from Transfer callbacks The `Transfer` type isn't `Send`, so we can safely not require `Send` on all the callbacks`.
diff --git a/src/easy.rs b/src/easy.rs index 1645872..1dcc7f1 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -9,7 +9,6 @@ use std::ffi::{CString, CStr}; use std::io::SeekFrom; -use std::mem; use std::path::Path; use std::slice; use std::str; @@ -91,26 +90,37 @@ use panic; /// specific methods as well. pub struc...
2
385
331
d6d00bebecfb8b9e2a542ba4f849d6f678361f5a
Alex Crichton
2016-05-19T16:59:51
Start handling abort/pause Pause isn't done quite yet, but add a test for aborting from a read callback.
diff --git a/src/easy.rs b/src/easy.rs index e058758..157a99e 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -63,7 +63,7 @@ use panic; /// let mut handle = Easy::new(); /// handle.url("https://www.rust-lang.org/").unwrap(); /// handle.write_function(|data| { -/// stdout().write(data).unwrap() +/// Ok(stdout()...
4
148
36
d1c0c892cb54c441dedf43439e70f56c40724b41
Alex Crichton
2016-05-19T07:15:45
Remove lifetime from Multi The callbacks probably are gonna almost always be 'static anyway
diff --git a/src/multi.rs b/src/multi.rs index c6870b2..a3b74b8 100644 --- a/src/multi.rs +++ b/src/multi.rs @@ -1,7 +1,5 @@ //! Multi - initiating multiple requests simultaneously -use std::cell::Cell; -use std::marker; use std::time::Duration; use libc::{c_int, c_char, c_void, c_long}; @@ -24,26 +22,22 @@ use ...
2
26
33
fba07e108f812becdef6b967e44114d2018941e5
Alex Crichton
2016-05-19T06:13:37
Fix definition of `result` on `Message`
diff --git a/src/multi.rs b/src/multi.rs index d9a7527..6ca4892 100644 --- a/src/multi.rs +++ b/src/multi.rs @@ -493,16 +493,21 @@ impl<'e, 'm, 'cb> Drop for EasyHandle<'e, 'm, 'cb> { impl<'multi, 'cb> Message<'multi, 'cb> { /// If this message indicates that a transfer has finished, returns the - /// result...
2
18
4
b71689a259ec0ee1ce7938912f8357d77e7bd895
Alex Crichton
2016-05-12T17:06:35
Initial bindings of the libcurl multi API
diff --git a/Cargo.toml b/Cargo.toml index 13ee1a7..8524227 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,3 +15,6 @@ curl-sys = { path = "curl-sys", version = "0.2.0" } # Unix platforms use OpenSSL for now to provide SSL functionality [target."cfg(all(unix, not(target_os = \"macos\")))".dependencies] openssl-sys =...
7
802
0
53e46dd0daa44ae7cacb9653b9d254a2540b2dde
Alex Crichton
2016-05-19T06:02:04
Fix the testing server to correctly look for a body
diff --git a/tests/server/mod.rs b/tests/server/mod.rs index ff90ef6..86bd374 100644 --- a/tests/server/mod.rs +++ b/tests/server/mod.rs @@ -26,13 +26,10 @@ fn run(listener: &TcpListener, rx: &Receiver<Message>) { while let Some(i) = expected.find("\n") { let line = &expected[..i +...
1
2
5
72f5a882cdbbcb4644f55572a7ce211ad9e8cb37
bar
2016-05-13T06:24:37
Don't expose duphandle, doesn't seem safe for now
diff --git a/src/easy.rs b/src/easy.rs index 5fada45..8ce8f36 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -2312,30 +2312,33 @@ impl<'a> Easy<'a> { } } - /// Attempts to clone this handle, returning a new session handle with the - /// same options set for this handle. - /// - /// Internal s...
1
27
24
ccf35d3e4a41f1542fa025fe2da77d036f708092
Alex Crichton
2016-05-12T23:46:30
Don't expose private for now May want to do this in a more rustic fashion later on.
diff --git a/src/easy.rs b/src/easy.rs index f0a9fe1..0a3071d 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -1963,22 +1963,22 @@ impl<'a> Easy<'a> { enable as c_long) } - /// Stores a private pointer-sized piece of data. - /// - /// This can be retrieved through the `private` f...
1
20
19
ae8ac072e0eeffc489f8883661d31a01834a95cf
Alex Crichton
2016-05-12T18:04:37
Update curl-sys requirement
diff --git a/Cargo.toml b/Cargo.toml index df30dae..13ee1a7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ description = "Rust bindings to libcurl for making HTTP requests" [dependencies] libc = "0.2" -curl-sys = { path = "curl-sys", version = "0.1.0" } +curl-sys = { path = "curl-sys", version = "0.2.0"...
1
1
1
2c1e524f8e528e0a1d4d6741cda0cf2aa7797ac0
Alex Crichton
2016-05-12T17:54:39
Bump versions
diff --git a/Cargo.toml b/Cargo.toml index 5d8ca4c..df30dae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.2.19" +version = "0.3.0" authors = ["Carl Lerche <me@carllerche.com>", "Alex Crichton <alex@alexcrichton.com>"] license = "MIT" diff --git a/curl-s...
2
2
2
a6d0480394e0e9370d92eb6f3de63be3b2853d78
Alex Crichton
2016-05-12T17:51:25
Clean up curl-sys Cargo.toml
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml index f08f9f0..40c56ef 100644 --- a/curl-sys/Cargo.toml +++ b/curl-sys/Cargo.toml @@ -23,8 +23,3 @@ libc = "0.2" [target."cfg(all(unix, not(target_os = \"macos\")))".dependencies] openssl-sys = ">= 0" - -[target.i686-unknown-linux-gnu.dependencies] -openssl-sys...
1
0
5
03a417e259a391b05e799d7b3a58c1b3f936bb8c
Alex Crichton
2016-05-12T17:46:02
Improve error message of failed programs Closes #71
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 13d380a..34f3ae4 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -6,6 +6,7 @@ use std::ffi::OsString; use std::fs; use std::path::{PathBuf, Path}; use std::process::Command; +use std::io::ErrorKind; macro_rules! t { ($e:expr) => (match $e { @...
1
20
5
9f38b6d832c6bbf2d150c1acff6cdd0d61ba1fa4
Alex Crichton
2016-05-12T06:59:23
Add private pointer storage
diff --git a/src/easy.rs b/src/easy.rs index a232957..f0a9fe1 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -1963,6 +1963,23 @@ impl<'a> Easy<'a> { enable as c_long) } + /// Stores a private pointer-sized piece of data. + /// + /// This can be retrieved through the `private` fu...
1
27
2
c44f24ad076ce94b175ae166e3a89d81a16cedda
Alex Crichton
2016-05-12T04:51:01
Perform default configuration on reset()
diff --git a/src/easy.rs b/src/easy.rs index 22809c1..a232957 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -253,28 +253,9 @@ impl<'a> Easy<'a> { handle: handle, _marker: marker::PhantomData, }; - configure(&mut ret); + default_configure(&mut ret); ...
1
21
20
3695aa16da4b3777011a94331e237b97b49fb84f
Alex Crichton
2016-05-10T23:08:52
Configure cainfo/capath by default If curl is linked statically then this'll always be needed
diff --git a/Cargo.toml b/Cargo.toml index 963d3b3..eb2971e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,9 +13,5 @@ libc = "0.2" curl-sys = { path = "curl-sys", version = "0.1.0" } # Unix platforms use OpenSSL for now to provide SSL functionality -# [target."cfg(all(unix, not(target_os = \"macos\")))".dependenci...
3
26
10
4ed9f4a71a330e6f2c8efd9785f2f2eb36340d77
Alex Crichton
2016-05-10T22:42:09
Add a whole bunch more Easy docs
diff --git a/src/easy.rs b/src/easy.rs index 3c32039..17cd01b 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -1,4 +1,11 @@ -//! dox +//! Bindings to the "easy" libcurl API. +//! +//! This module contains some simple types like `Easy` and `List` which are just +//! wrappers around the corresponding libcurl types. There's...
1
182
27
3293678ba090304b7aa17e1e84d8ca656a81a540
Alex Crichton
2016-05-10T21:49:10
Add some crate docs
diff --git a/src/lib.rs b/src/lib.rs index 78f55be..d5dd808 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,45 @@ -//! TODO: dox +//! Rust bindings to the libcurl C library +//! +//! This crate contains bindings for an HTTP/HTTPS client which is powered by +//! [libcurl], the same library behind the `curl` command ...
1
42
1
2c8d8cf74ae1cbe7e4bfbd7a527d34c6f5add898
Alex Crichton
2016-05-10T21:41:38
Add a test where the main thread panics
diff --git a/tests/easy.rs b/tests/easy.rs index 50ed78c..3ec6e93 100644 --- a/tests/easy.rs +++ b/tests/easy.rs @@ -538,3 +538,23 @@ HTTP/1.1 200 OK\r\n\ // .collect::<Vec<_>>(); // assert_eq!(cookies.len(), 1); } + +#[test] +#[should_panic] +fn panic_in_callback() { + let s ...
1
20
0
241b0a408686b48850a9d91dab9c8f924db8877a
Alex Crichton
2016-05-10T18:51:42
Add a function to reset the lifetime
diff --git a/src/easy.rs b/src/easy.rs index 49ce3a4..3c32039 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -4,6 +4,7 @@ use std::cell::Cell; use std::ffi::{CString, CStr}; use std::io::SeekFrom; use std::marker; +use std::mem; use std::path::Path; use std::slice; use std::str; @@ -2136,6 +2137,24 @@ impl<'a> Eas...
1
19
0
17f9e0f01fc930cf7b5d657da79dcacb32f722b5
Alex Crichton
2016-05-10T18:30:48
Remove stray comment
diff --git a/src/easy.rs b/src/easy.rs index acd460e..49ce3a4 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -530,7 +530,6 @@ impl<'a> Easy<'a> { f as *mut F as *const c_char)); return Ok(()); - // TODO: expose `handle`? is that safe? unsafe extern fn cb<F>(buffer...
1
0
1
b90d77b1ea91a636b5d8cc4ac57131daa3d3e9c5
Alex Crichton
2016-05-10T18:17:52
Try to fix more MinGW weirdness
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index f006b7c..cfff02a 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -83,9 +83,7 @@ fn main() { .env("LD", &which("ld").unwrap()) .env("VERBOSE", "1") .current_dir(&dst.join("build")) - .arg(src.join("curl/configure").to_str()....
1
11
4
9fa64edce1ed7f20a26c0890a8bfa4cc43bb18f3
Alex Crichton
2016-05-10T18:03:55
Fix test across multiple curl versions
diff --git a/tests/easy.rs b/tests/easy.rs index aa202ff..50ed78c 100644 --- a/tests/easy.rs +++ b/tests/easy.rs @@ -210,9 +210,13 @@ Proxy-Connection: Keep-Alive\r\n\ HTTP/1.1 200 OK\r\n\ \r\n"); + let mut header = List::new(); + t!(header.append("Proxy-Connection: Keep-Alive")); + let mut h = handle();...
1
4
0
37b8f4770938437a3370841dd7ed8bec07418dd4
Alex Crichton
2016-05-10T17:42:51
Don't expose curl_httppost bindings for now
diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs index 61d32f3..4110880 100644 --- a/curl-sys/lib.rs +++ b/curl-sys/lib.rs @@ -35,22 +35,22 @@ pub type curl_socket_t = u64; #[cfg(windows)] pub const CURL_SOCKET_BAD: curl_socket_t = !0; -#[repr(C)] -pub struct curl_httppost { - pub next: *mut curl_httppost, - pu...
1
23
23
a10148d31aa36922862a7781289c8e4a89c27554
Alex Crichton
2016-05-10T17:31:27
Disable more protocols
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 706eb29..f006b7c 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -81,6 +81,7 @@ fn main() { cmd.env("CC", compiler.path()) .env("CFLAGS", cflags) .env("LD", &which("ld").unwrap()) + .env("VERBOSE", "1") .current_dir(&d...
1
3
0
fa7f82c6b2db678975e7b2b17124e3ae8082e0ec
Alex Crichton
2016-05-10T15:37:29
Display error codes as well
diff --git a/src/error.rs b/src/error.rs index 3cad8c1..1b4b7db 100644 --- a/src/error.rs +++ b/src/error.rs @@ -283,7 +283,7 @@ impl Error { impl fmt::Display for Error { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - error::Error::description(self).fmt(f) + write!(f, "[{}] {}", self.co...
1
1
1
d58e84d3b1ffbd833d716e38fb82905c90233b35
Alex Crichton
2016-05-10T07:06:41
Add some simple tests
diff --git a/tests/easy.rs b/tests/easy.rs index fd6bf80..aa202ff 100644 --- a/tests/easy.rs +++ b/tests/easy.rs @@ -503,3 +503,34 @@ fn url_encoding() { assert_eq!(h.url_decode("foo%ff"), b"foo\xff"); assert_eq!(h.url_decode(""), b""); } + +#[test] +fn getters() { + let s = Server::new(); + s.receive(...
1
31
0
25d8a09edbda792ef36029884ebf4fea625c727a
Alex Crichton
2016-05-10T06:51:43
Flesh out more of the accessors
diff --git a/src/easy.rs b/src/easy.rs index b8aa66d..acd460e 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -142,6 +142,12 @@ pub struct List { raw: *mut curl_sys::curl_slist, } +/// An iterator over `List` +pub struct Iter<'a> { + _me: &'a List, + cur: *mut curl_sys::curl_slist, +} + unsafe impl Send fo...
1
220
23
4d8488426aad9055e5a79087e31eb26804553d23
Alex Crichton
2016-05-10T06:01:08
Add a few getters [ci skip]
diff --git a/src/easy.rs b/src/easy.rs index 7dd5282..b8aa66d 100644 --- a/src/easy.rs +++ b/src/easy.rs @@ -1791,6 +1791,83 @@ impl<'a> Easy<'a> { enable as c_long) } + // ========================================================================= + // getters + + /// Get the la...
1
98
0
45b8cb56fbed45f828f96bdd8c286b2b3a8a26cb
Alex Crichton
2016-05-02T05:21:32
Bump to 0.2.19
diff --git a/Cargo.toml b/Cargo.toml index 59a021e..5f6cf87 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "curl" -version = "0.2.18" +version = "0.2.19" authors = ["Carl Lerche <me@carllerche.com>"] license = "MIT" repository = "https://github.com/carllerche/curl-rust"
1
1
1
6fc900fe7f31165c287dd0ca8d2b3a5b5e74b66c
Simon Sapin
2016-03-02T15:35:55
Declare compatibility with rust-url 1.0
diff --git a/Cargo.toml b/Cargo.toml index c7eaf49..59a021e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ repository = "https://github.com/carllerche/curl-rust" description = "Rust bindings to libcurl for making HTTP requests" [dependencies] -url = "0.5.0" +url = ">= 0.5, < 2.0" log = "0.3.0" libc = "0...
1
1
1
3ce0e54d497f1e2045ddc97ef809553a6c7ab92f
Alex Crichton
2016-04-29T06:38:34
Bump default test timeout
diff --git a/tests/easy.rs b/tests/easy.rs index 4bf8ae9..fd6bf80 100644 --- a/tests/easy.rs +++ b/tests/easy.rs @@ -18,7 +18,7 @@ mod server; fn handle<'a>() -> Easy<'a> { let mut e = Easy::new(); - t!(e.timeout(Duration::new(1, 0))); + t!(e.timeout(Duration::new(20, 0))); return e }
1
1
1
58e020bdb6ee0a89b0b5c18542d4c0cdac4fa461
Alex Crichton
2016-04-29T06:36:29
Don't run pkg-config on Windows
diff --git a/curl-sys/build.rs b/curl-sys/build.rs index c12aae6..706eb29 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -28,15 +28,17 @@ fn main() { } // Next, fall back and try to use pkg-config if its available. - match pkg_config::find_library("libcurl") { - Ok(lib) => { - ...
1
9
7