Skip to content

Commit

Permalink
Merge pull request #107 from sfackler/vendored
Browse files Browse the repository at this point in the history
Add a vendored feature
  • Loading branch information
sfackler authored Aug 4, 2018
2 parents 1ae91d3 + 119be7f commit 136b5f9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,3 @@ script:
else
cargo test;
fi
- if [ -z "$TEST_IOS" ]; then
rustdoc --test README.md -L target/debug/deps -L target/debug;
fi;
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ description = "A wrapper over a platform's native TLS implementation"
repository = "https://github.com/sfackler/rust-native-tls"
readme = "README.md"

[features]
vendored = ["openssl/vendored"]

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
security-framework = "0.2.1"
security-framework-sys = "0.2.1"
Expand All @@ -18,7 +21,7 @@ tempfile = "3.0"
schannel = "0.1.13"

[target.'cfg(not(any(target_os = "windows", target_os = "macos", target_os = "ios")))'.dependencies]
openssl = "0.10.9"
openssl = "0.10.11"
openssl-sys = "0.9.30"
openssl-probe = "0.1"

Expand Down
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
//! * Includes hostname verification for clients
//! * Supports asynchronous I/O for both the server and the client
//!
//! # Cargo Features
//!
//! * `vendored` - If enabled, the crate will compile and statically link to a
//! vendored copy of OpenSSL. This feature has no effect on Windows and
//! macOS, where OpenSSL is not used.
//!
//! # Examples
//!
//! To connect as a client to a remote server:
Expand Down

0 comments on commit 136b5f9

Please sign in to comment.