| ... | @@ -54,19 +54,21 @@ pub const Uri = @import("Uri.zig"); | ... | @@ -54,19 +54,21 @@ pub const Uri = @import("Uri.zig"); |
| 54 | | 54 | |
| 55 | pub const array_hash_map = @import("array_hash_map.zig"); | 55 | pub const array_hash_map = @import("array_hash_map.zig"); |
| 56 | | 56 | |
| 57 | /// Memory ordering, atomic data structures and operations. | 57 | /// Memory ordering, atomic data structures, and operations. |
| 58 | pub const atomic = @import("atomic.zig"); | 58 | pub const atomic = @import("atomic.zig"); |
| 59 | | 59 | |
| 60 | /// Base64 encoding / decoding. | 60 | /// Base64 encoding/decoding. |
| 61 | pub const base64 = @import("base64.zig"); | 61 | pub const base64 = @import("base64.zig"); |
| 62 | | 62 | |
| 63 | /// Bit-fiddling data structures. | 63 | /// Bit manipulation data structures. |
| 64 | pub const bit_set = @import("bit_set.zig"); | 64 | pub const bit_set = @import("bit_set.zig"); |
| 65 | | 65 | |
| 66 | /// Comptime-available information about the target machine and build mode. | 66 | /// Comptime-available information about the build environment, such as the target and optimize mode. |
| 67 | pub const builtin = @import("builtin.zig"); | 67 | pub const builtin = @import("builtin.zig"); |
| 68 | | 68 | |
| 69 | pub const c = @import("c.zig"); | 69 | pub const c = @import("c.zig"); |
| | 70 | |
| | 71 | /// COFF format. |
| 70 | pub const coff = @import("coff.zig"); | 72 | pub const coff = @import("coff.zig"); |
| 71 | | 73 | |
| 72 | /// Compression algorithms such as zlib, zstd, etc. | 74 | /// Compression algorithms such as zlib, zstd, etc. |
| ... | @@ -79,7 +81,11 @@ pub const cstr = @import("cstr.zig"); | ... | @@ -79,7 +81,11 @@ pub const cstr = @import("cstr.zig"); |
| 79 | | 81 | |
| 80 | /// Debug printing, allocation and other debug helpers. | 82 | /// Debug printing, allocation and other debug helpers. |
| 81 | pub const debug = @import("debug.zig"); | 83 | pub const debug = @import("debug.zig"); |
| | 84 | |
| | 85 | /// DWARF debugging data format. |
| 82 | pub const dwarf = @import("dwarf.zig"); | 86 | pub const dwarf = @import("dwarf.zig"); |
| | 87 | |
| | 88 | /// ELF format. |
| 83 | pub const elf = @import("elf.zig"); | 89 | pub const elf = @import("elf.zig"); |
| 84 | | 90 | |
| 85 | /// Enum-related metaprogramming helpers. | 91 | /// Enum-related metaprogramming helpers. |
| ... | @@ -88,15 +94,16 @@ pub const enums = @import("enums.zig"); | ... | @@ -88,15 +94,16 @@ pub const enums = @import("enums.zig"); |
| 88 | /// Evented I/O data structures. | 94 | /// Evented I/O data structures. |
| 89 | pub const event = @import("event.zig"); | 95 | pub const event = @import("event.zig"); |
| 90 | | 96 | |
| | 97 | /// First in, first out data structures. |
| 91 | pub const fifo = @import("fifo.zig"); | 98 | pub const fifo = @import("fifo.zig"); |
| 92 | | 99 | |
| 93 | /// String formatting and parsing (eg parsing numbers out of strings). | 100 | /// String formatting and parsing (e.g. parsing numbers out of strings). |
| 94 | pub const fmt = @import("fmt.zig"); | 101 | pub const fmt = @import("fmt.zig"); |
| 95 | | 102 | |
| 96 | /// File-system related types. | 103 | /// File system-related functionality. |
| 97 | pub const fs = @import("fs.zig"); | 104 | pub const fs = @import("fs.zig"); |
| 98 | | 105 | |
| 99 | /// Fast hashing functions (i.e. not cryptographically secure) | 106 | /// Fast hashing functions (i.e. not cryptographically secure). |
| 100 | pub const hash = @import("hash.zig"); | 107 | pub const hash = @import("hash.zig"); |
| 101 | pub const hash_map = @import("hash_map.zig"); | 108 | pub const hash_map = @import("hash_map.zig"); |
| 102 | | 109 | |
| ... | @@ -106,21 +113,25 @@ pub const heap = @import("heap.zig"); | ... | @@ -106,21 +113,25 @@ pub const heap = @import("heap.zig"); |
| 106 | /// HTTP client and server. | 113 | /// HTTP client and server. |
| 107 | pub const http = @import("http.zig"); | 114 | pub const http = @import("http.zig"); |
| 108 | | 115 | |
| 109 | /// I/O Streams, Reader/Writer interfaces and common helpers. | 116 | /// I/O streams, reader/writer interfaces and common helpers. |
| 110 | pub const io = @import("io.zig"); | 117 | pub const io = @import("io.zig"); |
| 111 | | 118 | |
| 112 | /// JSON parsing and serialization. | 119 | /// JSON parsing and serialization. |
| 113 | pub const json = @import("json.zig"); | 120 | pub const json = @import("json.zig"); |
| | 121 | |
| | 122 | /// LEB128 encoding. |
| 114 | pub const leb = @import("leb128.zig"); | 123 | pub const leb = @import("leb128.zig"); |
| 115 | | 124 | |
| 116 | /// A standardized interface for logging. | 125 | /// A standardized interface for logging. |
| 117 | pub const log = @import("log.zig"); | 126 | pub const log = @import("log.zig"); |
| | 127 | |
| | 128 | /// Mach-O format. |
| 118 | pub const macho = @import("macho.zig"); | 129 | pub const macho = @import("macho.zig"); |
| 119 | | 130 | |
| 120 | /// Mathematical constants and operations. | 131 | /// Mathematical constants and operations. |
| 121 | pub const math = @import("math.zig"); | 132 | pub const math = @import("math.zig"); |
| 122 | | 133 | |
| 123 | /// Functions for comparing, searching and manipulating memory. | 134 | /// Functions for comparing, searching, and manipulating memory. |
| 124 | pub const mem = @import("mem.zig"); | 135 | pub const mem = @import("mem.zig"); |
| 125 | | 136 | |
| 126 | /// Metaprogramming helpers. | 137 | /// Metaprogramming helpers. |
| ... | @@ -137,13 +148,14 @@ pub const once = @import("once.zig").once; | ... | @@ -137,13 +148,14 @@ pub const once = @import("once.zig").once; |
| 137 | /// A set of array and slice types that bit-pack integer elements. | 148 | /// A set of array and slice types that bit-pack integer elements. |
| 138 | pub const packed_int_array = @import("packed_int_array.zig"); | 149 | pub const packed_int_array = @import("packed_int_array.zig"); |
| 139 | | 150 | |
| | 151 | /// PDB file format. |
| 140 | pub const pdb = @import("pdb.zig"); | 152 | pub const pdb = @import("pdb.zig"); |
| 141 | | 153 | |
| 142 | /// Accessors for process-related info (e.g. command line arguments) | 154 | /// Accessors for process-related info (e.g. command line arguments) |
| 143 | /// aand spawning of child processes. | 155 | /// and spawning of child processes. |
| 144 | pub const process = @import("process.zig"); | 156 | pub const process = @import("process.zig"); |
| 145 | | 157 | |
| 146 | /// Fast pseudo-random number generators (i.e. non-cryptographically secure). | 158 | /// Fast pseudo-random number generators (i.e. not cryptographically secure). |
| 147 | pub const rand = @import("rand.zig"); | 159 | pub const rand = @import("rand.zig"); |
| 148 | | 160 | |
| 149 | /// Sorting. | 161 | /// Sorting. |
| ... | @@ -152,32 +164,33 @@ pub const sort = @import("sort.zig"); | ... | @@ -152,32 +164,33 @@ pub const sort = @import("sort.zig"); |
| 152 | /// Single Instruction Multiple Data (SIMD) helpers. | 164 | /// Single Instruction Multiple Data (SIMD) helpers. |
| 153 | pub const simd = @import("simd.zig"); | 165 | pub const simd = @import("simd.zig"); |
| 154 | | 166 | |
| 155 | /// ASCII text manipulation. | 167 | /// ASCII text processing. |
| 156 | pub const ascii = @import("ascii.zig"); | 168 | pub const ascii = @import("ascii.zig"); |
| 157 | | 169 | |
| 158 | /// Tar archive format compression / decompression. | 170 | /// Tar archive format compression/decompression. |
| 159 | pub const tar = @import("tar.zig"); | 171 | pub const tar = @import("tar.zig"); |
| 160 | | 172 | |
| 161 | /// Testing allocator, testing assertions, and other helpers for testing code. | 173 | /// Testing allocator, testing assertions, and other helpers for testing code. |
| 162 | pub const testing = @import("testing.zig"); | 174 | pub const testing = @import("testing.zig"); |
| 163 | | 175 | |
| 164 | /// Sleep, obtaining the current time and constants for conversions. | 176 | /// Sleep, obtaining the current time, conversion constants, and more. |
| 165 | pub const time = @import("time.zig"); | 177 | pub const time = @import("time.zig"); |
| 166 | | 178 | |
| 167 | /// Timezones. | 179 | /// Time zones. |
| 168 | pub const tz = @import("tz.zig"); | 180 | pub const tz = @import("tz.zig"); |
| 169 | | 181 | |
| 170 | /// UTF8 and UTF16LE ecoding / decoding. | 182 | /// UTF-8 and UTF-16LE encoding/decoding. |
| 171 | pub const unicode = @import("unicode.zig"); | 183 | pub const unicode = @import("unicode.zig"); |
| 172 | | 184 | |
| 173 | /// Helpers for integrating with Valgrind. | 185 | /// Helpers for integrating with Valgrind. |
| 174 | pub const valgrind = @import("valgrind.zig"); | 186 | pub const valgrind = @import("valgrind.zig"); |
| 175 | | 187 | |
| 176 | /// Constants and types representing the WASM binary format. | 188 | /// Constants and types representing the Wasm binary format. |
| 177 | pub const wasm = @import("wasm.zig"); | 189 | pub const wasm = @import("wasm.zig"); |
| 178 | | 190 | |
| 179 | /// Tokenizing and parsing of Zig code and other Zig-specific language tooling. | 191 | /// Tokenizing and parsing of Zig code and other Zig-specific language tooling. |
| 180 | pub const zig = @import("zig.zig"); | 192 | pub const zig = @import("zig.zig"); |
| | 193 | |
| 181 | pub const start = @import("start.zig"); | 194 | pub const start = @import("start.zig"); |
| 182 | | 195 | |
| 183 | /// deprecated: use `Build`. | 196 | /// deprecated: use `Build`. |
| ... | @@ -193,7 +206,7 @@ pub const options = struct { | ... | @@ -193,7 +206,7 @@ pub const options = struct { |
| 193 | else | 206 | else |
| 194 | debug.default_enable_segfault_handler; | 207 | debug.default_enable_segfault_handler; |
| 195 | | 208 | |
| 196 | /// Function used to implement std.fs.cwd for wasi. | 209 | /// Function used to implement `std.fs.cwd` for WASI. |
| 197 | pub const wasiCwd: fn () fs.Dir = if (@hasDecl(options_override, "wasiCwd")) | 210 | pub const wasiCwd: fn () fs.Dir = if (@hasDecl(options_override, "wasiCwd")) |
| 198 | options_override.wasiCwd | 211 | options_override.wasiCwd |
| 199 | else | 212 | else |