Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PostgreSQL's libpq ported to the zig build system

License

Notifications You must be signed in to change notification settings

zadockmaloba/libpq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

23 Commits

Repository files navigation

build.zig for libpq

Provides a package to be used by the zig package manager for C programs.

Status

Architecture \ OS Linux MacOS
x86_64
arm 64 (untested)
Refname PostgreSQL version Zig 0.12.x Zig 0.13.x Zig 0.14.0-dev
5.16.4+1 REL_16_4

Use

Add the dependency in your build.zig.zon by running the following command:

zig fetch --save git+https://github.com/allyourcodebase/libpq#5.16.4+1

Then, in your build.zig:

const postgres = b.dependency("libpq", { .target = target, .optimize = optimize });
const libpq = postgres.artifact("pq");
// wherever needed:
exe.linkLibrary(libpq);

Options

 -Dssl=[enum] Choose which dependency to use for SSL. Defaults to LibreSSL
 Supported Values:
 OpenSSL
 LibreSSL
 None
 -Ddisable-zlib=[bool] Remove zlib as a dependency
 -Ddisable-zstd=[bool] Remove zstd as a dependency

Bump dependencies

To update this project dependencies:

zig fetch --save=upstream git+https://github.com/postgres/postgres#REL_16_4
zig fetch --save git+https://github.com/allyourcodebase/openssl#3.3.0
zig fetch --save git+https://github.com/allyourcodebase/libressl#3.9.2+1
zig fetch --save git+https://github.com/allyourcodebase/zlib#1.3.1
zig fetch --save git+https://github.com/allyourcodebase/zstd#1.5.6-1

About

PostgreSQL's libpq ported to the zig build system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 65.8%
  • Zig 34.2%

AltStyle によって変換されたページ (->オリジナル) /