This Week In Zig

Zig Weekly Update: 2023/2

Covering Jan 8 - Jan 14

  • fcee1bf99 merged #14241 from @andrewrk
    • Adds std.build.ConfigHeaderStep, a way to convert *.h.in to *.h with build.zig
    • Adds std.build.Builder.addConfigHeader()
    • Adds std.build.LibExeObjStep.addConfigHeader()
    • Adds .peek() and .finalResult() methods to std.crypto.siphash
  • 1f8f79cd5 merged #14095 from @Techatrix
    • Simplifies the API around accessing nodes in std.zig.Ast
  • f7ade7e63 merged #14256 from @MasterQ32 which added stage2 LLVM support for 16 bit pointers in a place where it was missing for AVR
  • 0cba60afe merged #14260 from @EspeuteClement autodoc: allow function descriptions expansion
  • 24d8d12ca merged #14252 from @jedisct1 which was a maintenance PR to update wasi-libc, see above for details
  • bb4cb3420 merged #14248 from @kcbanner
    • Fix "chdir smoke test" path comparison on Windows
  • 9b807f9c1 merged #14247 from @kcbanner
    • Windows debug info lookup improvements, affects std.coff, std.debug, std.os.windows
  • 3ab43988c merged #14259 from @praschke which makes std.net more RFC compliant by making it not ask the DNS server for queries about localhost
  • a88679453 merged #14263 from @der-teufel-programming autodoc: Fix function pointers rendering issue
  • 0e66df209 from @kristoff-it autodoc: scroll up when collapsing long fn description
  • c2d37224c merged #14267 from @ekoeppen zig objcopy: Fix corrupted hex output
  • 2a92b04b9 merged #14257 hot off the presses from @Vexu with new compile errors
    • "depends on itself" false-positive fixes for structs and unions
    • having errdefer in a function that can't error is now caught
    • fixed a compiler crash comparing struct pointers at comptime
    • fixed a bug where comptime arguments would be omitted from the function type's string name
    • improved the parser to have a better message when forgetting const/var when defining declarations
    • tuples with decls now have a better error message
    • @typeInfo called on container that included usingnamespace decls now returns the right value
  • 4971df857 merged #14239 from @antlilja
    • std.os.uefi.UefiPoolAllocator no longer compile-errors after this patch updates it to the new Allocator api
  • 4b3291764 merged #14275 from @EspeuteClement autodoc: use js instead of details for collapsing descriptions
  • cbbf8c8a2 merged #14273 from @jedisct1 wasi-libc: use __heap_end if available
  • 7cb2f9222 merged #14265 from @andrewrk Package Manager MVP
    • This is extremely alpha- and in flux. Make sure to check out the PR and follow-up issues for more details.
  • 0e659042a merged #14243 from @kcbanner which adds testing the C backend with MSVC to the CI pipelines
  • d813cef42 merged #14270 from @sharpobject which fixes a buffer overflow in std.fmt.errolSlow() when denormals are zero are set
  • 6b3f59c3a merged #13544 from @motiejus which makes zig run/cc: recognize "-x language"
  • 18191b80b merged #14302 from @Luukdegram
    • wasm-linker: implement linking with WASI-libc

Congrats to all the contributors and thanks for reading! See you next week 👋