zig-help
code criticism needed, 0.12.x
New User
How many bytes is a bool?
Way to get name of struct, given an instance of it
Answered
Any way to make a type without duplicating code that combines two tagged unions
how do you get the error set of a function using comptime?
How can I prevent the object file from being created when I run `zig build-exe`?
Compile-time check for whether a type fits some "interface"
slice of []u8 into []u16
Thread-safe `LinearFifo`
Standard Library
Answered
0.13.x
Is there any guide on how to setup ZLS to give out c completions using the VSCode extension for Zig?
New User
Pass array of `@Vector`s to C
Initialization expression of a tagged union reflection
Invalid access to memory location. When accessing struct values after HTTP GET request
Size of packed struct excluding its padding?
New User
Answered
store dynamically sized array in struct
Is it safe to store the address of a comptime var for runtime usage?
Answered
Compiling Lua with Zig leads to a crashing DLL.
Compiler
New User
super simple issue setting up zig
0.11.x
New User
How does zig cross compile
var x = MyStruct.construct();
Answered
Simply skip a test
`Either` type.
Best way to compare to *anyopaque?
Answered
usingnamespace error
Default calling conventions.
evaluation exceeded 1000 backwards branches
Answered
Param type inference when passed as anytype
Is there a better way to have two read types based on runtime control flow?
0.13.x
Access file of external package.
Arrays String mess
New User
Http GET requests in Zig
Get Request
Hex string to [_]u8
Answered
Is there way to disable generating of .pdb file in `zig-out/bin` and rename output dir?
How to pass custom linker flags with build.zig
Autodoc usage
Standard Library
0.13.x
how to use dependencies?
Compiler
Building an array at comptime via a registration function (called from other files)
mkdir -p in zig?
New User
Answered
Enum naming conventions
Answered
Idiomatic way to print a command line tool’s usage?
Standard Library
New User
0.13.x
error: C import failed: AnalysisFail
evaluation exceeded 100000 backwards branches
Language semantics question about optionals.
Zls not working inside parenthesis
Answered
Requesting code review: Wolfram cellular automaton
Good alternative to this use of usingnamespace?
Answered
unaligned reads/writes
resize and destroy anyopaque pointer
How to generate a simple text file during build
Answered