update for zig v0.11
This commit is contained in:
parent
4708c03a48
commit
35e9ed1967
6 changed files with 9 additions and 28 deletions
|
@ -12,7 +12,7 @@ pub fn build(b: *std.Build) void {
|
|||
.optimize = optimize,
|
||||
});
|
||||
|
||||
lib.install();
|
||||
b.installArtifact(lib);
|
||||
|
||||
const main_tests = b.addTest(.{
|
||||
.root_source_file = .{ .path = "src/zerve.zig" },
|
||||
|
|
7
build.zig.zon
Normal file
7
build.zig.zon
Normal file
|
@ -0,0 +1,7 @@
|
|||
.{
|
||||
.name = "zerve",
|
||||
.version = "0.0.22-zig11",
|
||||
.dependencies = .{
|
||||
},
|
||||
}
|
||||
|
20
gyro.zzz
20
gyro.zzz
|
@ -1,20 +0,0 @@
|
|||
pkgs:
|
||||
zerve:
|
||||
version: 0.0.22
|
||||
license: MIT
|
||||
description: Simple web framework for zig
|
||||
source_url: "https://github.com/floscodes/zerve"
|
||||
root: src/zerve.zig
|
||||
files:
|
||||
README.md
|
||||
LICENSE
|
||||
zig.mod
|
||||
build.zig
|
||||
src/*.zig
|
||||
tags:
|
||||
http
|
||||
server
|
||||
framework
|
||||
http-server
|
||||
server-side
|
||||
|
|
@ -148,6 +148,6 @@ pub const Status = enum(u32) {
|
|||
/// E.g. `Status.code(200)` will return `Status.OK`.
|
||||
/// The program will panic if the passed code does not exist.
|
||||
pub fn code(n: u32) Status {
|
||||
return @intToEnum(Status, n);
|
||||
return @enumFromInt(n);
|
||||
}
|
||||
};
|
||||
|
|
BIN
zig-out/lib/libzerve.a
Normal file
BIN
zig-out/lib/libzerve.a
Normal file
Binary file not shown.
6
zig.mod
6
zig.mod
|
@ -1,6 +0,0 @@
|
|||
name: zerve
|
||||
main: src/zerve.zig
|
||||
license: MIT
|
||||
description: Simple web framework for zig
|
||||
min_zig_version: 0.10.1
|
||||
dependencies:
|
Loading…
Add table
Reference in a new issue