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 authored and davepacheco committed Sep 10, 2021
1 parent 02011ea commit 7cdf791
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 7cdf791

Please sign in to comment.