Zig NEWS

Discussion on: @import() and Packages

Collapse
 
rofrol profile image
Roman Frołow

Working example in zig 0.11.0-dev.1503+17404f8e6

const pkg_postgres = std.build.Pkg{
    .name = "postgres",
    .source = std.build.FileSource{
        .path = "deps/zig-postgres/src/postgres.zig",
    },
};
...
exe.addPackage(pkg_postgres);
Enter fullscreen mode Exit fullscreen mode

github.com/rofrol/zig-postgres-tryout

stackoverflow.com/questions/684211...