https://github.com/brainhivenl/libpq
Cross-compile friendly, 64-bit only, libpq bazel target
https://github.com/brainhivenl/libpq
bazel libpq postgresql
Last synced: about 2 months ago
JSON representation
Cross-compile friendly, 64-bit only, libpq bazel target
- Host: GitHub
- URL: https://github.com/brainhivenl/libpq
- Owner: brainhivenl
- License: mit
- Created: 2024-04-05T05:58:48.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-14T13:59:15.000Z (about 1 year ago)
- Last Synced: 2025-04-14T14:57:32.545Z (about 1 year ago)
- Topics: bazel, libpq, postgresql
- Language: C
- Homepage:
- Size: 59.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libpq
Statically compiled `libpq` target for bazel to be used with [llvm_toolchain](https://github.com/bazel-contrib/toolchains_llvm) for 64-bit platforms.
### For rules_rust (typically pq-sys for diesel) (Bazel 8):
```
crate.annotation(
build_script_env = {
"PQ_LIB_STATIC": "1",
},
compile_data = ["@@libpq+//:libpq"],
crate = "pq-sys",
rustc_flags = [
"-L",
"$(BINDIR)/external/libpq+",
],
)
```