diff options
author | Wez Furlong <wez@wezfurlong.org> | 2019-07-24 15:00:20 -0700 |
---|---|---|
committer | Wez Furlong <wez@wezfurlong.org> | 2019-07-29 08:49:22 -0700 |
commit | 78d2e3d9dbf1530cdf4bc152b91f0ddd7ce4895b (patch) | |
tree | b1eef8bf39a3948f275f62b7d2b800fe937aeabb | |
parent | 31c39b05337590c3f64dac265a0e6dbba53f7e91 (diff) | |
download | ssh2-rs-78d2e3d9dbf1530cdf4bc152b91f0ddd7ce4895b.zip |
libssh2-sys: add `vendored-openssl` feature to build openssl-src
This enables building `ssh2` and `libssh2-sys` with the
`vendored-openssl` feature, which in turn causes openssl to be built and
linked locally, and does not require that homebrew or some other
externally provided version of openssl be made available.
It does require a working C compiler, perl and make.
-rw-r--r-- | .travis.yml | 1 | ||||
-rw-r--r-- | Cargo.toml | 3 | ||||
-rw-r--r-- | libssh2-sys/Cargo.toml | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 3730e53..dc45ca8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,6 +36,7 @@ before_script: script: - cargo build + - cargo test --features vendored-openssl - cargo test - rustdoc --test README.md -L target - cargo run --manifest-path systest/Cargo.toml @@ -13,6 +13,9 @@ Bindings to libssh2 for interacting with SSH servers and executing remote commands, forwarding local ports, etc. """ +[features] +vendored-openssl = ["libssh2-sys/vendored-openssl"] + [dependencies] bitflags = "1.0.4" libc = "0.2" diff --git a/libssh2-sys/Cargo.toml b/libssh2-sys/Cargo.toml index dae5b28..4dc882a 100644 --- a/libssh2-sys/Cargo.toml +++ b/libssh2-sys/Cargo.toml @@ -12,6 +12,9 @@ description = "Native bindings to the libssh2 library" name = "libssh2_sys" path = "lib.rs" +[features] +vendored-openssl = ["openssl-sys/vendored"] + [dependencies] libz-sys = "1.0.21" libc = "0.2" |