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 |
|---|---|---|---|---|---|---|---|
3fe8e0ace16d5eabc6797b53add3dea7dd31a351 | Alex Crichton | 2018-04-30T15:22:25 | Bump curl-sys to 0.4.4 | diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml
index 8395145..edb7541 100644
--- a/curl-sys/Cargo.toml
+++ b/curl-sys/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "curl-sys"
-version = "0.4.3"
+version = "0.4.4"
authors = ["Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>"]... | 1 | 1 | 1 |
311b9d06a9c4c536f1c54c48eefbbc5de75421cf | Alex Crichton | 2018-04-30T15:22:09 | Remove exclude annotations | diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml
index ca66b98..8395145 100644
--- a/curl-sys/Cargo.toml
+++ b/curl-sys/Cargo.toml
@@ -10,10 +10,6 @@ repository = "https://github.com/alexcrichton/curl-rust"
description = "Native bindings to the libcurl library"
documentation = "https://docs.rs/curl-sys"
catego... | 1 | 0 | 4 |
964a0492a6bb29ea6b513dcc784a80467ad2d250 | Alex Crichton | 2018-04-30T14:23:12 | Bump curl-sys to 0.4.3 | diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml
index 2f86fd4..ca66b98 100644
--- a/curl-sys/Cargo.toml
+++ b/curl-sys/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "curl-sys"
-version = "0.4.2"
+version = "0.4.3"
authors = ["Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>"]... | 1 | 1 | 1 |
9f2fc5ed9257f120081b603b35e2608054e1b3a9 | Alex Crichton | 2018-04-20T14:24:51 | Fix location of `exclude` | diff --git a/Cargo.toml b/Cargo.toml
index ca3a810..4032d6f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,10 +8,6 @@ homepage = "https://github.com/alexcrichton/curl-rust"
documentation = "https://docs.rs/curl"
description = "Rust bindings to libcurl for making HTTP requests"
categories = ["api-bindings", "web-prog... | 2 | 4 | 4 |
bb6d98d7d6e72a70d44cd16bf13ae54c77da83a0 | Tatsuyuki Ishi | 2018-04-20T09:42:26 | Manifest: add excludes
These are two of the biggest data directories that get extracted to Cargo cache, but they are not actually useful. Exclude them when publishing. | diff --git a/Cargo.toml b/Cargo.toml
index 4032d6f..ca3a810 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,6 +8,10 @@ homepage = "https://github.com/alexcrichton/curl-rust"
documentation = "https://docs.rs/curl"
description = "Rust bindings to libcurl for making HTTP requests"
categories = ["api-bindings", "web-prog... | 1 | 4 | 0 |
191b3ce1d29c6c991ae60fd586ce3b5ae0066c9b | Alex Crichton | 2018-04-14T15:01:40 | Bump curl/curl-sys versions | diff --git a/Cargo.toml b/Cargo.toml
index f7dd654..4032d6f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "curl"
-version = "0.4.11"
+version = "0.4.12"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
license = "MIT"
repository = "https://github.com/alexcrichton/curl-rust"
@@ -15,7 ... | 2 | 3 | 3 |
dd796acfc735d554d338af86c01cfd8d29f6dd28 | Klaus Purer | 2018-04-10T21:41:10 | fix(cargo): Install highest possible libz-sys dependency version | diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml
index ed51c5a..58200d7 100644
--- a/curl-sys/Cargo.toml
+++ b/curl-sys/Cargo.toml
@@ -20,7 +20,7 @@ name = "curl_sys"
path = "lib.rs"
[dependencies]
-libz-sys = "0.1.2"
+libz-sys = ">= 0.1.2"
libc = "0.2.2"
[target."cfg(all(unix, not(target_os = \"macos\"))... | 1 | 1 | 1 |
f4dc5bebc1d3596a73961fa951fe0b221c25fe59 | Klaus Purer | 2018-04-02T15:59:23 | fix(cargo): Update minimal dependency versions so that 'cargo build -Z minimal-versions' works | diff --git a/Cargo.toml b/Cargo.toml
index be98784..f7dd654 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,7 +16,7 @@ appveyor = { repository = "alexcrichton/curl-rust" }
[dependencies]
libc = "0.2"
curl-sys = { path = "curl-sys", version = "0.4.1" }
-socket2 = "0.3"
+socket2 = "0.3.2"
# Unix platforms use OpenS... | 2 | 4 | 4 |
2c486e3ae5b3e2c0423a0fef22fc5e07b4a5527b | Hideo Hattori | 2018-03-09T05:55:25 | fix test on macosx with using mio-extras crate | diff --git a/Cargo.toml b/Cargo.toml
index 51a58af..be98784 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -32,6 +32,7 @@ kernel32-sys = "0.2"
[dev-dependencies]
mio = "0.6"
+mio-extras = "2.0.3"
[workspace]
members = ["systest"]
diff --git a/tests/multi.rs b/tests/multi.rs
index 4238b73..c6eeea0 100644
--- a/test... | 2 | 3 | 1 |
50215f4a00f0eff3b6d07f9e7dedcefbf1182a60 | Tatsuyuki Ishi | 2018-03-07T08:55:18 | Fix systest whitelist | diff --git a/systest/build.rs b/systest/build.rs
index e72377e..73a354f 100644
--- a/systest/build.rs
+++ b/systest/build.rs
@@ -45,14 +45,17 @@ fn main() {
});
cfg.skip_const(|s| {
- // Ubuntu Xenial 16.04 ships with version 7.47.0 of curl, so explicitly
- // skip constants introduced after t... | 1 | 5 | 2 |
3b1a661fb8b1d1b04c28d23419cc6539eefd49a0 | Tatsuyuki Ishi | 2018-03-06T10:38:05 | Add support for CURLMOPT_PIPELINING | diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs
index 6414ca6..be7f9a7 100644
--- a/curl-sys/lib.rs
+++ b/curl-sys/lib.rs
@@ -926,6 +926,11 @@ pub const CURLMOPT_TIMERDATA: CURLMoption = CURLOPTTYPE_OBJECTPOINT + 5;
// pub const CURLMOPT_PIPELINING_SERVER_BL: CURLMoption = CURLOPTTYPE_OBJECTPOINT + 12;
// pub const CU... | 2 | 29 | 0 |
11c45e4474b7b377734704de18fd0b5e9253e8fe | Jacob Humphrey | 2018-03-02T19:55:51 | added time_condition to Easy | diff --git a/src/easy/handle.rs b/src/easy/handle.rs
index ac6d37f..f311e6a 100644
--- a/src/easy/handle.rs
+++ b/src/easy/handle.rs
@@ -1003,6 +1003,11 @@ impl Easy {
// =========================================================================
// getters
+ /// Same as [`Easy2::time_condition_unmet`](str... | 1 | 5 | 0 |
17e27d246444e7bbd0d2f9985638ca98eb554791 | Jacob Humphrey | 2018-03-02T19:54:08 | use getopt_long instead of getopt_bool | diff --git a/src/easy/handler.rs b/src/easy/handler.rs
index 09f0334..503ce13 100644
--- a/src/easy/handler.rs
+++ b/src/easy/handler.rs
@@ -1559,16 +1559,6 @@ impl<H> Easy2<H> {
self.setopt_long(curl_sys::CURLOPT_TIMECONDITION, cond as c_long)
}
- /// Get info on unmet time conditional
- ///
- ... | 1 | 17 | 19 |
93d2955017de323e3353cdd37a77ca554e66e3b7 | Jacob Humphrey | 2018-03-02T19:46:13 | removed rust-fmt | diff --git a/src/easy/handle.rs b/src/easy/handle.rs
index ac6d37f..5ee768e 100644
--- a/src/easy/handle.rs
+++ b/src/easy/handle.rs
@@ -1028,6 +1028,11 @@ impl Easy {
self.inner.filetime()
}
+ /// Same as [`Easy2::download_size`](struct.Easy2.html#method.download_size)
+ pub fn download_size(&mut... | 2 | 19 | 0 |
7c58d62789ad21714a32ffd3e3089433264af134 | Jacob Humphrey | 2018-03-02T18:23:36 | Fixed name of function | diff --git a/src/easy/handler.rs b/src/easy/handler.rs
index 6ee7127..09f0334 100644
--- a/src/easy/handler.rs
+++ b/src/easy/handler.rs
@@ -1565,7 +1565,7 @@ impl<H> Easy2<H> {
///
//// This corresponds to `CURLINFO_CONDITION_UNMET` and may return an error if the
/// option is not supported
- pub fn ... | 1 | 1 | 1 |
cf6a6a4b690694836f555f96853d6df7fa54d0fd | Jacob Humphrey | 2018-03-02T18:19:35 | added function to check if time condition was met | diff --git a/Cargo.toml b/Cargo.toml
index cd7006d..51a58af 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -32,3 +32,6 @@ kernel32-sys = "0.2"
[dev-dependencies]
mio = "0.6"
+
+[workspace]
+members = ["systest"] | 1 | 3 | 0 |
683952087bb96be311fa11dfccd1d43399f9614e | Jacob Humphrey | 2018-03-02T18:16:44 | added function to check if time condition was met | diff --git a/Cargo.toml b/Cargo.toml
index 51a58af..cd7006d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -32,6 +32,3 @@ kernel32-sys = "0.2"
[dev-dependencies]
mio = "0.6"
-
-[workspace]
-members = ["systest"]
diff --git a/src/easy/handler.rs b/src/easy/handler.rs
index 2eef3ee..6ee7127 100644
--- a/src/easy/handler... | 2 | 19 | 3 |
46154ddc47660f097ab55cc604da4089375a7822 | Alex Crichton | 2018-01-03T19:46:18 | Bump to 0.4.11 | diff --git a/Cargo.toml b/Cargo.toml
index 6347582..51a58af 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "curl"
-version = "0.4.10"
+version = "0.4.11"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
license = "MIT"
repository = "https://github.com/alexcrichton/curl-rust" | 1 | 1 | 1 |
74c714da87656a6aeecea6dc06c9a867e440899f | Alex Crichton | 2018-01-03T19:45:35 | Fix compile on MSVC | diff --git a/Cargo.toml b/Cargo.toml
index d527c95..6347582 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -28,6 +28,7 @@ winapi = "0.2"
[target.'cfg(target_env="msvc")'.dependencies]
schannel = "0.1.8"
+kernel32-sys = "0.2"
[dev-dependencies]
mio = "0.6" | 1 | 1 | 0 |
c351e89d01fce9f4c2a9767ee29a1c4a7d117102 | Alex Crichton | 2018-01-03T19:06:58 | Bump curl to 0.4.10 | diff --git a/Cargo.toml b/Cargo.toml
index 20cd3c5..d527c95 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "curl"
-version = "0.4.9"
+version = "0.4.10"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
license = "MIT"
repository = "https://github.com/alexcrichton/curl-rust"
@@ -15,7 +... | 1 | 2 | 2 |
7a9183057bfb3929e56de36c8371ac9870d0faa3 | Alex Crichton | 2018-01-03T19:06:18 | Bump curl-sys to 0.4.1 | diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml
index 37bc546..b77cd37 100644
--- a/curl-sys/Cargo.toml
+++ b/curl-sys/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "curl-sys"
-version = "0.4.0"
+version = "0.4.1"
authors = ["Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>"]... | 1 | 1 | 1 |
ddd455bd393c672dfe2c8ade5ec0040a6996747d | Alex Crichton | 2018-01-03T19:05:35 | Keep `fdset` the method but deprecate it
Should help us at least keep the same major version for now. | diff --git a/Cargo.toml b/Cargo.toml
index 1345b74..20cd3c5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -24,7 +24,7 @@ openssl-sys = "0.9.0"
openssl-probe = "0.1"
[target."cfg(windows)".dependencies]
-winapi = { version = "0.3", features = ["winsock2"] }
+winapi = "0.2"
[target.'cfg(target_env="msvc")'.dependenc... | 3 | 32 | 5 |
f40edd063cb8f3fb36a11252e7282cbc34c9a3f4 | Alex Crichton | 2018-01-03T18:25:40 | Revert back to 4.9
I think with the reexporting of curl-sys 0.3 reusing curl-sys 0.4 we should be
in the clear. | diff --git a/Cargo.toml b/Cargo.toml
index 0dc3b34..1345b74 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,9 +1,7 @@
[package]
-
name = "curl"
-version = "0.5.0"
-authors = ["Carl Lerche <me@carllerche.com>",
- "Alex Crichton <alex@alexcrichton.com>"]
+version = "0.4.9"
+authors = ["Alex Crichton <alex@alex... | 1 | 2 | 4 |
3bfbfe8a30eadb3db577fce30207807150a44774 | Alex Crichton | 2018-01-03T18:06:25 | Bump curl-sys dep | diff --git a/Cargo.toml b/Cargo.toml
index ce650ae..0dc3b34 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,7 +17,7 @@ appveyor = { repository = "alexcrichton/curl-rust" }
[dependencies]
libc = "0.2"
-curl-sys = { path = "curl-sys", version = "0.3.13" }
+curl-sys = { path = "curl-sys", version = "0.4" }
socket2 = ... | 1 | 1 | 1 |
76e5349895e0ea57e35005aa9cfbe349ae73cdc3 | Alex Crichton | 2018-01-03T18:05:29 | Bump to 0.5.0 and curl-sys to 0.4.0 | diff --git a/Cargo.toml b/Cargo.toml
index 1564954..ce650ae 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "curl"
-version = "0.4.8"
+version = "0.5.0"
authors = ["Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>"]
license = "MIT"
diff --git a/curl-sy... | 2 | 2 | 2 |
cb8a4e56131b83228fc72aaa61080260ae36b304 | Alex Crichton | 2018-01-03T18:04:48 | Update to winapi 0.3 | diff --git a/Cargo.toml b/Cargo.toml
index 784c397..1564954 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -18,7 +18,7 @@ appveyor = { repository = "alexcrichton/curl-rust" }
[dependencies]
libc = "0.2"
curl-sys = { path = "curl-sys", version = "0.3.13" }
-socket2 = "0.2"
+socket2 = "0.3"
# Unix platforms use OpenSS... | 4 | 9 | 8 |
2ac2050dca56cf60e414612b2fe94564b694256d | Stephen M. Coakley | 2017-12-21T22:45:53 | Accessors for handler even after attached to multi
Add accessors to the inner handler type that mirror the ones provided by `Easy2`. Useful if a callback handler has internal state useful to read while a request is active. | diff --git a/src/multi.rs b/src/multi.rs
index e721948..95733a3 100644
--- a/src/multi.rs
+++ b/src/multi.rs
@@ -645,6 +645,16 @@ impl fmt::Debug for EasyHandle {
}
impl<H> Easy2Handle<H> {
+ /// Acquires a reference to the underlying handler for events.
+ pub fn get_ref(&self) -> &H {
+ self.easy.get_... | 1 | 10 | 0 |
f9ddcf65d7e30c9d418b13105115a9c675b992f1 | Michael Neumann | 2017-11-02T11:53:36 | Replace --without-libidn with --without-libidn2
Curl uses libidn2, libidn is gone. The --without-libidn has no effect.
I found this while building statically-linked binaries of cargo for
DragonFly (which fails without this option). | diff --git a/curl-sys/build.rs b/curl-sys/build.rs
index 53e417c..6b3787c 100644
--- a/curl-sys/build.rs
+++ b/curl-sys/build.rs
@@ -173,7 +173,7 @@ fn main() {
}
cmd.arg("--without-librtmp");
- cmd.arg("--without-libidn");
+ cmd.arg("--without-libidn2");
cmd.arg("--without-libssh2");
cmd.ar... | 1 | 1 | 1 |
49c65f1363c1d005677fcc141319465cd749122d | Boris-Chengbiao Zhou | 2017-10-27T21:06:12 | Fix MinGW compilation on drives besides C: | diff --git a/curl-sys/build.rs b/curl-sys/build.rs
index a06719d..53e417c 100644
--- a/curl-sys/build.rs
+++ b/curl-sys/build.rs
@@ -3,10 +3,11 @@ extern crate pkg_config;
extern crate vcpkg;
extern crate cc;
+use std::ascii::AsciiExt;
use std::env;
use std::ffi::OsString;
use std::fs;
-use std::path::{PathBuf, ... | 1 | 14 | 5 |
376ea6c1f8c17485dea981cfbeed80a12654e7f1 | Jim McGrath | 2017-09-23T02:30:14 | make EasyData::ssl_ctx behave like Handler:ssl_ctx if there is no callback set | diff --git a/src/easy/handle.rs b/src/easy/handle.rs
index cb99282..ac6d37f 100644
--- a/src/easy/handle.rs
+++ b/src/easy/handle.rs
@@ -1317,7 +1317,7 @@ impl Handler for EasyData {
unsafe {
match self.callback(|s| &mut s.ssl_ctx) {
Some(ssl_ctx) => ssl_ctx(cx),
- ... | 2 | 7 | 3 |
20c7cc35ad3bc7c0be1594d541c0d4ac730e0fbe | Jim McGrath | 2017-09-23T01:21:02 | Revert "make Easy configure windows certs again"
This reverts commit c7156dc61b454bf37137397af3cf1774417bb27f. | diff --git a/src/easy/handle.rs b/src/easy/handle.rs
index b7129c9..cb99282 100644
--- a/src/easy/handle.rs
+++ b/src/easy/handle.rs
@@ -15,7 +15,6 @@ use easy::handler::{self, InfoType, SeekResult, ReadError, WriteError};
use easy::handler::{TimeCondition, IpResolve, HttpVersion, SslVersion};
use easy::handler::{Ssl... | 1 | 1 | 6 |
c7156dc61b454bf37137397af3cf1774417bb27f | Jim McGrath | 2017-09-22T19:06:08 | make Easy configure windows certs again | diff --git a/src/easy/handle.rs b/src/easy/handle.rs
index cb99282..b7129c9 100644
--- a/src/easy/handle.rs
+++ b/src/easy/handle.rs
@@ -15,6 +15,7 @@ use easy::handler::{self, InfoType, SeekResult, ReadError, WriteError};
use easy::handler::{TimeCondition, IpResolve, HttpVersion, SslVersion};
use easy::handler::{Ssl... | 1 | 6 | 1 |
f95f7019621c9392789ba52a6ef29c835a364455 | Jim McGrath | 2017-09-22T19:02:14 | use schannel 0.1.8 from crates.io | diff --git a/Cargo.toml b/Cargo.toml
index 3d549d5..784c397 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -30,8 +30,7 @@ winapi = "0.2"
[target.'cfg(target_env="msvc")'.dependencies]
kernel32-sys = "0.2"
-#schannel = "0.1.7"
-schannel = { git = "https://github.com/mcgoo/schannel-rs" }
+schannel = "0.1.8"
[dev-depe... | 2 | 2 | 3 |
3be651e0e487a4aa462c131ee49eb6ff2942b968 | Alex Crichton | 2017-09-19T18:08:10 | Bump curl-sys to 0.3.15 | diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml
index d5b31e7..9efe7e7 100644
--- a/curl-sys/Cargo.toml
+++ b/curl-sys/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "curl-sys"
-version = "0.3.14"
+version = "0.3.15"
authors = ["Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>... | 1 | 1 | 1 |
02305c2d1283d85d2e1da6fefbee44074b50339a | Alex Crichton | 2017-09-19T18:07:55 | Bump dep on gcc | diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml
index 1dd4c5b..d5b31e7 100644
--- a/curl-sys/Cargo.toml
+++ b/curl-sys/Cargo.toml
@@ -15,13 +15,6 @@ categories = ["external-ffi-bindings"]
travis-ci = { repository = "alexcrichton/curl-rust" }
appveyor = { repository = "alexcrichton/curl-rust" }
-[build-depend... | 2 | 10 | 10 |
3a78df97f033132f0660084198560cf4307118ca | Alex Crichton | 2017-09-15T17:22:22 | Touch up some style | diff --git a/src/easy/handle.rs b/src/easy/handle.rs
index 75bc19c..cb99282 100644
--- a/src/easy/handle.rs
+++ b/src/easy/handle.rs
@@ -15,7 +15,6 @@ use easy::handler::{self, InfoType, SeekResult, ReadError, WriteError};
use easy::handler::{TimeCondition, IpResolve, HttpVersion, SslVersion};
use easy::handler::{Ssl... | 3 | 71 | 76 |
10acfae5d16efda3b18727a38799b96b1d277786 | Jim McGrath | 2017-09-15T15:48:08 | only add certs from windows cert store if there is no custom ssl_ctx callback set | diff --git a/src/easy/handle.rs b/src/easy/handle.rs
index cb99282..75bc19c 100644
--- a/src/easy/handle.rs
+++ b/src/easy/handle.rs
@@ -15,6 +15,7 @@ use easy::handler::{self, InfoType, SeekResult, ReadError, WriteError};
use easy::handler::{TimeCondition, IpResolve, HttpVersion, SslVersion};
use easy::handler::{Ssl... | 2 | 7 | 3 |
eaced0cb9a6c77583bcfe0c84d087b51242f8bc1 | Jim McGrath | 2017-09-15T02:31:58 | use Version::get() instead of direct ffi | diff --git a/src/easy/windows.rs b/src/easy/windows.rs
index 033341c..31c2bfd 100644
--- a/src/easy/windows.rs
+++ b/src/easy/windows.rs
@@ -4,10 +4,9 @@ use libc::c_void;
#[cfg(target_env = "msvc")]
mod win {
- use curl_sys;
use kernel32;
use libc::{c_int, c_long, c_uchar, c_void};
- use std::ffi::... | 1 | 9 | 10 |
b5b5db3412d1022245a95fba703130d3d89e71e2 | Jim McGrath | 2017-09-12T01:39:45 | remove unnecessary use of Option | diff --git a/src/easy/windows.rs b/src/easy/windows.rs
index 7603d9a..033341c 100644
--- a/src/easy/windows.rs
+++ b/src/easy/windows.rs
@@ -14,19 +14,12 @@ mod win {
use schannel::cert_store::CertStore;
use winapi;
- fn lookup(module: Option<&str>, symbol: &str) -> Option<*const ::std::os::raw::c_void> ... | 1 | 9 | 15 |
7ad7099112e8737ae7eb3d63572d1b21dbbe3308 | Jim McGrath | 2017-09-11T20:00:09 | don't stop checking for certificates when seeing one with no valid uses | diff --git a/src/easy/windows.rs b/src/easy/windows.rs
index 47bb462..7603d9a 100644
--- a/src/easy/windows.rs
+++ b/src/easy/windows.rs
@@ -109,7 +109,7 @@ mod win {
let valid_uses = if let Ok(v) = cert.valid_uses() {
v
} else {
- return;
+ ... | 1 | 1 | 1 |
950e6e16a686c8292061bd28ec810b46f769981d | Jim McGrath | 2017-09-11T19:29:45 | check for a supported version of openssl before trying to add certificates to the store | diff --git a/src/easy/windows.rs b/src/easy/windows.rs
index 62e0178..47bb462 100644
--- a/src/easy/windows.rs
+++ b/src/easy/windows.rs
@@ -1,13 +1,13 @@
#![allow(non_camel_case_types, non_snake_case)]
- use libc:: c_void;
+use libc::c_void;
#[cfg(target_env = "msvc")]
mod win {
-
+ use curl_sys;
use... | 1 | 14 | 9 |
ea01f3603f5b627bbe9e602d065a63a4439b93d1 | Jim McGrath | 2017-09-11T19:24:22 | add CURLVERSION_NOW | diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs
index 9b94900..5de4570 100644
--- a/curl-sys/lib.rs
+++ b/curl-sys/lib.rs
@@ -811,6 +811,7 @@ pub const CURLVERSION_FIRST: CURLversion = 0;
pub const CURLVERSION_SECOND: CURLversion = 1;
pub const CURLVERSION_THIRD: CURLversion = 2;
pub const CURLVERSION_FOURTH: CURLver... | 1 | 1 | 0 |
3ebcc9dda71143db752b004e4853a1787dfa4671 | Jim McGrath | 2017-09-06T19:25:22 | systest: do not check function pointers on msvc | diff --git a/systest/build.rs b/systest/build.rs
index bef92d6..e72377e 100644
--- a/systest/build.rs
+++ b/systest/build.rs
@@ -60,5 +60,9 @@ fn main() {
s == "CURLOPT_UNIX_SOCKET_PATH" || s == "CURL_VERSION_UNIX_SOCKETS"
});
+ if cfg!(target_env = "msvc") {
+ cfg.skip_fn_ptrcheck(|s| s.start... | 1 | 4 | 0 |
e52ba4518ce0497faa1fef66ab2971bbbde501e5 | Jessica Hamilton | 2017-09-05T03:16:47 | Haiku: unconditionally add libcurl.
Like OSX, Haiku always has libcurl available, so share the same
logic here. | diff --git a/curl-sys/build.rs b/curl-sys/build.rs
index 4361679..3756abc 100644
--- a/curl-sys/build.rs
+++ b/curl-sys/build.rs
@@ -24,9 +24,9 @@ fn main() {
let dst = PathBuf::from(env::var_os("OUT_DIR").unwrap());
let windows = target.contains("windows");
- // OSX ships libcurl by default, so we just ... | 1 | 2 | 2 |
c7678c99bca336c58bc74b17d3a9e4e65f5e8cc8 | Jim McGrath | 2017-08-29T20:29:31 | make file upload test tolerant of linending changes in test file | diff --git a/tests/post.rs b/tests/post.rs
index 8b3413b..9a76d5c 100644
--- a/tests/post.rs
+++ b/tests/post.rs
@@ -80,11 +80,12 @@ Content-Type: foo/bar\r\n\
#[test]
fn file() {
let s = Server::new();
- s.receive("\
+ let formdata = include_str!("formdata");
+ s.receive(format!("\
POST / HTTP/1.1\r\n... | 1 | 5 | 3 |
ec44dafa285a10aac34b5a03fbc16441cfe89eb2 | James Cassidy | 2017-07-20T18:50:31 | fixed as requested in comments in pull request
* Added test case.
* Switched to backticks for example code.
* Added inner resolve_list.
* Fixed example code to actually run. | diff --git a/src/easy/handler.rs b/src/easy/handler.rs
index 412c771..9f0e9b4 100644
--- a/src/easy/handler.rs
+++ b/src/easy/handler.rs
@@ -375,6 +375,7 @@ pub struct Easy2<H> {
struct Inner<H> {
handle: *mut curl_sys::CURL,
header_list: Option<List>,
+ resolve_list: Option<List>,
form: Option<Form>... | 2 | 25 | 5 |
2420a5f0a61a451583643245655f6d59badee312 | James Cassidy | 2017-07-03T17:42:00 | added support for CURLOPT_RESOLVE | diff --git a/src/easy/handle.rs b/src/easy/handle.rs
index 170f801..cb99282 100644
--- a/src/easy/handle.rs
+++ b/src/easy/handle.rs
@@ -882,6 +882,11 @@ impl Easy {
self.inner.ip_resolve(resolve)
}
+ /// Same as [`Easy2::resolve`](struct.Easy2.html#method.resolve)
+ pub fn resolve(&mut self, list... | 2 | 29 | 0 |
15a12668a35edcd7e2d79648e9423da567fe6003 | Alex Crichton | 2017-07-17T14:11:44 | Bump to 0.4.8 | diff --git a/Cargo.toml b/Cargo.toml
index 52cc574..10720cb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "curl"
-version = "0.4.7"
+version = "0.4.8"
authors = ["Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>"]
license = "MIT" | 1 | 1 | 1 |
adb3d825d352b925fc2e35c576d46cb055a30489 | Armin Ronacher | 2017-07-17T09:26:50 | Pass null as form contents if length is empty
Due to a curl oddity if the length is 0 it will call strlen on the
string. Because there are no trailing nullbytes in rust this will
effectively cause a crash for empty form data. The workaround is
to ensure that a single null byte is passed for empty form data.
This fi... | diff --git a/src/easy/form.rs b/src/easy/form.rs
index 865081e..be98d4e 100644
--- a/src/easy/form.rs
+++ b/src/easy/form.rs
@@ -80,9 +80,19 @@ impl<'form, 'data> Part<'form, 'data> {
/// A pointer to the contents of this part, the actual data to send away.
pub fn contents(&mut self, contents: &'data [u8]) ->... | 1 | 11 | 1 |
503856adde21c32adfaf85ed57d03b8d8358dff3 | Alex Crichton | 2017-06-27T16:26:15 | Bump curl-sys to 0.3.14 | diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml
index 71dc387..1dd4c5b 100644
--- a/curl-sys/Cargo.toml
+++ b/curl-sys/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "curl-sys"
-version = "0.3.13"
+version = "0.3.14"
authors = ["Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>... | 1 | 1 | 1 |
8dfc9f96f8b79b1a34f0d5a9e5a21246df508ba4 | Alex Crichton | 2017-06-26T13:59:40 | Copy src files into OUT_DIR on msvc
No need to spray build files in the source tree! | diff --git a/curl-sys/build.rs b/curl-sys/build.rs
index 11ecd1a..4361679 100644
--- a/curl-sys/build.rs
+++ b/curl-sys/build.rs
@@ -292,7 +292,9 @@ fn build_msvc(target: &str) {
t!(fs::create_dir_all(dst.join("include/curl")));
t!(fs::create_dir_all(dst.join("lib")));
- cmd.current_dir(src.join("curl/wi... | 1 | 18 | 3 |
5069deaf828ff1d93becb0503f41a250171c97ad | Alex Crichton | 2017-06-21T16:07:00 | Bump to 0.4.7 | diff --git a/Cargo.toml b/Cargo.toml
index a2a2a14..52cc574 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "curl"
-version = "0.4.6"
+version = "0.4.7"
authors = ["Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>"]
license = "MIT"
@@ -17,7 +17,7 @@ ap... | 1 | 2 | 2 |
0b0a5b9c772595d35173abdc852afffd3104cd7e | Alex Crichton | 2017-06-21T16:05:50 | Bump curl-sys to 0.3.13 | diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml
index 897fdcd..71dc387 100644
--- a/curl-sys/Cargo.toml
+++ b/curl-sys/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "curl-sys"
-version = "0.3.12"
+version = "0.3.13"
authors = ["Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>... | 1 | 1 | 1 |
2bc134e01d3682fdc71251acaf926a33180cc8c3 | Alex Crichton | 2017-06-21T03:02:24 | Open all sockets with CLOEXEC
Leverage the open socket callback in libcurl to open all sockets with CLOEXEC,
leveraging `socket2` to provide the necessary runtime support. | diff --git a/Cargo.toml b/Cargo.toml
index 42e1051..a2a2a14 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -18,6 +18,7 @@ appveyor = { repository = "alexcrichton/curl-rust" }
[dependencies]
libc = "0.2"
curl-sys = { path = "curl-sys", version = "0.3.10" }
+socket2 = "0.2"
# Unix platforms use OpenSSL for now to prov... | 4 | 81 | 17 |
0b51049ccf86a944c9871bc5653f1e36da15dc64 | Jim McGrath | 2017-06-14T14:34:35 | don't fail if typical dependencies are not available in vcpkg | diff --git a/curl-sys/build.rs b/curl-sys/build.rs
index e52b253..11ecd1a 100644
--- a/curl-sys/build.rs
+++ b/curl-sys/build.rs
@@ -371,20 +371,20 @@ fn try_vcpkg() -> bool {
}
if successful_probe_details.is_some() {
- // found libcurl which depends on openssl, libssh2 and zlib
+ // Found lib... | 1 | 7 | 7 |
46832f403e8333f6a81afedf87f156792504a4a6 | Alex Crichton | 2017-06-13T17:15:14 | Bump curl-sys to 0.3.12 | diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml
index f7b4d7c..897fdcd 100644
--- a/curl-sys/Cargo.toml
+++ b/curl-sys/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "curl-sys"
-version = "0.3.11"
+version = "0.3.12"
authors = ["Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>... | 1 | 1 | 1 |
b69562e30f0c2676c2999c2086a60d91d4c8c0bb | Alex Crichton | 2017-06-13T13:57:55 | Remove MAKEFLAGS/MFLAGS from nmake invocations | diff --git a/curl-sys/build.rs b/curl-sys/build.rs
index 05c11f2..e52b253 100644
--- a/curl-sys/build.rs
+++ b/curl-sys/build.rs
@@ -302,6 +302,11 @@ fn build_msvc(target: &str) {
.arg("ENABLE_SSPI=yes")
.arg(format!("MACHINE={}", machine));
+ // These env vars are intended for `make` usually, not ... | 1 | 5 | 0 |
25260b49f93261dd98631c5e4b93598ac1c9f2da | Alex Crichton | 2017-06-13T03:23:00 | Fix build on windows-gnu | diff --git a/curl-sys/build.rs b/curl-sys/build.rs
index 7f70c85..05c11f2 100644
--- a/curl-sys/build.rs
+++ b/curl-sys/build.rs
@@ -196,10 +196,10 @@ fn main() {
cmd.arg("--disable-libcurl-option");
run(&mut cmd, "sh");
- run(Command::new(make())
+ run(make()
.arg(&format!("-j{}", en... | 1 | 11 | 4 |
7b28e1ab720463ffef4f63d0e7ddef7d70e0aeb0 | Alex Crichton | 2017-05-09T14:55:46 | Qualify link path with `native=` | diff --git a/curl-sys/build.rs b/curl-sys/build.rs
index 0ca72b6..a7f65af 100644
--- a/curl-sys/build.rs
+++ b/curl-sys/build.rs
@@ -52,7 +52,7 @@ fn main() {
.status();
}
- println!("cargo:rustc-link-search={}/lib", dst.display());
+ println!("cargo:rustc-link-search=na... | 1 | 1 | 1 |
60b36492d043e1e71cd65f1f65f20f8b34c9a28e | Alex Crichton | 2017-05-03T18:13:02 | Bind TCP keepalive-related options
Closes #162 | diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs
index f847a6e..54a888c 100644
--- a/curl-sys/lib.rs
+++ b/curl-sys/lib.rs
@@ -589,9 +589,9 @@ pub const CURLOPT_CLOSESOCKETDATA: CURLoption = CURLOPTTYPE_OBJECTPOINT + 209;
pub const CURLOPT_GSSAPI_DELEGATION: CURLoption = CURLOPTTYPE_LONG + 210;
// pub const CURLOPT_DNS... | 3 | 46 | 31 |
56e8e8d7bf569e22fbd7512e7be2cf9235a8ef3c | Alex Crichton | 2017-05-03T19:01:40 | Don't require ssl_ctx callback is called | diff --git a/src/easy/handler.rs b/src/easy/handler.rs
index 5cb29cc..4097f7b 100644
--- a/src/easy/handler.rs
+++ b/src/easy/handler.rs
@@ -250,6 +250,9 @@ pub trait Handler {
/// By default this function calls an internal method and
/// corresponds to `CURLOPT_SSL_CTX_FUNCTION` and
/// `CURLOPT_SSL_CTX... | 1 | 5 | 4 |
1868f096d46df47b88ec6444c86ff2718dbed9c8 | Alex Crichton | 2017-05-01T04:19:19 | Shard the `easy` module
It was getting a little large! | diff --git a/src/easy/form.rs b/src/easy/form.rs
new file mode 100644
index 0000000..865081e
--- /dev/null
+++ b/src/easy/form.rs
@@ -0,0 +1,323 @@
+use std::ffi::CString;
+use std::fmt;
+use std::path::Path;
+
+use FormError;
+use curl_sys;
+use easy::{list, List};
+
+/// Multipart/formdata for an HTTP POST request.
+... | 4 | 445 | 411 |
65651772124a3f478f5568f284cc4ad1d5c33a49 | Alex Crichton | 2017-04-30T05:08:11 | Implement Debug for all types
Also improve the Debug repr for a number of existing types.
Closes #159 | diff --git a/src/easy.rs b/src/easy.rs
index ce04550..9c27495 100644
--- a/src/easy.rs
+++ b/src/easy.rs
@@ -9,6 +9,7 @@
use std::cell::{RefCell, Cell};
use std::ffi::{CString, CStr};
+use std::fmt;
use std::io::SeekFrom;
use std::path::Path;
use std::slice;
@@ -163,6 +164,7 @@ pub struct Part<'form, 'data> {
... | 4 | 207 | 4 |
f69a93a2501f66943fccf9ef81029402403bbfec | Alex Crichton | 2017-04-30T04:41:45 | Fix docs of progress_function | diff --git a/src/easy.rs b/src/easy.rs
index f05bd5a..ce04550 100644
--- a/src/easy.rs
+++ b/src/easy.rs
@@ -712,7 +712,7 @@ impl Easy {
/// called during periods of idleness unless you call the appropriate
/// libcurl function that performs transfers.
///
- /// `noprogress` must be set to 0 to make t... | 1 | 1 | 1 |
9af0dbb6d0859a91e48af1d1d9777ae75c62dc1b | Alex Crichton | 2017-04-24T14:38:24 | Ignore noproxy test for now | diff --git a/tests/easy.rs b/tests/easy.rs
index a892489..e98193a 100644
--- a/tests/easy.rs
+++ b/tests/easy.rs
@@ -218,6 +218,7 @@ HTTP/1.1 200 OK\r\n\
}
#[test]
+#[ignore] // fails on newer curl versions? seems benign
fn noproxy() {
let s = Server::new();
s.receive("\ | 1 | 1 | 0 |
75af2fc0f56f3b09ab4d32aba7401d13dca697ed | Alex Crichton | 2017-04-24T13:57:12 | Bump curl-sys to 0.3.11 | diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml
index 3fa4928..c484517 100644
--- a/curl-sys/Cargo.toml
+++ b/curl-sys/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "curl-sys"
-version = "0.3.10"
+version = "0.3.11"
authors = ["Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>... | 1 | 1 | 1 |
090eda1cac02dd66ca517ab79fbffa8776502d87 | Ivan Nejgebauer | 2017-03-15T20:49:54 | Explicitly disable PSL support
If the PSL (Public Suffix List) library is installed on the host,
curl's configure script will enable it, but the curl-sys build.rs
doesn't include it in the library list, so subsequent linking
with libcurl-sys will fail. Since curl-sys doesn't need PSL
support, it's best to disable it e... | diff --git a/curl-sys/build.rs b/curl-sys/build.rs
index bf10f70..0ca72b6 100644
--- a/curl-sys/build.rs
+++ b/curl-sys/build.rs
@@ -168,6 +168,7 @@ fn main() {
cmd.arg("--without-librtmp");
cmd.arg("--without-libidn");
cmd.arg("--without-libssh2");
+ cmd.arg("--without-libpsl");
cmd.arg("--disab... | 1 | 1 | 0 |
facb321bf6bdfd694cd28246a939c2c4e54b5e4b | Kai Strempel | 2017-03-10T07:13:14 | removing unix-sockets from systest | diff --git a/src/version.rs b/src/version.rs
index 9904c27..c1e5b87 100644
--- a/src/version.rs
+++ b/src/version.rs
@@ -46,7 +46,7 @@ impl Version {
/// Returns a numeric representation of the version number
///
/// This is a 24 bit number made up of the major number, minor, and then
- /// patch numb... | 3 | 13 | 3 |
4923f296732361650fa53b1c82a09f161d11e6ce | Kai Strempel | 2017-03-08T20:11:51 | adds unix domain socket support | diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs
index 6111159..f847a6e 100644
--- a/curl-sys/lib.rs
+++ b/curl-sys/lib.rs
@@ -601,6 +601,7 @@ pub const CURLOPT_SSL_OPTIONS: CURLoption = CURLOPTTYPE_LONG + 216;
// pub const CURLOPT_DNS_LOCAL_IP4: CURLoption = CURLOPTTYPE_OBJECTPOINT + 222;
// pub const CURLOPT_DNS_LOCA... | 3 | 19 | 0 |
8f928656df902df72fc459c55a1e4962c62fa7dd | Kai Strempel | 2017-03-08T19:07:58 | adds unix domain socket feature question | diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs
index b86c71d..6111159 100644
--- a/curl-sys/lib.rs
+++ b/curl-sys/lib.rs
@@ -863,6 +863,7 @@ pub const CURL_VERSION_CURLDEBUG: c_int = 1 << 13;
pub const CURL_VERSION_TLSAUTH_SRP: c_int = 1 << 14;
pub const CURL_VERSION_NTLM_WB: c_int = 1 << 15;
// pub const CURL_VERSI... | 1 | 1 | 0 |
da73dbdc8c15c67b59bea62e114a643c8e1eabca | frk | 2017-03-04T12:57:26 | Windows: Copy zlib.lib instead of hard-linking it
Copy zlib.lib instead of linking it to zlib_a.lib since exFAT
does not support hard- or soft-linking files | diff --git a/curl-sys/build.rs b/curl-sys/build.rs
index 71819d4..bf10f70 100644
--- a/curl-sys/build.rs
+++ b/curl-sys/build.rs
@@ -304,7 +304,7 @@ fn build_msvc(target: &str) {
// zlib_a.lib, so make sure it's named correctly (where libz-sys just
// produces zlib.lib)
let _ = fs::remove_fil... | 1 | 1 | 1 |
633387cd6ff57fc643ee6c3b1581b21742e3b319 | Alex Crichton | 2017-02-16T15:34:47 | Disable more size-related things in libcurl | diff --git a/curl-sys/build.rs b/curl-sys/build.rs
index 617b677..71819d4 100644
--- a/curl-sys/build.rs
+++ b/curl-sys/build.rs
@@ -182,6 +182,11 @@ fn main() {
cmd.arg("--disable-manual");
cmd.arg("--disable-smb");
cmd.arg("--disable-sspi");
+ cmd.arg("--disable-manual");
+ cmd.arg("--disable-uni... | 1 | 5 | 0 |
eaac3987d0bd4cb7ff91f6638979c5b5772d2b31 | Alex Crichton | 2017-02-14T20:31:44 | Attempt to fix CI | diff --git a/systest/build.rs b/systest/build.rs
index 406022b..a02dc7c 100644
--- a/systest/build.rs
+++ b/systest/build.rs
@@ -54,7 +54,7 @@ fn main() {
s == "CURLSSLOPT_NO_REVOKE" ||
// Disable HTTP/2 checking if feature not enabled
- (cfg!(feature = "http2") && s.starts_with("CURL_HTTP_VE... | 1 | 1 | 1 |
e226043a6fbbb83b1d5ee3f01ed4509f8c4f749a | Alex Crichton | 2017-02-14T15:42:09 | Bump to 0.4.6 | diff --git a/Cargo.toml b/Cargo.toml
index eb41891..42e1051 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "curl"
-version = "0.4.5"
+version = "0.4.6"
authors = ["Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>"]
license = "MIT"
@@ -17,7 +17,7 @@ ap... | 1 | 2 | 2 |
7e79950b2c12d99d928fe363d1745be4ad4d8c42 | Alex Crichton | 2017-02-14T15:41:40 | Bump curl-sys to 0.3.10 | diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml
index f2f72b9..3fa4928 100644
--- a/curl-sys/Cargo.toml
+++ b/curl-sys/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "curl-sys"
-version = "0.3.9"
+version = "0.3.10"
authors = ["Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>"... | 1 | 1 | 1 |
a1ca1c038bedc157d7a0cb8da71e929c56b233f4 | Alex Crichton | 2017-02-14T01:20:27 | Bind CURLOPT_SSL_OPTIONS
Add `ssl_options` and `SslOpt` for the various options it can be used with. | diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs
index cf140db..b86c71d 100644
--- a/curl-sys/lib.rs
+++ b/curl-sys/lib.rs
@@ -592,7 +592,7 @@ pub const CURLOPT_GSSAPI_DELEGATION: CURLoption = CURLOPTTYPE_LONG + 210;
// pub const CURLOPT_TCP_KEEPALIVE: CURLoption = CURLOPTTYPE_LONG + 213;
// pub const CURLOPT_TCP_KEEPI... | 2 | 96 | 27 |
432c6758dcbb3afeea300087a86a11b3d841eded | Alex Crichton | 2017-02-10T02:39:31 | Touch up some style | diff --git a/src/multi.rs b/src/multi.rs
index ec8a93c..dc3fa16 100644
--- a/src/multi.rs
+++ b/src/multi.rs
@@ -439,7 +439,8 @@ impl Multi {
/// m.wait(&mut [], Duration::from_secs(1)).unwrap();
/// }
/// ```
- pub fn wait(&self, waitfds: &mut [WaitFd], timeout: Duration) -> Result<u32, MultiErro... | 1 | 7 | 2 |
5398a2e2fae13470b7b3a9b264c60fd07051528d | Lukas Werling | 2017-02-09T19:04:58 | Limit the waitfds test to Linux only | diff --git a/tests/multi.rs b/tests/multi.rs
index 9726f06..4238b73 100644
--- a/tests/multi.rs
+++ b/tests/multi.rs
@@ -222,7 +222,10 @@ HTTP/1.1 200 OK\r\n\
assert_eq!(t!(e.response_code()), 200);
}
-#[cfg(unix)]
+// Tests passing raw file descriptors to Multi::wait. The test is limited to Linux only as the
+... | 1 | 4 | 1 |
dda56d8c72cc779807e5f52e28731948a796586b | Alex Crichton | 2017-02-09T18:44:30 | Bump curl-sys to 0.3.9 | diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml
index d881a0f..f2f72b9 100644
--- a/curl-sys/Cargo.toml
+++ b/curl-sys/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "curl-sys"
-version = "0.3.8"
+version = "0.3.9"
authors = ["Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>"]... | 1 | 1 | 1 |
a5bbed92e602cf1989f31b2e0e40328e78186281 | Lukas Werling | 2017-02-08T19:55:59 | Add waitfds parameter to Multi::wait | diff --git a/src/multi.rs b/src/multi.rs
index 1f5eb72..ec8a93c 100644
--- a/src/multi.rs
+++ b/src/multi.rs
@@ -2,15 +2,14 @@
use std::marker;
use std::time::Duration;
-use std::ptr;
-use libc::{c_int, c_char, c_void, c_long};
+use libc::{c_int, c_char, c_void, c_long, c_short};
use curl_sys;
#[cfg(windows)]... | 2 | 130 | 8 |
a8a0cf2f915392343835582d37e07e42a4e57218 | Jorge Aparicio | 2017-02-08T20:31:10 | restore --host and --target for windows targets | diff --git a/curl-sys/build.rs b/curl-sys/build.rs
index 60a37f7..617b677 100644
--- a/curl-sys/build.rs
+++ b/curl-sys/build.rs
@@ -143,9 +143,20 @@ fn main() {
if target != host &&
(!target.contains("windows") || !host.contains("windows")) {
- cmd.arg(format!("--build={}", host));
- cmd.a... | 1 | 14 | 3 |
5eead4704190d7c776d7e7825f986a85b59643a0 | Jorge Aparicio | 2016-12-26T21:17:38 | curl-sys: fix call to `configure` in build script
the old form caused `configure` to probe the environment using some
tests that looked like this:
```
$ $TARGET-gcc conftest.c
$ ./conftest
```
which always failed because `conftest` could have been compiled for e.g.
MIPS but was being called from a x86_64 system.
Wi... | diff --git a/curl-sys/build.rs b/curl-sys/build.rs
index 85dda0f..60a37f7 100644
--- a/curl-sys/build.rs
+++ b/curl-sys/build.rs
@@ -143,7 +143,8 @@ fn main() {
if target != host &&
(!target.contains("windows") || !host.contains("windows")) {
- cmd.arg(format!("--host={}", host));
+ cmd.arg... | 1 | 2 | 1 |
1aa23bd1eafa2dff64cc2595db13bfe7200e3fd8 | Lukas Werling | 2017-02-07T20:56:46 | Make Multi::wait take a Duration instead of i32 | diff --git a/src/multi.rs b/src/multi.rs
index c42ff7c..1f5eb72 100644
--- a/src/multi.rs
+++ b/src/multi.rs
@@ -412,7 +412,8 @@ impl Multi {
/// Block until activity is detected or a timeout passes.
///
- /// The timeout is given in milliseconds.
+ /// The timeout is used in millisecond-precision. La... | 2 | 17 | 6 |
37e717fac4b348a09f283b85e7b135701bdf0df4 | Lukas Werling | 2017-02-07T19:04:10 | Add Multi::wait function
`curl_multi_wait` was introduced in curl 7.28.0 which is probably the
minimum required curl version now. | diff --git a/curl-sys/lib.rs b/curl-sys/lib.rs
index 48916a0..cf140db 100644
--- a/curl-sys/lib.rs
+++ b/curl-sys/lib.rs
@@ -9,7 +9,7 @@ extern crate openssl_sys;
#[cfg(windows)]
extern crate winapi;
-use libc::{c_int, c_char, c_uint, c_long, c_double, c_void, size_t, time_t};
+use libc::{c_int, c_char, c_uint, c_s... | 3 | 49 | 17 |
82e49f27549377a6bde49e0cd4ee65142d5c2612 | Alex Crichton | 2017-02-05T21:08:57 | Bump dep on curl-sys | diff --git a/Cargo.toml b/Cargo.toml
index f99e8fc..eb41891 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,7 +17,7 @@ appveyor = { repository = "alexcrichton/curl-rust" }
[dependencies]
libc = "0.2"
-curl-sys = { path = "curl-sys", version = "0.3.7" }
+curl-sys = { path = "curl-sys", version = "0.3.8" }
# Unix ... | 1 | 1 | 1 |
01c2dec68475176877953653c02b2056e8b52871 | Alex Crichton | 2017-02-05T21:08:30 | Bump curl-sys to 0.3.8 | diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml
index c3d73e7..d881a0f 100644
--- a/curl-sys/Cargo.toml
+++ b/curl-sys/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "curl-sys"
-version = "0.3.7"
+version = "0.3.8"
authors = ["Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>"]... | 1 | 1 | 1 |
8edd5268edbd79f9ed2a9dc8a2e41cc4171d20e6 | Alex Crichton | 2017-02-05T21:07:25 | Bump to 0.4.5 | diff --git a/Cargo.toml b/Cargo.toml
index aa20485..f99e8fc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "curl"
-version = "0.4.4"
+version = "0.4.5"
authors = ["Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>"]
license = "MIT" | 1 | 1 | 1 |
2fb00ee05a83535befa9421808613352641636bf | Simon Vandel Sillesen | 2017-02-05T01:12:40 | use FFI directly | diff --git a/src/easy.rs b/src/easy.rs
index 9b42ed2..70e1ad1 100644
--- a/src/easy.rs
+++ b/src/easy.rs
@@ -14,7 +14,6 @@ use std::path::Path;
use std::slice;
use std::str;
use std::time::Duration;
-use std::mem::transmute;
use curl_sys;
use libc::{self, c_long, c_int, c_char, c_void, size_t, c_double, c_ulong}... | 1 | 6 | 3 |
70e1d216dfacd0a4e5bd6c735413327d684d269c | Simon Vandel Sillesen | 2017-02-04T22:26:56 | Add getters for time
Adds bindings for the following options.
- CURLINFO_TOTAL_TIME
- CURLINFO_NAMELOOKUP_TIME
- CURLINFO_CONNECT_TIME
- CURLINFO_APPCONNECT_TIME
- CURLINFO_PRETRANSFER_TIME
- CURLINFO_STARTTRANSFER_TIME
- CURLINFO_REDIRECT_TIME | diff --git a/src/easy.rs b/src/easy.rs
index 34afde3..9b42ed2 100644
--- a/src/easy.rs
+++ b/src/easy.rs
@@ -14,6 +14,7 @@ use std::path::Path;
use std::slice;
use std::str;
use std::time::Duration;
+use std::mem::transmute;
use curl_sys;
use libc::{self, c_long, c_int, c_char, c_void, size_t, c_double, c_ulong}... | 1 | 126 | 0 |
421141775f8f88e10505df039268599975c5b2b1 | Alex Crichton | 2017-01-27T02:48:31 | Don't reset debug callback if not already set
This helps preserve default behavior
Closes #146 | diff --git a/src/easy.rs b/src/easy.rs
index 68c3798..1f986b2 100644
--- a/src/easy.rs
+++ b/src/easy.rs
@@ -116,6 +116,7 @@ struct EasyData {
write: Option<Box<FnMut(&[u8]) -> Result<usize, WriteError> + Send>>,
read: Option<Box<FnMut(&mut [u8]) -> Result<usize, ReadError> + Send>>,
seek: Option<Box<FnM... | 1 | 10 | 1 |
a7b9475c10eb16115c39329f3f9197a9c3c8d798 | Max Dymond | 2017-01-26T21:27:47 | Gate HTTP_VERSION_2 constants from systest unless systest is compiled with the http2 feature | diff --git a/systest/Cargo.toml b/systest/Cargo.toml
index 301b949..a15114c 100644
--- a/systest/Cargo.toml
+++ b/systest/Cargo.toml
@@ -10,3 +10,6 @@ libc = "0.2"
[build-dependencies]
ctest = "0.1"
+
+[features]
+http2 = []
\ No newline at end of file
diff --git a/systest/build.rs b/systest/build.rs
index b162b54.... | 2 | 7 | 0 |
4f965c2fa675f885e1af81efe204879f7e48beca | Tshepang Lekhonkhobe | 2017-01-26T18:03:57 | doc: remove extraneous word | diff --git a/src/easy.rs b/src/easy.rs
index 3587471..68c3798 100644
--- a/src/easy.rs
+++ b/src/easy.rs
@@ -1646,7 +1646,7 @@ impl Easy {
/// In unix-like systems, this might cause signals to be used unless
/// `nosignal` is set.
///
- /// Since this puts a hard limit for how long time a request is a... | 1 | 1 | 1 |
9c23ce8ff47c92a2472c795f30acc48c40026ab9 | Max Dymond | 2017-01-26T08:44:56 | Change gating of HTTP/2
- libcurl already does feature checking with the setopt mechanism, so will return an error if it receives an option it doesn't know about | diff --git a/Cargo.toml b/Cargo.toml
index 1e65f8c..86f4924 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -25,7 +25,3 @@ mio = "0.6"
[workspace]
members = ["systest"]
-
-[features]
-default = []
-http2 = ["curl-sys/http2"]
\ No newline at end of file
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml
index e1caf3... | 4 | 6 | 31 |
a0ce9cbac9918e95f0eaf60bfcce808e1bac92fa | Alex Crichton | 2017-01-25T18:54:45 | Bump to 0.4.4 | diff --git a/Cargo.toml b/Cargo.toml
index 168ad64..aa20485 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "curl"
-version = "0.4.3"
+version = "0.4.4"
authors = ["Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>"]
license = "MIT" | 1 | 1 | 1 |
aa3859f5f32dc2fa80962496babf4bb3a48fa359 | Alex Crichton | 2017-01-25T18:54:00 | Update curl crate metadata | diff --git a/Cargo.toml b/Cargo.toml
index 86f4924..168ad64 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,12 +5,19 @@ version = "0.4.3"
authors = ["Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>"]
license = "MIT"
-repository = "https://github.com/carllerche/curl-rust"
+repositor... | 1 | 9 | 2 |
c7c7a1841f5b28793e09c7423e39dcc41e8f6bfa | Alex Crichton | 2017-01-25T18:52:28 | Bump curl-sys to 0.3.7 | diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml
index 093e50a..c3d73e7 100644
--- a/curl-sys/Cargo.toml
+++ b/curl-sys/Cargo.toml
@@ -1,13 +1,19 @@
[package]
name = "curl-sys"
-version = "0.3.6"
+version = "0.3.7"
authors = ["Carl Lerche <me@carllerche.com>",
"Alex Crichton <alex@alexcrichton.com>... | 2 | 9 | 2 |
5328fc4c6c662caf6e9b8c181650194859d31245 | Max Dymond | 2017-01-25T17:53:14 | Added gating for HTTP/2 features
- Added "http2" feature to both curl-sys and curl-rust.
- Made http_version available by default.
- Changed type of new curl-sys constants to c_int. | diff --git a/Cargo.toml b/Cargo.toml
index 86f4924..1e65f8c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -25,3 +25,7 @@ mio = "0.6"
[workspace]
members = ["systest"]
+
+[features]
+default = []
+http2 = ["curl-sys/http2"]
\ No newline at end of file
diff --git a/curl-sys/Cargo.toml b/curl-sys/Cargo.toml
index 093e50... | 4 | 38 | 7 |
fd9b899643c56290e7b4798ab0a04fe1af95e589 | Max Dymond | 2017-01-25T14:29:52 | Allow HTTP version to be set on an Easy object.
Allow linking to nghttp2 when compiling from scratch. | diff --git a/curl-sys/build.rs b/curl-sys/build.rs
index 1558b8a..85dda0f 100644
--- a/curl-sys/build.rs
+++ b/curl-sys/build.rs
@@ -68,6 +68,7 @@ fn main() {
let openssl_root = register_dep("OPENSSL");
let zlib_root = register_dep("Z");
+ let nghttp2_root = register_dep("NGHTTP2");
let cfg = gcc:... | 3 | 58 | 1 |
af1636558f5351f86ddee31bf6b7f7adf2b2309d | Alex Crichton | 2017-01-18T23:37:45 | Fix a typo
Closes #143 | diff --git a/src/easy.rs b/src/easy.rs
index 10e453f..3587471 100644
--- a/src/easy.rs
+++ b/src/easy.rs
@@ -103,7 +103,7 @@ pub struct Easy {
/// created by the `Easy::transfer` method, is used for this sort of request.
///
/// The callbacks attached to a `Transfer` are only active for that one transfer
-/// object... | 1 | 1 | 1 |
dd24b2a4d7d30955e6be0e46dbe25de2dcf0373e | Tshepang Lekhonkhobe | 2017-01-17T12:56:13 | doc: make 'add' description more easy to read | diff --git a/src/easy.rs b/src/easy.rs
index 62504a8..10e453f 100644
--- a/src/easy.rs
+++ b/src/easy.rs
@@ -3556,8 +3556,8 @@ impl<'form, 'data> Part<'form, 'data> {
/// Attempts to add this part to the `Form` that it was created from.
///
- /// If any error happens while adding that error is returned, ... | 1 | 2 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.