It’s also decoupling Zig compiler and C compiler so they’re updated independently.
It’s still a bummer in my view as I just replaced my build pipelines with just a Zig compiler instead of emscripten but that’s fine.
bpavuk 1 hours ago [-]
`@cImport` gets moved from the "mainline" language into a separate module -> this example won't compile on future versions of Zig, that's the point
Narew 10 hours ago [-]
It's deprecated not removed yet.
bpavuk 9 hours ago [-]
I'm a little too lazy to double-check, but either way 0.17.0 is around the corner, where it will totally get nixed
nyrikki 4 hours ago [-]
It is being moved not going away.
It is just a wrapper around zig translate-c, moving it to the build system moves the resulting clang dependency to a place where it can be optional.
The functionality is staying, it is just moving.
Conscat 2 hours ago [-]
The point here is that these examples need to be updated because @cImport, the syntactic feature of Zig, is being deprecated and removed. That there exists an alternative isn't relevant.
teddyX 7 hours ago [-]
Deprecated
10 hours ago [-]
dfee 5 hours ago [-]
crazy that the readme doesn't link to the product.
It’s also decoupling Zig compiler and C compiler so they’re updated independently.
It’s still a bummer in my view as I just replaced my build pipelines with just a Zig compiler instead of emscripten but that’s fine.
It is just a wrapper around zig translate-c, moving it to the build system moves the resulting clang dependency to a place where it can be optional.
The functionality is staying, it is just moving.
https://flipper.net/products/flipper-zero