0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test/link
Andrew Kelley 0e37ff0d59 std.fmt: breaking API changes
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
History 2025-07-07 22:43:51 -07:00
..
bss tests: avoid loading 16 MiB onto the stack 2025-06-06 23:42:15 -07:00
common_symbols std.Build: add addLibrary function (#22554) 2025-01-22 02:29:21 +00:00
common_symbols_alignment std.Build: add addLibrary function (#22554) 2025-01-22 02:29:21 +00:00
glibc_compat test: Properly limit glibc_compat versions based on the host 2025-07-01 23:03:15 +02:00
interdependent_static_c_libs std.Build: add addLibrary function (#22554) 2025-01-22 02:29:21 +00:00
static_libs_from_object_files std.Build: add addLibrary function (#22554) 2025-01-22 02:29:21 +00:00
wasm ubsan: update wording 2025-02-25 11:22:33 -08:00
build.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
build.zig.zon test/link/wasm/segment: delete bad test 2025-01-15 15:11:37 -08:00
elf.zig std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
link.zig Build: change how the target is printed in step names 2025-06-19 11:45:06 -04:00
macho.zig Target: pass and use locals by pointer instead of by value 2025-06-19 11:45:06 -04:00