This removes a dependency on winapi and is closer to the version cargo would pick normally. Signed-off-by: Tyler Hall <tylerwhall@gmail.com>
71 lines
2.1 KiB
Diff
71 lines
2.1 KiB
Diff
From 65f07216c2c7a341cf13c35ecc1a781d7a489511 Mon Sep 17 00:00:00 2001
|
|
From: Cody P Schafer <dev@codyps.com>
|
|
Date: Sat, 12 Dec 2015 22:44:14 -0500
|
|
Subject: [PATCH] libssh2-sys: avoid explicitly linking in openssl
|
|
|
|
---
|
|
libssh2-sys/Cargo.toml | 33 ---------------------------------
|
|
libssh2-sys/lib.rs | 2 --
|
|
2 files changed, 35 deletions(-)
|
|
|
|
diff --git a/libssh2-sys/Cargo.toml b/libssh2-sys/Cargo.toml
|
|
index c4e006d..175be77 100644
|
|
--- a/libssh2-sys/Cargo.toml
|
|
+++ b/libssh2-sys/Cargo.toml
|
|
@@ -19,39 +19,6 @@ libc = "0.2"
|
|
[target."cfg(unix)".dependencies]
|
|
openssl-sys = ">= 0"
|
|
|
|
-[target.i686-apple-darwin.dependencies]
|
|
-openssl-sys = ">= 0"
|
|
-[target.x86_64-apple-darwin.dependencies]
|
|
-openssl-sys = ">= 0"
|
|
-[target.i686-unknown-linux-gnu.dependencies]
|
|
-openssl-sys = ">= 0"
|
|
-[target.i586-unknown-linux-gnu.dependencies]
|
|
-openssl-sys = ">= 0"
|
|
-[target.x86_64-unknown-linux-gnu.dependencies]
|
|
-openssl-sys = ">= 0"
|
|
-[target.aarch64-unknown-linux-gnu.dependencies]
|
|
-openssl-sys = ">= 0"
|
|
-[target.powerpc64-unknown-linux-gnu.dependencies]
|
|
-openssl-sys = ">= 0"
|
|
-[target.powerpc64le-unknown-linux-gnu.dependencies]
|
|
-openssl-sys = ">= 0"
|
|
-[target.x86_64-unknown-linux-musl.dependencies]
|
|
-openssl-sys = ">= 0"
|
|
-[target.arm-unknown-linux-gnueabihf.dependencies]
|
|
-openssl-sys = ">= 0"
|
|
-[target.armv7-unknown-linux-gnueabihf.dependencies]
|
|
-openssl-sys = ">= 0"
|
|
-[target.i686-unknown-freebsd.dependencies]
|
|
-openssl-sys = ">= 0"
|
|
-[target.x86_64-unknown-freebsd.dependencies]
|
|
-openssl-sys = ">= 0"
|
|
-[target.x86_64-unknown-dragonfly.dependencies]
|
|
-openssl-sys = ">= 0"
|
|
-[target.x86_64-unknown-bitrig.dependencies]
|
|
-openssl-sys = ">= 0"
|
|
-[target.x86_64-unknown-openbsd.dependencies]
|
|
-openssl-sys = ">= 0"
|
|
-
|
|
[build-dependencies]
|
|
pkg-config = "0.3"
|
|
cmake = "0.1.2"
|
|
diff --git a/libssh2-sys/lib.rs b/libssh2-sys/lib.rs
|
|
index 02fd203..3ca1806 100644
|
|
--- a/libssh2-sys/lib.rs
|
|
+++ b/libssh2-sys/lib.rs
|
|
@@ -4,8 +4,6 @@
|
|
extern crate libc;
|
|
|
|
extern crate libz_sys;
|
|
-#[cfg(unix)]
|
|
-extern crate openssl_sys;
|
|
|
|
use libc::{c_int, size_t, c_void, c_char, c_long, c_uchar, c_uint, c_ulong};
|
|
use libc::ssize_t;
|
|
--
|
|
2.8.2
|
|
|