zig/lib/std
Andrew Kelley 6e4fff6ba6 move installation logic to the build script where it belongs
* build.zig: introduce `-Dflat` option which makes the installation
  match what we want to ship for our download tarballs. This allows
  deleting a bunch of shell script logic from the CI.
  - for example it puts the executable directly in prefix/zig rather
    than prefix/bin/zig and it additionally includes prefix/LICENSE.
* build.zig: by default also install std lib documentation to doc/std/
  - this can be disabled by `-Dno-autodocs` similar to how there is
    already `-Dno-langref`.
* build.zig: add `std-docs` and `langref` steps which build and install
  the std lib autodocs and langref to prefix/doc/std and
  prefix/doc/langref.html, respectively.

* std.Build: implement proper handling of `-femit-docs` using the
  LazyPath system. This is a breaking change.
  - this is a partial implementation of #16351
* frontend: fixed the handling of Autodocs with regards to caching and
  putting the artifacts in the proper location to integrate with the
  build system.
  - closes #15864

* CI: delete the logic for autodocs since it is now handled by build.zig
  and is enabled by default.
  - in the future we should strive to have nearly all the CI shell
    script logic deleted in favor of `zig build` commands.
* CI: pass `-DZIG_NO_LIB=ON`/`-Dno-lib` except for the one command where
  we want to actually generate the langref and autodocs. Generating the
  langref takes 14 minutes right now (why?!) so we don't want to do that
  more times than necessary.

* Autodoc: fixed use of a global variable. It works fine as a local
  variable instead.
  - note that in the future we will want to make Autodoc run
    simultaneously using the job system, but for now the principle of
    YAGNI dictates that we don't have an init()/deinit() API and instead
    simply call the function that does the things.
