aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2025-07-30std.crypto: support for hashes without optionssha1-streamAndrew Kelley
2025-07-30std.crypto.Sha1: make it a WriterAndrew Kelley
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-27Merge pull request #24585 from jacobly0/aarch64Andrew Kelley
aarch64: more progress
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-26aarch64: implement more optional/error union/union supportJacob Young
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.
2025-07-25Merge pull request #24564 from ziglang/terminal-progress-barAndrew Kelley
std.Progress: support progress bar escape codes
2025-07-25Merge pull request #24559 from ziglang/zstdAndrew Kelley
std: rework zstd for new I/O API
2025-07-25Merge pull request #23340 from castholm/pass-null-to-b-dependencyAndrew Kelley
Add support for passing null, string literals, enum lists and more to `b.dependency()`
2025-07-25std.Progress: introduce StatusAndrew Kelley
2025-07-25std.Progress: support progress bar escape codesAndrew Kelley
2025-07-25std.posix.ftruncate: handle NonResizable properlyAndrew Kelley
2025-07-25std.compress.zstd.Decompress: fix bytes_written trackingAndrew Kelley
2025-07-25std.fs.File.end: account for streaming modeAndrew Kelley
2025-07-25std.compress.zstd: keep frame state between blocksAndrew Kelley
2025-07-25std.compress.zstd: fix endianness issueAndrew Kelley
instead of manually bitcast, use the handy dandy takeStruct function.
2025-07-25std.compress.zstd: respect the window lengthAndrew Kelley
2025-07-25std.Io: add "preserve" variants to Reader/WriterAndrew Kelley
2025-07-25std: rework zstd for new I/O APIAndrew Kelley
This passes tests but it doesn't provide as big a window size as is required to decompress larger streams. The next commit in this branch will work towards that, without introducing an additional buffer.
2025-07-25init: replace '--strip' with '--minimal'mlugg
This option never worked properly (it emitted wrongly-formatted code), and it doesn't seem particularly *useful* -- someone who's proficient enough with `std.Build` to not need explanations probably just wants to write their own thing. Meanwhile, the use case of writing your own `build.zig` was extremely poorly served, because `build.zig.zon` *needs* to be generated programmatically for a correct `fingerprint`, but the only ways to do that were to a) do it wrong and get an error, or b) get the full init template and delete the vast majority of it. Both of these were pretty clunky, and `-s` didn't really help. So, replace this flag with a new one, `--minimal`/`-m`, which uses a different template. This template is trivial enough that I opted to just hardcode it into the compiler for simplicity. The main job of `zig init -m` is to generate a correct `build.zig.zon` (if it is unable to do this, it exits with a fatal error). In addition, it will *attempt* to generate a tiny stub `build.zig`, with only an `std` import and an empty `pub fn build`. However, if `build.zig` already exists, it will avoid overwriting it, and doesn't even complain. This serves the use case of writing `build.zig` manually and *then* running `zig init -m` to generate an appropriate `build.zig.zon`.
2025-07-24zig std: fix sources.tar generationIan Johnson
Analogous to #24576 for `-femit-docs`
2025-07-24zig std: update std.Io.poll API usageAndrew Kelley
fixes FTBFS
2025-07-23Merge pull request #24561 from linusg/serenity-fixesAndrew Kelley
Small fixes for SerenityOS
2025-07-23std.Io.poll: update to new I/O APIAndrew Kelley
2025-07-24std.posix: Fix ACCMODE values for serenityLinus Groh
2025-07-24std.c: Fix dirent.name size for serenityLinus Groh
The null terminator is added to the buffer size.
2025-07-23Merge pull request #24523 from ziglang/fifnoAndrew Kelley
std.tar: update to new I/O API
2025-07-22aarch64: add new from scratch self-hosted backendJacob Young
2025-07-22don't forget to advance in the deprecated adapterAndrew Kelley
2025-07-22std.tar: delete function redundant with std.memAndrew Kelley
2025-07-22zig std: update for new tar I/O APIAndrew Kelley
2025-07-22std.tar.Writer: delete ill-advised APIAndrew Kelley
dependency on time is sus
2025-07-22std: fix deprecated writer not handling the bufferAndrew Kelley
2025-07-22give the Reader API adapter a bufferAndrew Kelley
it needs one or else it always asserts
2025-07-22fix docs wasm std.tar API usageAndrew Kelley
2025-07-22std.tar.Writer: fix 32-bitAndrew Kelley
2025-07-22std.tar: update to new I/O APIAndrew Kelley
2025-07-22std.Io: add deprecation warningsAndrew Kelley
2025-07-22std.Io: delete FindByteWriterAndrew Kelley
dead
2025-07-22std.Io: delete ChangeDetectionStreamAndrew Kelley
dead code
2025-07-22std.Io: delete MultiWriterAndrew Kelley
nah
2025-07-22std.Io: delete BufferedAtomicFileAndrew Kelley
this is now redundant