Compare commits

...

1 Commits

Author SHA1 Message Date
Norman Köhring 35e9ed1967 update for zig v0.11 8 months ago

@ -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" },

@ -0,0 +1,7 @@
.{
.name = "zerve",
.version = "0.0.22-zig11",
.dependencies = .{
},
}

@ -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);
}
};

Binary file not shown.

@ -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…
Cancel
Save