Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- build: macos
os: macos-latest
rust: stable
target: x86_64-apple-darwin
target: aarch64-apple-darwin
- build: win32
os: windows-latest
rust: stable
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "curl"
version = "0.4.48"
version = "0.4.49"
authors = ["Alex Crichton <[email protected]>"]
license = "MIT"
repository = "https://github.com/alexcrichton/curl-rust"
Expand All @@ -14,11 +14,11 @@ edition = "2018"

[dependencies]
libc = "0.2.42"
curl-sys = { path = "curl-sys", version = "0.4.77", default-features = false }
curl-sys = { path = "curl-sys", version = "0.4.83", default-features = false }
socket2 = "0.6.0"

# Unix platforms use OpenSSL for now to provide SSL functionality
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies]
[target.'cfg(all(unix))'.dependencies]
openssl-sys = { version = "0.9.64", optional = true }
openssl-probe = { version = "0.1.2", optional = true }

Expand Down
4 changes: 2 additions & 2 deletions curl-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "curl-sys"
version = "0.4.82+curl-8.14.1"
version = "0.4.83+curl-8.15.0"
authors = ["Alex Crichton <[email protected]>"]
links = "curl"
build = "build.rs"
Expand All @@ -26,7 +26,7 @@ version = "0.15"
optional = true
features = ["no_log_capture"]

[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies]
[target.'cfg(all(unix))'.dependencies]
openssl-sys = { version = "0.9.64", optional = true }

[target.'cfg(windows)'.dependencies]
Expand Down
36 changes: 4 additions & 32 deletions curl-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ fn main() {
.replace("@LIBCURL_LIBS@", "")
.replace("@SUPPORT_FEATURES@", "")
.replace("@SUPPORT_PROTOCOLS@", "")
.replace("@CURLVERSION@", "8.14.1"),
.replace("@CURLVERSION@", "8.15.0"),
)
.unwrap();

Expand Down Expand Up @@ -162,11 +162,13 @@ fn main() {
.file("curl/lib/curl_trc.c")
.file("curl/lib/curlx/base64.c")
.file("curl/lib/curlx/dynbuf.c")
.file("curl/lib/curlx/inet_ntop.c")
.file("curl/lib/curlx/inet_pton.c")
.file("curl/lib/curlx/nonblock.c")
.file("curl/lib/curlx/strparse.c")
.file("curl/lib/curlx/timediff.c")
.file("curl/lib/curlx/timeval.c")
.file("curl/lib/curlx/wait.c")
.file("curl/lib/curlx/warnless.c")
.file("curl/lib/cw-out.c")
.file("curl/lib/cw-pause.c")
Expand Down Expand Up @@ -194,7 +196,6 @@ fn main() {
.file("curl/lib/http_proxy.c")
.file("curl/lib/idn.c")
.file("curl/lib/if2ip.c")
.file("curl/lib/inet_ntop.c")
.file("curl/lib/llist.c")
.file("curl/lib/macos.c")
.file("curl/lib/md5.c")
Expand Down Expand Up @@ -333,23 +334,12 @@ fn main() {
.file("curl/lib/http_negotiate.c")
.file("curl/lib/curl_sspi.c")
.file("curl/lib/socks_sspi.c")
.file("curl/lib/vauth/krb5_sspi.c")
.file("curl/lib/vauth/spnego_sspi.c")
.file("curl/lib/vauth/vauth.c")
.file("curl/lib/vtls/schannel.c")
.file("curl/lib/vtls/schannel_verify.c")
.file("curl/lib/vtls/x509asn1.c");
} else if target.contains("-apple-") {
cfg.define("USE_SECTRANSP", None)
.file("curl/lib/vtls/cipher_suite.c")
.file("curl/lib/vtls/sectransp.c")
.file("curl/lib/vtls/x509asn1.c");
if xcode_major_version().map_or(true, |v| v >= 9) {
// On earlier Xcode versions (<9), defining HAVE_BUILTIN_AVAILABLE
// would cause __bultin_available() to fail to compile due to
// unrecognized platform names, so we try to check for Xcode
// version first (if unknown, assume it's recent, as in >= 9).
cfg.define("HAVE_BUILTIN_AVAILABLE", "1");
}
} else {
cfg.define("USE_OPENSSL", None)
.file("curl/lib/vtls/openssl.c");
Expand Down Expand Up @@ -562,24 +552,6 @@ fn try_pkg_config() -> bool {
true
}

fn xcode_major_version() -> Option<u8> {
let status = Command::new("xcode-select").arg("-p").status().ok()?;
if status.success() {
let output = Command::new("xcodebuild").arg("-version").output().ok()?;
if output.status.success() {
let stdout = String::from_utf8_lossy(&output.stdout);
println!("xcode version: {}", stdout);
let mut words = stdout.split_whitespace();
if words.next()? == "Xcode" {
let version = words.next()?;
return version[..version.find('.')?].parse().ok();
}
}
}
println!("unable to determine Xcode version, assuming >= 9");
None
}

fn curl_config_reports_http2() -> bool {
let output = Command::new("curl-config").arg("--features").output();
let output = match output {
Expand Down
2 changes: 1 addition & 1 deletion curl-sys/curl
Submodule curl updated 1182 files
Loading