aboutsummaryrefslogtreecommitdiff
path: root/lib/std
AgeCommit message (Collapse)Author
2025-07-31std.compress.flate.Decompress: hashing is out of scopeAndrew Kelley
This API provides the data; applications can verify their own checksums.
2025-07-31std.Io: delete SeekableStreamAndrew Kelley
Alternative is to use File.Reader and File.Writer directly.
2025-07-31putting stuff back does not require mutationAndrew Kelley
2025-07-31compiler: update to new flate APIAndrew Kelley
2025-07-31simplify tossBitsEndingAndrew Kelley
2025-07-31fix takeBitsEndingAndrew Kelley
2025-07-31make takeBits deal with integers onlyAndrew Kelley
2025-07-31fix peekBitsEndingAndrew Kelley
2025-07-31error.EndOfStream disambiguationAndrew Kelley
2025-07-31implement tossBitsEndingAndrew Kelley
2025-07-31std.compress.flate.Decompress: unfuck the test suiteAndrew Kelley
2025-07-31simplify test casesAndrew Kelley
2025-07-31std.compress.flate.Decompress: don't compute checksumsAndrew Kelley
These have no business being in-bound; simply provide the expected values to user code for maximum flexibility.
2025-07-31refactor gzip test casesAndrew Kelley
zig newbies love using for loops in unit tests
2025-07-31std.compress.flate.Decompress: implement peekBitsEnding and writeMatchAndrew Kelley
2025-07-31fix bit read not at eofAndrew Kelley
2025-07-31std.compress.flate.Decompress: fix bit read at eofAndrew Kelley
2025-07-31std.compress.flate.Decompress: implement more bit readingAndrew Kelley
2025-07-31std.compress.flate.Decompress: passing basic test caseAndrew Kelley
2025-07-31std.compress.flate.Decompress: add rebase implAndrew Kelley
2025-07-31std.Io: delete BitReaderAndrew Kelley
2025-07-31std.Io: remove BitWriterAndrew Kelley
2025-07-31std.compress.flate: finish reorganizingAndrew Kelley
2025-07-31simplify std.hash.Adler32Andrew Kelley
2025-07-31delete flate implementationAndrew Kelley
2025-07-31std.compress: rework flate to new I/O APIAndrew Kelley
2025-08-01enable pwd.h functions for other OSesChinmay Dalal
also add the layout of `struct passwd` for DragonflyBSD and FreeBSD: - https://github.com/DragonFlyBSD/DragonFlyBSD/blob/c267aac0072dae6cf4ae874605f3f0659a2fc820/include/pwd.h#L112 - https://cgit.freebsd.org/src/tree/include/pwd.h?id=d66f9c86fa3fd8d8f0a56ea96b03ca11f2fac1fb#n114
2025-07-31std.Io.Reader: fix readVec at endAndrew Kelley
2025-07-31std.enums: fix `EnumIndexer` branch quotamlugg
It's quite silly to have this override which nonetheless makes assumptions about the input type. Encode the actual complexity of the sort. Also, simplify the sorting logic, and fix a bug (grab min and max *after* the sort, not *before*!)
2025-07-31Merge pull request #24632 from mlugg/lossy-int-to-float-coercionMatthew Lugg
Sema: compile error on lossy int to float coercion
2025-07-31Merge pull request #24633 from linusg/more-serenity-fixesAndrew Kelley
std: A few more fixes for serenity
2025-07-31std.Target: require libc for Android API levels prior to 29Alex Rønne Petersen
Emulated TLS depends on libc pthread functions. Closes #24589.
2025-07-31std: stop relying on precision-losing coercionsmlugg
2025-07-30add grp.h functions to c.zigChinmay Dalal
2025-07-30std: Add serenity to more OS checksLinus Groh
2025-07-30std.posix: Default ACCMODE to NONE for serenityLinus Groh
Unlike all other platforms where RDONLY is 0 it does not work as a default for the O flags on serenity - various syscalls other than 'open', e.g. 'pipe', return EINVAL if unexpected bits are set in the flags.
2025-07-30std.c: Fix MAP for serenityLinus Groh
I accidentally translated MAP_ constants representing the type as individual fields. MAP_FILE is for compatibility only and not needed here.
2025-07-30std.c: Fix msghdr_const for serenityLinus Groh
2025-07-30build system: print captured stderr on Run step failureLoris Cro
when a Run step that captures stderr fails, no output from it is visible by the user and, since the step failed, any downstream step that would process the captured stream will not run, making it impossible for the user to see the stderr output from the failed process invocation, which makes for a frustrating puzzle when this happens in CI.
2025-07-30std.Target: pull Os.requiresLibC() up to TargetAlex Rønne Petersen
2025-07-30std.Io.Reader: introduce readVec back into the VTableAndrew Kelley
simplifies and fixes things addresses a subset of #24608
2025-07-30Update doc comment for `ptr_type` and `ptr_type_bit_range` to `data` of ↵Kurt Wagner
`.extra_and_node` The other pointer types are `.opt_node_and_node` but `ptr_type` and `ptr_type_bit_range` contain `.extra_and_node` in their `data` field
2025-07-29std.Io.Reader: make fillUnbuffered respect prexisting bufferAndrew Kelley
addresses only one usage pattern in #24608
2025-07-29disable more failing testsmlugg
Wow, *lots* of backends were reliant on Sema doing the heavy lifting for them. CBE, Wasm, and SPIR-V have all regressed in places now that they actually need to, like, initialize unions and such.
2025-07-28DeprecatedReader.Adapted: fix EndOfStream handlingKendall Condon
2025-07-28aarch64: workaround some optional/union issuesJacob Young
2025-07-27std.compress.xz: eliminate dependency on std.Io.bitReaderAndrew Kelley
2025-07-26std.zig: fmtId returns a FormatIdA cursed quail
Changes fmtId to return the FormatId type directly, and renames the FormatId.render function to FormatId.format, so it can be used in a format expression directly. Why? Since `render` is private, you can't create functions that wrap `fmtId` or `fmtIdFlags`, since you can't name the return type of those functions outside of std itself. The current setup _might_ be intentional? In which case I can live with it, but I figured I'd make a small contrib to upstream zig :)
2025-07-26std.Io.Reader: add rebase to the vtableAndrew Kelley
This eliminates a footgun and special case handling with fixed buffers, as well as allowing decompression streams to keep a window in the output buffer.
2025-07-26std.Build: Deprecate `Step.Compile` APIs that mutate the root moduleCarl Åstholm
Not only are `Step.Compile` methods like `linkLibC()` redundant because `Module` exposes the same APIs, it also might not be immediately obvious to users that these methods modify the underlying root module, which can be a footgun and lead to unintended results if the module is exported to package consumers or shared by multiple compile steps. Using `compile.root_module.link_libc = true` makes it more clear to users which of the compile step and the module owns which options.