karlseguin / http.zig

An HTTP/1.1 server for zig
MIT License
512 stars 38 forks source link

is it 0.13 compatible? #71

Closed TymekBrunka closed 2 days ago

TymekBrunka commented 1 week ago

so i tried to compile my project and this happened (i did not forgot to add things to build system).

/home/tymek/.cache/zig/p/12208fab56fa3082d207beb09b1d5134a447ce006e78026f6951d89dd8c1279bded5/src/httpz.zig:233:10: error: no field named 'struct' in enum '@typeInfo(builtin.Type).Union.tag_type.?'
        .@"struct" => H
/home/tymek/.cache/zig/p/12208fab56fa3082d207beb09b1d5134a447ce006e78026f6951d89dd8c1279bded5/src/httpz.zig:233:10: error: no field named 'struct' in enum '@typeInfo(builtin.Type).Union.tag_type.?'
        .@"struct" => H,
        ~^~~~~~~~~
/usr/lib/zig/std/builtin.zig:256:18: note: enum declared here
pub const Type = union(enum) {
                 ^~~~~
src/main.zig:20:30: note: called from here
    var server = httpz.Server(void).init(alloc, .{
                 ~~~~~~~~~~~~^~~~~~
referenced by:
    callMain: /usr/lib/zig/std/start.zig:524:32
    callMainWithArgs: /usr/lib/zig/std/start.zig:482:12
    remaining reference traces hidden; use '-freference-trace' to see all reference traces
karlseguin commented 1 week ago

There's a zig-0.13 branch

karlseguin commented 1 week ago
zig fetch --save git+https://github.com/karlseguin/http.zig#zig-0.13
IbrahimOuhamou commented 1 day ago

There's a zig-0.13 branch

does the main branch target upstream?

karlseguin commented 17 hours ago

Yes, it does.

Although, I think when Zig 0.14 is released, I'm going to change things around. I'll make master track Zig 0.14 and do any new development in a separate branch.

IbrahimOuhamou commented 10 hours ago

@karlseguin well, thanks. that would allow for better dev exp.

what about versioning your library? I think it would be better to open a new issue for it