Closed staninprague closed 3 years ago
What worked for me (looks like) was to cleanup on any PQ_LIB_DIR etc based suggestions. Uninstall libpq via brew uninstall libpq
and install postgresql via brew install postgresql
. May be an overkill, but until someone figures out better solution, this is it for me.
Thank you for your great work!
On Mac OSX Big Sur pq-sys would not compile by default and possible workaround is described in this issue #34:
While workaround works, any change to a crate that has Diesel as dependency (and diesel has pq-sys as its dependency) leads to compilation of pq-sys and subsequently diesel.
This affects cargo check/build. Here is the sequence for the incremental build when crate having a dependency on diesel is changed:
Compiling pq-sys v0.4.6 Compiling diesel v1.4.5
This affects negatively build times for crates that have a Diesel dependency. Anything I can try or provide more data on the problem to help solving it?