0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std
Andrew Kelley a690a5085d
rework and improve some of the zig build steps
* `RunStep` moved to lib/std/build/run.zig and gains ability to compare
   output and exit code against expected values. Multiple redundant
   locations in the test harness code are replaced to use `RunStep`.
 * `WriteFileStep` moved to lib/std/build/write_file.zig and gains
   ability to write more than one file into the cache directory, for
   when the files need to be relative to each other. This makes
   usage of `WriteFileStep` no longer problematic when parallelizing
   zig build.
 * Added `CheckFileStep`, which can be used to validate that the output
   of another step produced a valid file. Multiple redundant locations
   in the test harness code are replaced to use `CheckFileStep`.
 * Added `TranslateCStep`. This exposes `zig translate-c` to the build
   system, which is likely to be rarely useful by most Zig users;
   however Zig's own test suite uses it both for translate-c tests and
   for run-translated-c tests.
 * Refactored ad-hoc code to handle source files coming from multiple
   kinds of sources, into `std.build.FileSource`.
 * Added `std.build.Builder.addExecutableFromWriteFileStep`.
 * Added `std.build.Builder.addExecutableSource`.
 * Added `std.build.Builder.addWriteFiles`.
 * Added `std.build.Builder.addTranslateC`.
 * Added `std.build.LibExeObjStep.addCSourceFileSource`.
 * Added `std.build.LibExeObjStep.addAssemblyFileFromWriteFileStep`.
 * Added `std.build.LibExeObjStep.addAssemblyFileSource`.
 * Exposed `std.fs.base64_encoder`.