* Autodoc: only do it when there are no compile errors
2023-07-22 00:16:27 -07:00
..
atomic all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
Build move installation logic to the build script where it belongs 2023-07-22 00:16:27 -07:00
c darwin: update mcontext_t definition for aarch64 to add neon state 2023-07-20 22:58:14 -04:00
compress all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
crypto Be more conservative in the description of Aegis256Mac (#16452) 2023-07-19 23:59:24 +00:00
dwarf dwarf: implement aarch64 default register rules 2023-07-20 22:58:16 -04:00
event all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
fmt reduce AstGen.numberLiteral stack usage 2023-07-20 12:51:18 -07:00
fs fs.path: Fix Windows path component comparison being ASCII-only 2023-06-30 15:29:43 -07:00
hash all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
heap std: fix doc comment of GPA deinit 2023-07-03 01:14:20 -07:00
http Remove len parameter from splat in standard lib 2023-07-12 15:35:57 -07:00
io Merge pull request #15879 from r00ster91/more_stage1_test_coverage 2023-07-03 15:59:54 -07:00
json std.json: Unify stringify and writeStream (#16405) 2023-07-21 19:56:46 -04:00
math std.math.big.int: better name for equal function 2023-07-03 11:00:13 -07:00
mem Optimize Allocator functions to create less duplicate code for similar types (#16332) 2023-07-06 14:41:49 -04:00
meta all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
net Disallow named test decls with duplicate names 2023-05-08 10:59:06 +03:00
os debug: fix initialization of the optional fields on StackIterator 2023-07-20 22:58:15 -04:00
rand is has -> has 2023-06-25 23:30:25 -07:00
sort improve documentation of std.sort.*Context functions (#16145) 2023-06-27 00:51:06 -07:00
target all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
testing all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
Thread std: implement detach for WASI-threads 2023-06-26 20:00:58 +02:00
time all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
tz
unicode all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
valgrind all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
zig zig fmt: additionally auto-fix @byteSwap (#16462) 2023-07-22 01:42:39 -04:00
array_hash_map.zig compiler: rework inferred error sets 2023-07-18 19:02:05 -07:00
array_list.zig std: reword some comments 2023-07-16 18:32:52 -07:00
ascii.zig migration: std.math.{min, min3, max, max3} -> @min & @max 2023-06-16 13:44:09 -07:00
atomic.zig std: remove names from incorrectly named tests 2023-04-21 23:08:48 -04:00
base64.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
bit_set.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
BitStack.zig std.json: Unify stringify and writeStream (#16405) 2023-07-21 19:56:46 -04:00
bounded_array.zig Smaller memory footprint for BoundedArray (#16299) 2023-07-03 13:58:03 -04:00
buf_map.zig doc: fix minor grammar issues 2023-04-22 13:09:15 +03:00
buf_set.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
Build.zig Build: make InstallDirStep use a FileSource 2023-06-26 15:59:53 -07:00
builtin.zig Merge pull request #15775 from r00ster91/newlines 2023-07-11 23:06:12 -07:00
c.zig c: fixup getcontext 2023-07-20 22:58:14 -04:00
child_process.zig std.cstr: deprecate namespace 2023-06-25 14:51:03 -07:00
coff.zig dwarf: fixup integer overflow in readEhPointer 2023-07-20 22:58:16 -04:00
compress.zig std.compress.zstd: renamed from std.compress.zstandard 2023-02-22 00:11:20 +11:00
comptime_string_map.zig std.sort.block: add safety check for lessThan return value 2023-06-26 17:50:10 -07:00
crypto.zig std.crypto.ff - Alloc-free, constant-time field arithmetic for crypto (#15795) 2023-05-22 16:11:06 +02:00
cstr.zig std.cstr: deprecate namespace 2023-06-25 14:51:03 -07:00
debug.zig dwarf: move macho unwind code from macho -> dwarf 2023-07-20 22:58:16 -04:00
dwarf.zig dwarf: move macho unwind code from macho -> dwarf 2023-07-20 22:58:16 -04:00
dynamic_library.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
elf.zig debug: support loading elf debug info from external files 2023-07-20 22:58:12 -04:00
enums.zig std.sort.block: add safety check for lessThan return value 2023-06-26 17:50:10 -07:00
event.zig
fifo.zig migration: std.math.{min, min3, max, max3} -> @min & @max 2023-06-16 13:44:09 -07:00
fmt.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
fs.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
hash.zig add std.hash.uint32 2023-06-10 20:42:30 -07:00
hash_map.zig std.hash_map: Fix casing of keyPtr variables 2023-07-20 12:52:05 -07:00
heap.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
http.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
Ini.zig add std.Ini for basic .ini file parsing 2023-01-11 15:39:48 -08:00
io.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
json.zig std.json: Unify stringify and writeStream (#16405) 2023-07-21 19:56:46 -04:00
leb128.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
linked_list.zig SinglyLinkedList: rename invert -> reverse 2023-07-15 21:37:54 -07:00
log.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
macho.zig dwarf: move macho unwind code from macho -> dwarf 2023-07-20 22:58:16 -04:00
math.zig Remove len parameter from splat in standard lib 2023-07-12 15:35:57 -07:00
mem.zig Remove len parameter from splat in standard lib 2023-07-12 15:35:57 -07:00
meta.zig Remove len parameter from splat in standard lib 2023-07-12 15:35:57 -07:00
multi_array_list.zig Add more sorting functions to MultiArrayList (#16377) 2023-07-11 06:37:51 +00:00
net.zig Unrevert "Sema: preserve extern struct field alignment" 2023-06-30 23:24:52 -04:00
once.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
os.zig getenv: remove unnessary small key block 2023-07-18 11:44:23 +02:00
packed_int_array.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
pdb.zig std.pdb: fix incorrect field alignment in ptrCast 2023-06-30 23:23:03 -04:00
priority_dequeue.zig [priority_dequeue] Fix out-of-bounds access 2023-06-22 02:03:53 -07:00
priority_queue.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
process.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
Progress.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
rand.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
RingBuffer.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
segmented_list.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
SemanticVersion.zig std: replace builtin.Version with SemanticVersion 2023-06-17 13:17:34 -07:00
simd.zig Remove len parameter from splat in standard lib 2023-07-12 15:35:57 -07:00
sort.zig improve documentation of std.sort.*Context functions (#16145) 2023-06-27 00:51:06 -07:00
start.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
start_windows_tls.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
std.zig std.json: Unify stringify and writeStream (#16405) 2023-07-21 19:56:46 -04:00
tar.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
target.zig llvm: fix various crashes 2023-07-19 23:38:40 -04:00
testing.zig Remove len parameter from splat in standard lib 2023-07-12 15:35:57 -07:00
Thread.zig default to single-threaded for WebAssembly 2023-06-26 20:00:58 +02:00
time.zig implement std.time.sleep for uefi 2023-07-07 11:57:09 -07:00
treap.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
tz.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
unicode.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
Uri.zig std.Uri: allow getting the mutable result from (un)escape 2023-06-26 15:46:04 +03:00
valgrind.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
wasm.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
zig.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00