zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
### Zig Version 0.11.0-dev.1869+df4cfc2ec ### Steps to Reproduce and Observed Behavior On Windows: ``` zig build test-standalone ``` ``` error: TestUnexpectedResult D:\a\zig\zig\build-debug\stage3-debug\lib\zig\std\start.zig:516:80: 0x7ff7f31a0c48 in main (test.exe.lto.obj) return @call(.always_inline, callMainWithArgs, .{...
Closes #14719. Adding these APIs to Build.Module allows for needed include paths and libraries to be declared at the module's creation site (in the dependency) rather than in the dependee's...
### Zig Version e7d28344fa3ee81d6ad7ca5ce1f83d50d8502118 ### Steps to Reproduce and Observed Behavior Unsure what causes this Git bisect points to #13560 causing this, I know too little about wasm to be...
Windows treats console output outside the ASCII range as being part of its "codepage", which is very much *not* UTF-8 by default. This can be annoying when writing programs on...
Zig's shadowing rules (ie. "you can't") are excellent at avoiding bugs and aiding readability, with one exception: re-declaring variables. There are a few situations where you'd want to do this:...
### Zig Version zig-linux-x86_64-0.11.0-dev.1969+d525ecb52 ### Steps to Reproduce and Observed Behavior ```zig const std = @import("std"); const argon2 = std.crypto.pwhash.argon2; pub fn main() !void { var pw: [32]u8 = [32]u8{...
Handle the EPERM error in the os.bind function, which can happen when binding AF_NETLINK sockets as non-root on Linux. Return `error.AccessDenied` instead of `error.PermissionDenied`, as this seems to be the...
Currently, the first argument to `@export` needs to be a name of some sort. Quoting from the documentation: > `declaration` must be one of two things: > - An identifier...
Fixes https://github.com/ziglang/zig/issues/14907