zig-help
Conditional build tags
Fine tuning linking an exe with a static lib
New User
zig 0.11 change /transition guide
Answered
How can I coerce an error set to a subset?
New User
Answered
0.13.x
Debugging C imports?
Answered
Accept an anonymous function to initialize a function pointer in struct
Zig alternative to C++ constexpr array
Answered
Passing AutoArrayHashMap to a function
Standard Library
New User
0.13.x
Zig and JS
Serializing complicated json string from http request
Standard Library
New User
0.13.x
Is @bitCast between integers and vectors clearly defined?
Answered
How to give a fn a set of types as an input?
Answered
How to add options to build
Answered
How can I copy a varying length slice into a (guaranteed-sized larger) array?
Answered
Best way to save language reference & stdlib docs for offline use?
Answered
Zig debugger
strerror for zig errors
Linking X11
Answered
json.stringify an enum
how to use dependencies in build.zig.zon
Answered
first program binary size
Answered
Reproduce struct `__attribute__((aligned(alignment)))` in Zig
Answered
open/read file
Standard Library
New User
0.13.x
c import failed: unknown type uint8_t
Answered
Weird (to a newbie) compilation behaviour of a C lib
New User
example usage of std.os.exec
Answered
Why can't Zig infer error set when creating a variable?
Answered
Read entirety of stdin to memory
Standard Library
New User
replacing the value of an u64 ptr
Answered
Field access on C opaque types
New User
0.13.x
zig access array or default value if out of bound
weird range syntax
Capturing stdout
What versions does the latest version of ZLS support?
0.10.x
New User
c_allocator invalid free, no problems with GPA
Standard Library
Answered
0.13.x
dealing with bit fields
Answered
Struggling with function pointer of unknown args in a struct
Assigning a string literal to a variable with `orelse`?
Answered
Formatting a string of integers results in gibberish
Answered
ChildProcess.init returns invalid PID when executing lsof command
Unreachable code reached with `Reader.readRoundedBytes` (Zig v.0.10.1)
0.10.x
Standard Library
New User
Answered
expected type '[]const u8', found '[*:0]u8'
New User
Struct truncated going from Rust to Zig through C API in Release mode
Answered
Do I misunderstand unions?
Compiler
Answered
0.13.x
learning zgui ... build failure "webgpu.h" not found, way to use just regular glfw?
Is this legal?
is `@constCast` safe?
Compiler
Answered
0.13.x
I am new to Zig and need a hand debugging some code. Should I ask here or at SO?
Answered
What do vertical bars mean?
New User
Answered
Examples of deflate use?
Answered