zig-help
Weird printing
New User
Need help compiling library/app to wasm using zig - missing basic deps
Can a zig build exe link to a .DEF file on windows?
Can't compile (Windows 10)
Compiler
New User
0.13.x
How do you switch on multiple values?
Accesing a dependency dependcies
Standard Library
0.13.x
Will it be easier to understand Zig internals after divorcing LLVM?
Answered
build_options not accessible outside function scope
What is build.zig equivalent to `-Dtarget="wasm32-wasi"`
Answered
`zls` not autocompleting anything coming from a `module` other than `std`
What's the expected behavior of floating-point `inf` operations?
Answered
Is it possible to instantiate a comptime type with runtime values from command-line?
Answered
0.13.x
How to test if bytes are a valid UTF-8 string?
Answered
inline switch not working as expected?
Integer overflow in for loop
New User
Answered
Iterator for std.json.Value ArrayHashMap
Standard Library
Answered
How to get assembly output? (.emit_asm removed)
Answered
Performance of hashmaps and pointers to how to optimize?
expected type 'comptime_int', found 'type'
0.10.x
New User
General project advice for io-heavy HTTP server
How to cast u64 to i64?
writing strings in structs
casting to [*c]const [*c]const u8
Answered
Struct initialization and passing pointer to itself
0.13.x
Casting between array and pointer types
Does zig provide a generic clone utility function?
return string from user input
Answered
Whats the difference between `zig build Dtarget=aarch64-macos` and `zig build` on aarch64-macos?
Answered
How is it done that returning concatenation of string literals does not return pointer?
Answered
Lib project and exe project to consume that lib
New User
Zig build C project with compile_commands.json
Compiler
disable automatic indentation for vscode
New User
Answered
How to make a list of callbacks?
New User
Set `-mexec-model` flag from build.zig
Answered
String manipulation and memory leak
Answered
Initialising tuple with computed values
Answered
What does this mean: expected type '*const [0:0]u8', found '[]u8'
Answered
Memory leak using the allocator
Answered
C interop: error: must use 'enum' tag to refer to type 'llama_log_level'
New User
Print enum case without prefix?
Problem with setting the library paths
where did setMainPkgPath go?
CPU Feature Detection
Answered
Sorting at comptime
Referencing a reified function return type in the function body
Answered
Mmap failing to compile on windows?
How has your experience been using Zig?
New User
Answered
Keeping a dir entry for later usage
Metaprogramming, slice as default value of a struct field
New User
Answered
Easiest way to run subset of std tests?
Standard Library
0.13.x