Project setup.
This commit is contained in:
commit
37af24267f
5 changed files with 47 additions and 0 deletions
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# IDEA
|
||||||
|
*.iml
|
||||||
|
|
||||||
|
# Zig
|
||||||
|
zig-out/
|
||||||
|
.zig-cache/
|
3
README.md
Normal file
3
README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# pgzql
|
||||||
|
|
||||||
|
PostgreSQL async driver using Tardy runtime.
|
23
build.zig
Normal file
23
build.zig
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
const std = @import("std");
|
||||||
|
|
||||||
|
pub fn build(b: *std.Build) void {
|
||||||
|
const target = b.standardTargetOptions(.{});
|
||||||
|
const optimize = b.standardOptimizeOption(.{});
|
||||||
|
|
||||||
|
const pgzql = b.addModule("pgzql", .{
|
||||||
|
.root_source_file = b.path("src/root.zig"),
|
||||||
|
.target = target,
|
||||||
|
.optimize = optimize,
|
||||||
|
});
|
||||||
|
|
||||||
|
const lib_unit_tests = b.addTest(.{
|
||||||
|
.root_source_file = b.path("src/root.zig"),
|
||||||
|
.target = target,
|
||||||
|
.optimize = optimize,
|
||||||
|
});
|
||||||
|
lib_unit_tests.root_module.addImport("pgzql", pgzql);
|
||||||
|
const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests);
|
||||||
|
|
||||||
|
const test_step = b.step("test", "Run unit tests");
|
||||||
|
test_step.dependOn(&run_lib_unit_tests.step);
|
||||||
|
}
|
14
build.zig.zon
Normal file
14
build.zig.zon
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
.{
|
||||||
|
.name = "pgzql",
|
||||||
|
.version = "0.1.0",
|
||||||
|
|
||||||
|
.dependencies = .{
|
||||||
|
},
|
||||||
|
|
||||||
|
.paths = .{
|
||||||
|
"build.zig",
|
||||||
|
"build.zig.zon",
|
||||||
|
"src",
|
||||||
|
"README.md",
|
||||||
|
},
|
||||||
|
}
|
1
src/root.zig
Normal file
1
src/root.zig
Normal file
|
@ -0,0 +1 @@
|
||||||
|
const std = @import("std");
|
Loading…
Add table
Reference in a new issue