History 2020-01-05 02:19:22 -05:00
..
atomic Replace @typeOf with @TypeOf in all zig source 2019-12-10 11:09:41 -05:00
build rework and improve some of the zig build steps 2020-01-05 02:19:22 -05:00
c c.linux: add memfd_create 2019-12-31 15:58:03 -05:00
crypto std.mem.compare: breaking API changes 2020-01-01 18:08:40 -05:00
debug zig fmt 2019-11-25 13:53:13 -05:00
event Replace @typeOf with @TypeOf in all zig source 2019-12-10 11:09:41 -05:00
fmt update more of the std lib to use @as 2019-11-08 15:57:25 -05:00
fs Merge remote-tracking branch 'origin/master' into remove-array-type-coercion 2019-12-01 09:56:01 -05:00
hash Replace @typeOf with @TypeOf in all zig source 2019-12-10 11:09:41 -05:00
heap mv std/ lib/ 2019-09-25 23:35:41 -04:00
http std.mem.compare: breaking API changes 2020-01-01 18:08:40 -05:00
io improvements to memfd_create 2019-12-31 16:34:14 -05:00
json Merge pull request #3648 from xackus/json-unescape 2019-12-29 18:31:10 -05:00
math fix float ops with respect to vectors 2020-01-01 23:27:43 -05:00
meta self-hosted: manually parse args 2019-12-11 02:08:33 -05:00
net std.fmt.format: tuple parameter instead of var args 2019-12-08 22:53:51 -05:00
os std.os.memfd_create: add error.SystemOutdated 2019-12-31 17:57:20 -05:00
rand update the codebase to use @as 2019-11-08 15:57:24 -05:00
special fix float ops with respect to vectors 2020-01-01 23:27:43 -05:00
time mv std/ lib/ 2019-09-25 23:35:41 -04:00
unicode std: add warm up phase to benchmark 2019-12-28 14:39:38 +11:00
valgrind string literals are now null terminated 2019-11-21 20:43:41 -05:00
zig Revert "Trailing comma is respected for builtin calls" 2020-01-02 21:53:25 -05:00
array_list.zig ArrayList: ptrAt function returns pointer to item at given index 2019-12-29 18:46:59 -05:00
ascii.zig update the codebase to use @as 2019-11-08 15:57:24 -05:00
atomic.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
base64.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
bloom_filter.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
buf_map.zig rename std.heap.direct_allocator to std.heap.page_allocator 2019-11-25 17:25:06 -05:00
buf_set.zig rename std.heap.direct_allocator to std.heap.page_allocator 2019-11-25 17:25:06 -05:00
buffer.zig fix std.mem.addNullByte and implement sentinel slicing 2019-12-20 18:28:56 -05:00
build.zig rework and improve some of the zig build steps 2020-01-05 02:19:22 -05:00
builtin.zig un-special-case startup code in the std lib 2019-12-12 18:33:44 -05:00
c.zig std.c: c_uint -> u32 for sockopt functions 2019-12-30 19:26:30 -05:00
child_process.zig Fix for the error codepath in ChildProcess 2019-12-16 10:57:29 +01:00
coff.zig fix windows std lib regressions 2019-11-29 21:55:27 -05:00
crypto.zig crypto: Add AES implementation 2019-11-01 22:42:25 -04:00
cstr.zig fix std.mem.addNullByte and implement sentinel slicing 2019-12-20 18:28:56 -05:00
debug.zig sentinel slicing improvements 2019-12-20 18:28:59 -05:00
dwarf.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
dynamic_library.zig freebsd: add missing OS and libc bits 2019-12-22 02:27:23 -05:00
elf.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
event.zig std lib networking improvements, especially non-blocking I/O 2019-10-29 22:59:30 -04:00
fifo.zig std.fmt.format: tuple parameter instead of var args 2019-12-08 22:53:51 -05:00
fmt.zig std.fmt.format: add helpful compile error for non-tuple args 2019-12-31 13:13:13 -05:00
fs.zig rework and improve some of the zig build steps 2020-01-05 02:19:22 -05:00
hash.zig merge dumps tool: merging ast nodes 2019-10-11 18:13:24 -04:00
hash_map.zig documentation for mutable HashMap KV pointers 2019-12-07 13:22:23 -05:00
heap.zig Merge pull request #3830 from fengb/wasm-page-allocator 2019-12-10 10:58:50 -05:00
http.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
io.zig lib/std/io: let the bring-your-own OS package handle stdio (#3887) 2019-12-11 18:37:52 -05:00
json.zig std: fix typo in comment 2019-12-31 03:06:33 +11:00
lazy_init.zig use enum with atomics in std lib 2019-11-12 17:55:54 +02:00
LICENSE add extra LICENSE file for clarification 2019-12-02 15:11:11 -05:00
linked_list.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
macho.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
math.zig std.mem.compare: breaking API changes 2020-01-01 18:08:40 -05:00
mem.zig std.mem.compare: breaking API changes 2020-01-01 18:08:40 -05:00
meta.zig std: meta.TagPayloadType takes the tag type of the union 2019-12-30 23:09:18 +11:00
mutex.zig ResetEvent: broadcast by default 2019-12-22 21:45:26 -06:00
net.zig std.net: use mem.toBytes 2019-12-30 19:26:30 -05:00
os.zig std.os.memfd_create: add error.SystemOutdated 2019-12-31 17:57:20 -05:00
packed_int_array.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
pdb.zig Replace @typeOf with @TypeOf in all zig source 2019-12-10 11:09:41 -05:00
priority_queue.zig std.fmt.format: tuple parameter instead of var args 2019-12-08 22:53:51 -05:00
process.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
progress.zig std.fmt.format: tuple parameter instead of var args 2019-12-08 22:53:51 -05:00
rand.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
rb.zig std.mem.compare: breaking API changes 2020-01-01 18:08:40 -05:00
reset_event.zig typo fix 2019-12-22 21:45:26 -06:00
segmented_list.zig Replace @typeOf with @TypeOf in all zig source 2019-12-10 11:09:41 -05:00
sort.zig Add std.sort.argMax and std.sort.argMin 2019-12-04 18:20:55 +01:00
spinlock.zig SpinLock: loopHint & yield distinction 2019-12-17 15:38:00 -06:00
start.zig un-special-case startup code in the std lib 2019-12-12 18:33:44 -05:00
start_windows_tls.zig un-special-case startup code in the std lib 2019-12-12 18:33:44 -05:00
std.zig un-special-case startup code in the std lib 2019-12-12 18:33:44 -05:00
target.zig std.os.memfd_create: add error.SystemOutdated 2019-12-31 17:57:20 -05:00
testing.zig Fixes #3966 2019-12-29 18:19:03 -05:00
thread.zig Additional replacements of @typeOf with @TypeOf 2019-12-10 11:09:41 -05:00
time.zig update the codebase to use @as 2019-11-08 15:57:24 -05:00
unicode.zig std: unicode codepoints are 21 bits 2019-12-28 16:49:59 +11:00
valgrind.zig std.fmt.format: tuple parameter instead of var args 2019-12-08 22:53:51 -05:00
zig.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00