Skip to content

Commit

Permalink
Add feature for including openssl-sys
Browse files Browse the repository at this point in the history
Added a new feature (openssl-static) that includes the openssl-sys crate
to fix static builds.

Renamed src/lib.rs to src/bindgen.rs and added a new lib.rs that
re-exports everything from bindgen.rs to prevent future bindgen runs
from reverting this change.

This fixes sgrif#25
  • Loading branch information
Raniz committed Apr 17, 2020
1 parent 3e367d5 commit 24e8845
Show file tree
Hide file tree
Showing 3 changed files with 916 additions and 903 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ repository = "https://github.com/sgrif/pq-sys"
links = "pq"
build = "build.rs"

[dependencies]
openssl-sys = { version = "*", optional = true }

[features]
openssl-static = ["openssl-sys"]

[lib]
name = "pq_sys"

Expand Down
Loading

0 comments on commit 24e8845

Please sign in to comment.