Skip to content

Commit 136b5f9

Browse files
authored
Merge pull request #107 from sfackler/vendored
Add a vendored feature
2 parents 1ae91d3 + 119be7f commit 136b5f9

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,3 @@ script:
2222
else
2323
cargo test;
2424
fi
25-
- if [ -z "$TEST_IOS" ]; then
26-
rustdoc --test README.md -L target/debug/deps -L target/debug;
27-
fi;

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ description = "A wrapper over a platform's native TLS implementation"
77
repository = "https://github.com/sfackler/rust-native-tls"
88
readme = "README.md"
99

10+
[features]
11+
vendored = ["openssl/vendored"]
12+
1013
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
1114
security-framework = "0.2.1"
1215
security-framework-sys = "0.2.1"
@@ -18,7 +21,7 @@ tempfile = "3.0"
1821
schannel = "0.1.13"
1922

2023
[target.'cfg(not(any(target_os = "windows", target_os = "macos", target_os = "ios")))'.dependencies]
21-
openssl = "0.10.9"
24+
openssl = "0.10.11"
2225
openssl-sys = "0.9.30"
2326
openssl-probe = "0.1"
2427

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
//! * Includes hostname verification for clients
3232
//! * Supports asynchronous I/O for both the server and the client
3333
//!
34+
//! # Cargo Features
35+
//!
36+
//! * `vendored` - If enabled, the crate will compile and statically link to a
37+
//! vendored copy of OpenSSL. This feature has no effect on Windows and
38+
//! macOS, where OpenSSL is not used.
39+
//!
3440
//! # Examples
3541
//!
3642
//! To connect as a client to a remote server:

0 commit comments

Comments
 (0)