zig/lib/std
Andrew Kelley 17eb24a7e4
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
  `@import("std").builtin`. The target-related types are moved
  to `std.Target`. This allows the data types to have methods, such as
  `std.Target.current.isDarwin()`.
 * `std.os.windows.subsystem` is moved to
   `std.Target.current.subsystem`.
 * Remove the concept of the panic package from the compiler
   implementation. Instead, `std.builtin.panic` is always the panic
   function. It checks for `@hasDecl(@import("root"), "panic")`,
   or else provides a default implementation.

This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 19:09:49 -04:00
..
atomic mv std/ lib/ 2019-09-25 23:35:41 -04:00
build mv std/ lib/ 2019-09-25 23:35:41 -04:00
c support Android NDK and bionic 2019-09-27 16:51:42 -04:00
crypto Replace code occurences of --override-std-dir with --override-lib-dir 2019-10-01 07:29:24 -04:00
debug mv std/ lib/ 2019-09-25 23:35:41 -04:00
event Use 8192 sized buffers and remove allocator parameters 2019-10-19 14:04:51 -04:00
fmt mv std/ lib/ 2019-09-25 23:35:41 -04:00
fs Handle TERM=dumb for stdout/stderr 2019-10-23 11:44:39 -04:00
hash Replace code occurences of --override-std-dir with --override-lib-dir 2019-10-01 07:29:24 -04:00
heap mv std/ lib/ 2019-09-25 23:35:41 -04:00
http remove pub syntax for container fields 2019-10-21 23:04:19 -04:00
io remove pub syntax for container fields 2019-10-21 23:04:19 -04:00
json merge dumps tool: merging ast nodes 2019-10-11 18:13:24 -04:00
math mv std/ lib/ 2019-09-25 23:35:41 -04:00
meta mv std/ lib/ 2019-09-25 23:35:41 -04:00
os move types from builtin to std 2019-10-23 19:09:49 -04:00
rand mv std/ lib/ 2019-09-25 23:35:41 -04:00
special move types from builtin to std 2019-10-23 19:09:49 -04:00
time mv std/ lib/ 2019-09-25 23:35:41 -04:00
unicode mv std/ lib/ 2019-09-25 23:35:41 -04:00
valgrind mv std/ lib/ 2019-09-25 23:35:41 -04:00
zig remove pub syntax for container fields 2019-10-21 23:04:19 -04:00
array_list.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
ascii.zig mv std/ lib/ 2019-09-25 23:35:41 -04: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 mv std/ lib/ 2019-09-25 23:35:41 -04:00
buf_map.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
buf_set.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
buffer.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
build.zig move types from builtin to std 2019-10-23 19:09:49 -04:00
builtin.zig move types from builtin to std 2019-10-23 19:09:49 -04:00
c.zig breaking: improve std.fs directory handling API 2019-10-20 21:48:23 -04:00
child_process.zig remove pub syntax for container fields 2019-10-21 23:04:19 -04:00
coff.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
crypto.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
cstr.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
debug.zig Fix stack iteration stop condition 2019-10-13 17:49:47 -04:00
dwarf.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
dynamic_library.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
elf.zig Add ELF architecture constant for RISC-V 2019-10-13 12:12:33 +02:00
event.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
fmt.zig Adds documentation for std.fmt.format grammar and customization. (#3474) 2019-10-22 14:58:27 -04:00
fs.zig cleanup 2019-10-21 20:50:47 -04:00
hash.zig merge dumps tool: merging ast nodes 2019-10-11 18:13:24 -04:00
hash_map.zig generated docs: progress towards generic types being useful 2019-10-16 01:49:02 -04:00
heap.zig remove pub syntax for container fields 2019-10-21 23:04:19 -04:00
http.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
io.zig Merge branch 'stratact-no-dir-allocators' 2019-10-21 23:54:29 -04:00
json.zig miscellaneous improvements to generated docs 2019-10-10 23:25:40 -04:00
lazy_init.zig mv std/ lib/ 2019-09-25 23:35:41 -04: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 ref more math decls for better docs 2019-10-16 19:16:57 -04:00
mem.zig fix std.mem.AsBytesReturnType (#3442) 2019-10-16 18:15:52 -04:00
meta.zig ref more math decls for better docs 2019-10-16 19:16:57 -04:00
mutex.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
net.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
os.zig move types from builtin to std 2019-10-23 19:09:49 -04:00
packed_int_array.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
pdb.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
priority_queue.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
process.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
progress.zig adjust test runner to print the test name when error occurs 2019-10-21 18:36:37 -04:00
rand.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
rb.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
segmented_list.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
sort.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
spinlock.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
statically_initialized_mutex.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
std.zig move types from builtin to std 2019-10-23 19:09:49 -04:00
target.zig move types from builtin to std 2019-10-23 19:09:49 -04:00
testing.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
thread.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
time.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
unicode.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
valgrind.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
zig.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00