0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test/standalone
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
..
c_compiler Merge pull request #23501 from imreallybadatnames/master 2025-04-09 05:16:36 +00:00
c_embed_path std.Build: implement addEmbedPath for adding C #embed search directories 2025-03-27 09:47:42 +01:00
child_process test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
cmakedefine std.Build: introduce ConfigHeader.getOutputDir, small refactor 2025-06-17 11:55:36 +01:00
coff_dwarf test: Only run coff_dwarf test on aarch64, x86, x86_64 2025-07-01 23:03:15 +02:00
compiler_rt_panic test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
config_header std.Build.Step.ConfigHeader: permit inserting enum values 2025-02-19 09:34:46 +01:00
dep_diamond test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
dep_duplicate_module std.Build: add addLibrary function (#22554) 2025-01-22 02:29:21 +00:00
dep_lazypath test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
dep_mutually_recursive test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
dep_recursive tests: remove incorrect import 2025-05-18 17:10:04 +01:00
dep_shared_builtin test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
dep_triangle test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
depend_on_main_mod test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
dependencyFromBuildZig do more robust import 2024-04-18 11:24:42 -07:00
dirname tests: do not require absolute paths from the build system 2025-06-13 15:46:43 +01:00
embed_generated_file test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
emit_asm_and_bin test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
emit_asm_no_bin test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
emit_llvm_no_bin test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
empty_env test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
empty_global_error_set x86_64: fix @errorName data 2025-01-05 17:15:56 -05:00
entry_point Compilation: add missing link file options to cache manifest 2025-06-17 15:33:50 +01:00
env_vars Add standalone test for environment variables 2025-03-22 15:44:27 -07:00
extern Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
global_linkage std.Build: add addLibrary function (#22554) 2025-01-22 02:29:21 +00:00
install_headers std.Build: add addLibrary function (#22554) 2025-01-22 02:29:21 +00:00
install_raw_hex Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
ios Target: pass and use locals by pointer instead of by value 2025-06-19 11:45:06 -04:00
issue_339 test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
issue_794 test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
issue_5825 test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
issue_8550 Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
issue_11595 test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
issue_12706 Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
issue_13970 test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
libcxx test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
libfuzzer libfuzzer test: use proper cache dir logic 2025-05-19 04:03:16 +02:00
load_dynamic_library Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
mix_c_files tests: extern threadlocals require LLVM 2025-06-06 23:42:15 -07:00
mix_o_files test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
omit_cfi test: Add a standalone test for omitting CFI directives. 2025-01-19 02:15:30 +01:00
options test-cli: port build options test to new build system API 2025-05-20 23:02:51 -04:00
pie test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
pkg_import test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
run_cwd std.Build.Step.Run: prefix relative path arguments with './' 2025-06-18 22:45:05 +01:00
run_output_caching tests: do not require absolute paths from the build system 2025-06-13 15:46:43 +01:00
run_output_paths std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
self_exe_symlink tests: do not require absolute paths from the build system 2025-06-13 15:46:43 +01:00
shared_library std.Build: add addLibrary function (#22554) 2025-01-22 02:29:21 +00:00
sigpipe sigset_t: sigemptyset() and sigfillset() are functions that return sigset_t 2025-04-30 20:32:04 -07:00
simple std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
stack_iterator zig fmt 2025-07-07 13:39:16 -07:00
static_c_lib std.Build: add addLibrary function (#22554) 2025-01-22 02:29:21 +00:00
strip_empty_loop test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
strip_struct_init test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
test_obj_link_run test: Silence stderr output from test_obj_link_run. 2025-05-16 15:07:25 +01:00
test_runner_module_imports std.Build: extend test_runner option to specify whether runner uses std.zig.Server 2025-01-20 00:14:58 +00:00
test_runner_path std.Build: extend test_runner option to specify whether runner uses std.zig.Server 2025-01-20 00:14:58 +00:00
windows_argv std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
windows_bat_args Sema: Stop adding Windows implib link inputs for extern "..." syntax. 2025-07-06 01:00:18 +02:00
windows_entry_points test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
windows_resources test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
windows_spawn Sema: Stop adding Windows implib link inputs for extern "..." syntax. 2025-07-06 01:00:18 +02:00
zerolength_check test: add tests for @memmove 2025-04-26 13:34:17 +10:00
build.zig update_netbsd_libc: Add tool for updating NetBSD libc startup code. 2025-05-17 04:41:27 +02:00
build.zig.zon remove usingnamespace from the language 2025-07-07 13:39:48 -07:00