aboutsummaryrefslogtreecommitdiff
path: root/lib/std
AgeCommit message (Collapse)Author
2025-07-09std.fs.File.Writer: fix splat alias bugAndrew Kelley
same deal as previous commit
2025-07-09std.io.Writer.writeSplatHeader: fix splat alias bugAndrew Kelley
pointer comparison cannot be used since the buffers may alias
2025-07-09std.io.Writer.writeSplat: simplify and fixAndrew Kelley
2025-07-09std.io.Reader: make vtable contract more consistentAndrew Kelley
2025-07-09std.io.Reader.peekDelimiterInclusive: simplify and fixAndrew Kelley
2025-07-09std: fmt.format to io.Writer.printAndrew Kelley
allows reverting format -> deprecatedFormat, plus I think this is a nicer place for the function.
2025-07-09chicken out and allow ascii string alignmentAndrew Kelley
2025-07-09std: forbid alignment formatting options sometimesAndrew Kelley
2025-07-09std: replace formatInteger with formatNumberAndrew Kelley
2025-07-09eliminate all uses of std.io.Writer.count except for CBEAndrew Kelley
2025-07-08std.os.freebsd.copy_file_range: add missing error.UnexpectedAndrew Kelley
2025-07-08std.zig.system.linux: update API usageAndrew Kelley
2025-07-08std.fmt: refactor to remove cacheStringAndrew Kelley
when this kind of trick is needed, do it inline
2025-07-08update format strings in os/windows/test.zigAndrew Kelley
2025-07-08std: revert big int test to master branchAndrew Kelley
oops, it depends on usize
2025-07-07std.fs.File.Writer: implement positional writing for WindowsAndrew Kelley
2025-07-07std.io.Writer.VectorWrapper: fix vtable not being a unique addrAndrew Kelley
2025-07-07update standalone and incremental tests to new APIAndrew Kelley
2025-07-07std.Build.Step.CheckObject: mostly revert to master branchAndrew Kelley
the updated code to use new std.io API is crashing
2025-07-07fix 32-bit compilationAndrew Kelley
2025-07-07std.io.Reader: fix peekByteAndrew Kelley
2025-07-07fix std.io.Writer.VectorWrapper mechanismAndrew Kelley
previous implementation erroneously attempted to detect whether vector API was used via the buffer pointer. This implementation has an explicit flag.
2025-07-07std.Build.Step.Options: fix build failureAndrew Kelley
2025-07-07std.fs.File.Writer: implement positional writingAndrew Kelley
2025-07-07std.io.Writer.printValue: rework logicAndrew Kelley
Alignment and fill options only apply to numbers. Rework the implementation to mainly branch on the format string rather than the type information. This is more straightforward to maintain and more straightforward for comptime evaluation. Enums support being printed as decimal, hexadecimal, octal, and binary. `formatInteger` is another possible format method that is unconditionally called when the value type is struct and one of the integer-printing format specifiers are used.
2025-07-07std.fmt: fully remove format string from format methodsAndrew Kelley
Introduces `std.fmt.alt` which is a helper for calling alternate format methods besides one named "format".
2025-07-07compiler: fix remaining build failuresAndrew Kelley
2025-07-07std.zip: work around deprecated APIAndrew Kelley
2025-07-07std.testing: update to new std.io APIAndrew Kelley
2025-07-07std.fmt.format: use {t} for tag name rather than {s}Andrew Kelley
prevents footgun when formatted type changes from string to enum
2025-07-07compiler: update a bunch of format stringsAndrew Kelley
2025-07-07compiler: fix a bunch of format stringsAndrew Kelley
2025-07-07std.zig.llvm.Builder: update format APIAndrew Kelley
2025-07-07fix build runnerAndrew Kelley
2025-07-07compiler: upgrade various std.io API usageAndrew Kelley
2025-07-07update compiler source to new APIsAndrew Kelley
2025-07-07std.io.Writer.Allocating: rename interface to writerAndrew Kelley
2025-07-07std.io.Reader: fix appendRemainingAndrew Kelley
2025-07-07std.Build.Cache: write manifest without heap allocatingAndrew Kelley
Now that the buffered writing interface is not generic.
2025-07-07std.Build.Step.CheckObject: fix the TODOAndrew Kelley
2025-07-07std.io.Reader: finish implementing the unit testsAndrew Kelley
2025-07-07std.debug: lil buffer for this guyAndrew Kelley
2025-07-07std.io.Writer.Allocating: extra ensure byteAndrew Kelley
So that when returning from drain there is always capacity for at least one more byte.
2025-07-07std.io.Reader: fix fill implementationAndrew Kelley
now it avoids writing to buffer in the case of fixed
2025-07-07std.mem.byteSwapAllFields: support slicesAndrew Kelley
2025-07-07std.io.Reader: add doctest for streamDelimiterLimitAndrew Kelley
2025-07-07std.fs.File.Writer: fix drain implementationAndrew Kelley
it didn't account for data.len can no longer be zero
2025-07-07std.io.Reader: fix streamDelimiter and streamDelimiterEndingAndrew Kelley
2025-07-07std: formatted printing no longer prints type namesAndrew Kelley
for structs, enums, and unions. auto untagged unions are no longer printed as pointers; instead they are printed as "{ ... }". extern and packed untagged unions have each field printed, similar to what gdb does. also fix bugs in delimiter based reading
2025-07-07std.fmt: breaking API changesAndrew Kelley
added adapter to AnyWriter and GenericWriter to help bridge the gap between old and new API make std.testing.expectFmt work at compile-time std.fmt no longer has a dependency on std.unicode. Formatted printing was never properly unicode-aware. Now it no longer pretends to be. Breakage/deprecations: * std.fs.File.reader -> std.fs.File.deprecatedReader * std.fs.File.writer -> std.fs.File.deprecatedWriter * std.io.GenericReader -> std.io.Reader * std.io.GenericWriter -> std.io.Writer * std.io.AnyReader -> std.io.Reader * std.io.AnyWriter -> std.io.Writer * std.fmt.format -> std.fmt.deprecatedFormat * std.fmt.fmtSliceEscapeLower -> std.ascii.hexEscape * std.fmt.fmtSliceEscapeUpper -> std.ascii.hexEscape * std.fmt.fmtSliceHexLower -> {x} * std.fmt.fmtSliceHexUpper -> {X} * std.fmt.fmtIntSizeDec -> {B} * std.fmt.fmtIntSizeBin -> {Bi} * std.fmt.fmtDuration -> {D} * std.fmt.fmtDurationSigned -> {D} * {} -> {f} when there is a format method * format method signature - anytype -> *std.io.Writer - inferred error set -> error{WriteFailed} - options -> (deleted) * std.fmt.Formatted - now takes context type explicitly - no fmt string