File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " openssl-probe"
3- version = " 0.1.5 "
3+ version = " 0.1.6 "
44authors = [" Alex Crichton <alex@alexcrichton.com>" ]
55license = " MIT/Apache-2.0"
66repository = " https://github.com/alexcrichton/openssl-probe"
Original file line number Diff line number Diff line change @@ -11,17 +11,20 @@ First, add this to your `Cargo.toml`:
1111
1212``` toml
1313[dependencies ]
14- openssl-probe = " 0.1.2 "
14+ openssl-probe = " 0.1.6 "
1515```
1616
1717Then add this to your crate:
1818
1919``` rust
20- extern crate openssl_probe;
21-
2220fn main () {
23- openssl_probe :: init_ssl_cert_env_vars ();
24- // ... your code
21+ let result = openssl_probe :: probe ();
22+ if let Some (dir ) = & result . cert_dir {
23+ // ... your code
24+ }
25+ if let Some (file ) = & result . cert_file {
26+ // ... your code
27+ }
2528}
2629```
2730
You can’t perform that action at this time.
0 commit comments