aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
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
2025-07-22std.Io: delete StreamSourceAndrew Kelley
it shan't be missed
2025-07-22std.Io: delete CWriterAndrew Kelley
it shan't be missed
2025-07-22std.fs.File.Reader.sendFile: fix 32-bit freebsdAndrew Kelley
2025-07-21std.fs.File.Reader.sendFile: fix EndOfStream detectionAndrew Kelley
2025-07-21std.fs.File.Reader: fix sendFile logicAndrew Kelley
it wasn't accounting for both writer and reader buffering
2025-07-21std.fs.File.Reader: fix seek position logicAndrew Kelley
2025-07-21std.fs.File.Reader: only fcopyfile if size availableAndrew Kelley
2025-07-21objcopy: delete most of itAndrew Kelley
this code is not up to zig project standards tracked by #24522 oh, and fix not adjusting buffer seek position in std.fs.File.Reader
2025-07-21std.fs.File: delete writeFileAll and friendsAndrew Kelley
please use File.Writer for these use cases also breaking API changes to std.fs.AtomicFile
2025-07-21build runner: print newline before summaryAndrew Kelley
2025-07-21std.json: delete dead APIAndrew Kelley
2025-07-21std.fs.File.Reader: fix missed advance writer positionsAndrew Kelley
2025-07-21std.Thread: don't spinAndrew Kelley
2025-07-20std.Io.Reader: fix takeStruct/peekStruct packedAndrew Kelley
closes #24516
2025-07-20Support passing `std.zig.BuildId` to `b.dependency()`Carl Åstholm
2025-07-20Support passing enum slices to `b.dependency()`Carl Åstholm
2025-07-20Coerce slice-like arguments passed to `b.dependency()`Carl Åstholm
You can now pass string literals as options.
2025-07-20Dupe string optionsCarl Åstholm
2025-07-20Serialize float options using the hexadecimal formatCarl Åstholm
This ensures no information is lost when the value is round-tripped.
2025-07-20Support passing null to `b.dependency()`Carl Åstholm
Both null literals and optionals are supported.
2025-07-20Merge pull request #24488 from ziglang/moreAndrew Kelley
std.zig: finish updating to new I/O API