aboutsummaryrefslogtreecommitdiff
path: root/lib/std
AgeCommit message (Collapse)Author
2025-08-31Io.Writer.Allocating: test new *Aligned methodsTravis Staloch
* added initAligned() * added missing @alignCast in toArrayListAligned()
2025-08-31Merge pull request #25088 from ziglang/delete-deprecated-fmtAndrew Kelley
std.fmt: delete deprecated APIs
2025-08-31Fix regression: std.http.Client basic authorization sending user:user ↵Tadej Gašparovič
instead of user:password when passed in URI
2025-08-31delete behavior test that depends on std.fmtAndrew Kelley
behavior tests should have minimal dependency on std
2025-08-31std.fmt: delete deprecated APIsAndrew Kelley
std.fmt.Formatter -> std.fmt.Alt std.fmt.format -> std.Io.Writer.print
2025-08-30Populate MSG struct for OpenBSD (#25076)Brandon Mercer
* update the MSG struct with the correct values for openbsd * add comment with link to sys/sys/socket.h --------- Co-authored-by: Brandon Mercer <bmercer@eutonian.com>
2025-08-30Merge pull request #25077 from ziglang/GenericReaderAndrew Kelley
std.Io: delete GenericReader, AnyReader, FixedBufferStream; and related API breakage
2025-08-30Merge pull request #25055 from ziglang/llvm21Alex Rønne Petersen
LLVM 21
2025-08-30Revert "std.Io.Reader: work around llvm backend bug"Andrew Kelley
This reverts commit 530cc2c1111699d9d02ad9ebef94efa6b99f5205. The compiler bug has been fixed.
2025-08-30std: disable `sha3-512 single` test on RISC-V with V supportAlex Rønne Petersen
https://github.com/ziglang/zig/issues/25083
2025-08-30compiler: fix macos buildAndrew Kelley
2025-08-30upgrade more old API usesAndrew Kelley
2025-08-30rework std.Io.Writer.Allocating to support runtime-known alignmentAndrew Kelley
Also, breaking API changes to: * std.fs.Dir.readFileAlloc * std.fs.Dir.readFileAllocOptions
2025-08-30std.posix.test: fix mmap() test to use actual page size instead of 4096Alex Rønne Petersen
2025-08-30std.hash.xxhash: disable xxhash3 test on all mips64 targetsAlex Rønne Petersen
See also dd1de18f9629904b5d97d5791a47244ac63385da. https://github.com/ziglang/zig/issues/23807
2025-08-30std: skip some failing tests on hexagonAlex Rønne Petersen
2025-08-30std.Thread: make unreachable errors in sleep() clearerAlex Rønne Petersen
2025-08-30std.zig.system: update aarch64 and powerpc cpu detection for LLVM 21Alex Rønne Petersen
2025-08-30std.Target: fix alignment for int/long types on m68kAlex Rønne Petersen
2025-08-30std.Target: add managarm OS tagAlex Rønne Petersen
2025-08-30std.Target: make ultrasparc3 the baseline for sparc64-solarisAlex Rønne Petersen
https://github.com/llvm/llvm-project/pull/149990
2025-08-30std.Target.x86: purge avx10.n-256, rename avx10.n_512 to avx10.n, require ↵Alex Rønne Petersen
evex512 for avx512f Intel has abandoned AVX10.N/128,256; AVX10.N is now always 512-bit.
2025-08-30std.Target: bump feature bit count from 288 to 317Alex Rønne Petersen
/lib/std/debug.zig:559:14: error: reached unreachable code if (!ok) unreachable; // assertion failure ^~~~~~~~~~~ /lib/std/Target/riscv.zig:335:21: note: called at comptime here std.debug.assert(len <= CpuFeature.Set.needed_bit_count); ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-08-30std.Target: update CPU features to LLVM 21Alex Rønne Petersen
2025-08-29std.Io: delete GenericReaderAndrew Kelley
and delete deprecated alias std.io
2025-08-29std.Io: delete CountingReaderAndrew Kelley
2025-08-28std.debug.Pdb: migrate more towards new Reader APIAndrew Kelley
There was some bug in this branch, and rather than diagnosing it, I fully finished porting over to new Reader API. Did it fix the bug?
2025-08-28std.tz: fix redundant endian handlingAndrew Kelley
I didn't notice the check+swap before.
2025-08-28std.Io.Reader: work around llvm backend bugAndrew Kelley
tracked by #25067 and I already have a fix cooking in another branch
2025-08-28fix not discarding delimiterAndrew Kelley
perhaps these APIs have the defaults backwards, eh?
2025-08-28update more to avoid GenericWriterAndrew Kelley
2025-08-28update GenericWriter usage found by test-casesAndrew Kelley
2025-08-28std.crypto.ml_kem: update to not use GenericWriterAndrew Kelley
2025-08-28std.tz: update to new Reader APIAndrew Kelley
2025-08-28std: delete most remaining uses of GenericWriterAndrew Kelley
2025-08-28link.MachO: update to not use GenericWriterAndrew Kelley
2025-08-28std.Io.Writer: add toArrayList/fromArrayListAndrew Kelley
2025-08-28std.Io: delete GenericWriterAndrew Kelley
2025-08-28process.totalSystemMemory: Avoid overflow on Linux when totalram is a 32-bit ↵Ryan Liptak
usize Fixes #25038
2025-08-28Reader.appendRemaining: Take ownership of the full allocated sliceRyan Liptak
Before this commit, calling appendRemaining with an ArrayList where list.items.len != list.capacity could result in illegal behavior if the Writer.Allocating resized the list during the appendRemaining call. Fixes #25057
2025-08-28AstGen: forward result type through unary float builtinsDavid Rubin
Uses a new `float_op_result_ty` ZIR instruction tag.
2025-08-28std.debug: remove `@frameAddress()` "UAF"mlugg
We can't call `@frameAddress()` and then immediately `return`! That invalidates the frame. This *usually* isn't a problem, because the stack walk `next` call will *probably* have a stack frame and it will *probably* be at the exact same address, but neither of those is a guarantee. On powerpc, presumably some unfortunate inlining was going on, so this frame was indeed invalidated when we started walking frames. We need to explicitly pass `@frameAddress` into any function which will return before we actually walk the stack. Pretty simple patch. Resolves: #24970
2025-08-28std.os.uefi: fix type error at MemoryType.format()tokyo4j
2025-08-28std.os.linux: powerpc syscalls clobber ctr and xerAlex Rønne Petersen
https://git.musl-libc.org/cgit/musl/commit/?id=f6944eb3c4ce1c97dc39dc36d32390dc9f70b67b
2025-08-27Merge pull request #25034 from ziglang/lzmaAndrew Kelley
std.compress: update lzma, lzma2, and xz to new I/O API
2025-08-27Fix TLS 1.2 client key exchange to use negotiated named group (#25007)Frank Denis
The TLS 1.2 implementation was incorrectly hardcoded to always send the secp256r1 public key in the client key exchange message, regardless of which elliptic curve the server actually negotiated. This caused TLS handshake failures with servers that preferred other curves like X25519. This fix: - Tracks the negotiated named group from the server key exchange message - Dynamically selects the correct public key (X25519, secp256r1, or secp384r1) based on what the server negotiated - Properly constructs the client key exchange message with the appropriate key size for each curve type Fixes TLS 1.2 connections to servers like ziglang.freetls.fastly.net that prefer X25519 over secp256r1.
2025-08-27std.c: add correct SOMAXCONN for BSDsBrandon Black
Note the previous "28" here for openbsd was some kind of copy error long ago. That's the value of KERN.SOMAXCONN, which is an entirely different thing.
2025-08-26std.compress.xz: fix 32-bit targetsAndrew Kelley
2025-08-26std: update xz unit tests to new I/O APIAndrew Kelley
2025-08-26std.compress.lzma: fix unpacked size checking logicAndrew Kelley