1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 23:24:09 +00:00

renamed facilio package to zap

This commit is contained in:
Rene Schallner 2023-01-11 23:47:44 +01:00
parent 826dc62e22
commit aa1bd024bf
3 changed files with 5 additions and 5 deletions

View file

@ -1,8 +1,8 @@
const std = @import("std"); const std = @import("std");
const facilio = std.build.Pkg{ const zap = std.build.Pkg{
.name = "facilio", .name = "zap",
.source = std.build.FileSource{ .path = "src/deps/facilio.zig" }, .source = std.build.FileSource{ .path = "src/deps/zap.zig" },
}; };
pub fn build(b: *std.build.Builder) !void { pub fn build(b: *std.build.Builder) !void {
@ -19,7 +19,7 @@ pub fn build(b: *std.build.Builder) !void {
var example = b.addExecutable("example", "examples/hello/hello.zig"); var example = b.addExecutable("example", "examples/hello/hello.zig");
example.setBuildMode(mode); example.setBuildMode(mode);
example.addPackage(facilio); example.addPackage(zap);
example.addIncludePath("src/deps/facilio/libdump/all"); example.addIncludePath("src/deps/facilio/libdump/all");
_ = try addFacilio(example); _ = try addFacilio(example);

View file

@ -1,5 +1,5 @@
const std = @import("std"); const std = @import("std");
const zap = @import("facilio"); const zap = @import("zap");
fn on_request(request: [*c]zap.C.http_s) callconv(.C) void { fn on_request(request: [*c]zap.C.http_s) callconv(.C) void {
std.debug.print("GOT A REQUEST!\n", .{}); std.debug.print("GOT A REQUEST!\n", .{});