zig/lib/std
Andrew Kelley c20ad51c62 introduce std.Build.Module and extract some logic into it
This moves many settings from `std.Build.Step.Compile` and into
`std.Build.Module`, and then makes them transitive.

In other words, it adds support for exposing Zig modules in packages,
which are configured in various ways, such as depending on other link
objects, include paths, or even a different optimization mode.

Now, transitive dependencies will be included in the compilation, so you
can, for example, make a Zig module depend on some C source code, and
expose that Zig module in a package.

Currently, the compiler frontend autogenerates only one
`@import("builtin")` module for the entire compilation, however, a
future enhancement will be to make it honor the differences in modules,
so that modules can be compiled with different optimization modes, code
model, valgrind integration, or even target CPU feature set.

closes #14719
2024-01-01 17:51:18 -07:00
..
Build introduce std.Build.Module and extract some logic into it 2024-01-01 17:51:18 -07:00
c translate-c: use Aro's tokenizer 2023-11-25 12:28:19 +02:00
compress lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
crypto std.crypto.kem.kyber: mitigate KyberSlash (#18316) 2023-12-22 15:57:16 +00:00
dwarf lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
event rework std.atomic 2023-11-22 19:08:55 -07:00
fmt lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
fs fs: Add tests for deleteTree not following symlinks 2023-12-22 13:47:19 +02:00
hash AstGen: add error for using inline loops in comptime only scopes 2023-12-08 16:54:32 -08:00
heap std.heap: Use @alignOf(T) rather than 0 if not manually overridden for alignment of MemoryPool items 2023-11-21 13:23:53 +00:00
http lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
io std: remove meta.trait 2023-11-22 13:24:27 -05:00
json refact: rectifified a typo in docs of stringify.zig 2023-12-28 00:06:30 +02:00
math Deprecate math.doNotOptimizeAway, use mem.doNotOptimizeAway (#18011) 2023-11-23 15:06:32 -05:00
mem
meta AstGen: add error for using inline loops in comptime only scopes 2023-12-08 16:54:32 -08:00
net std: disable flaky tcp server test 2023-12-19 12:01:09 -07:00
os Merge pull request #18328 from ExpidusOS/feat/uefi-time 2023-12-26 01:03:10 +02:00
rand lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
sort lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
target nvptx: omit sm_90a from the CPU target features for now 2023-09-19 09:37:53 -07:00
testing
Thread bsd: debitrot atomic and debug 2023-11-26 14:28:22 -05:00
time
tz
unicode
valgrind valgrind.memcheck: fix makeMem*() 2023-10-03 02:51:01 -07:00
zig AstGen: add error for using inline loops in comptime only scopes 2023-12-08 16:54:32 -08:00
array_hash_map.zig std: remove meta.trait 2023-11-22 13:24:27 -05:00
array_list.zig std.ArrayList: add initBuffer to the unmanaged array list 2023-11-22 11:32:14 -07:00
ascii.zig
atomic.zig rework std.atomic 2023-11-22 19:08:55 -07:00
base64.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
bit_set.zig Merge pull request #17852 from ziglang/zig-reduce 2023-11-04 14:25:50 -04:00
BitStack.zig
bounded_array.zig
buf_map.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
buf_set.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
Build.zig introduce std.Build.Module and extract some logic into it 2024-01-01 17:51:18 -07:00
builtin.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
c.zig translate-c: use Aro's tokenizer 2023-11-25 12:28:19 +02:00
child_process.zig More accurate argv-to-command-line serialization when spawning child processes on Windows 2023-12-18 23:58:26 +01:00
coff.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
compress.zig
comptime_string_map.zig
crypto.zig x86_64: implement 128-bit builtins 2023-10-23 22:42:18 -04:00
debug.zig test: test with -fstrip and fix failures 2023-12-01 04:34:50 +00:00
dwarf.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
dynamic_library.zig Add illumos OS tag 2023-10-02 15:31:49 -06:00
elf.zig elf: init output COMDAT group sections 2023-11-09 17:41:14 +01:00
enums.zig Add getPtrConstAssertContains(...) for compatibility with a const std.EnumMap 2023-12-11 22:04:43 +00:00
event.zig
fifo.zig x86_64: implement enough to pass unicode tests 2023-10-23 22:42:18 -04:00
fmt.zig Update formatFloat* docs to reflect limitation w/ large floats 2023-12-30 14:14:54 +02:00
fs.zig std.fs.File: flatten struct 2023-11-22 15:24:57 -07:00
hash.zig XXH3 Implementation for Zig STD (#17530) 2023-10-17 13:55:01 -05:00
hash_map.zig std.hash_map: clarify error when Context is missing pub hash/eql 2023-12-23 16:15:19 +02:00
heap.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
http.zig std.http: fix crashes found via fuzzing 2023-10-21 20:52:59 -05:00
Ini.zig
io.zig mem: fix ub in writeInt 2023-10-31 21:37:35 -04:00
json.zig x86_64: pass more tests 2023-10-25 04:28:30 -04:00
leb128.zig Dwarf: improve x86_64 backend debug info 2023-11-12 03:21:52 -05:00
linked_list.zig Revert "std.SinglyLinkedList: add sort function" 2023-11-24 22:33:50 -07:00
log.zig
macho.zig macho: rename flag to EXPORT_SYMBOL_FLAGS_WEAK_DEFINITION 2023-12-06 23:29:08 +01:00
math.zig Revert "Merge pull request #17824 from kcbanner/fixup_msvc_fmax" 2024-01-01 17:49:57 -07:00
mem.zig Remove all usages of std.mem.copy and remove std.mem.set (#18143) 2023-11-29 16:03:02 -05:00
meta.zig AstGen: add error for using inline loops in comptime only scopes 2023-12-08 16:54:32 -08:00
multi_array_list.zig x86_64: fix miscompilations 2023-11-04 09:15:05 -04:00
net.zig std.net: add explicit error sets for IP parsing 2023-12-16 16:15:51 +00:00
once.zig x86_64: fix std test failures 2023-11-03 23:18:21 -04:00
os.zig use linux.perf_event_open directly 2023-12-11 17:48:18 +02:00
packed_int_array.zig std.builtin.Endian: make the tags lower case 2023-10-31 21:37:35 -04:00
pdb.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
priority_dequeue.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
priority_queue.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
process.zig Update ArgIterator on Windows to follow standard Windows parsing rules 2023-12-18 22:55:46 +01:00
Progress.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
rand.zig std: remove meta.trait 2023-11-22 13:24:27 -05:00
RingBuffer.zig std.RingBuffer.zig: Fix typo in readLastAssumeLength 2023-11-21 13:55:09 +02:00
segmented_list.zig x86_64: implement enough to pass unicode tests 2023-10-23 22:42:18 -04:00
SemanticVersion.zig std.zig.system.NativeTargetInfo: fix glibc version parsing 2023-10-23 06:00:53 -04:00
simd.zig x86_64: fix cond_br 2023-10-27 03:33:49 -04:00
sort.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
start.zig Merge pull request #17815 from Luukdegram/wasm-no-entry 2023-11-05 18:44:12 -05:00
start_windows_tls.zig
std.zig std.http: use loadDefaultProxies in compiler 2023-10-21 20:52:58 -05:00
tar.zig std.tar: trim also spaces from the beginning of file size 2023-11-21 00:55:22 -05:00
target.zig move is_libcpp_lib_name and is_libc_lib_name to std.Target 2024-01-01 17:51:18 -07:00
testing.zig Revert "Merge pull request #12060 from Vexu/IterableDir" 2023-11-22 12:35:33 -07:00
Thread.zig doc: possible typo at std.Thread.spawn comment 2023-12-30 14:17:36 +02:00
time.zig os.uefi: add ns to epoch 2023-12-20 20:05:16 -08:00
treap.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
tz.zig std.builtin.Endian: make the tags lower case 2023-10-31 21:37:35 -04:00
unicode.zig Updated Utf8View example to format the single codepoint UTF-8 slice with {s} (#18288) 2024-01-01 18:47:27 -05:00
Uri.zig std.Uri: default some fields to null 2024-01-01 17:51:18 -07:00
valgrind.zig Fix simple doc mistakes. (#17624) 2023-10-21 21:24:55 +00:00
wasm.zig Fix simple doc mistakes. (#17624) 2023-10-21 21:24:55 +00:00
zig.zig frontend: move AstRlAnnotate to std.zig namespace 2023-11-24 17:09:08 -08:00