aboutsummaryrefslogtreecommitdiff
path: root/lib/compiler/std-docs.zig
AgeCommit message (Collapse)Author
2025-10-30std.debug.lockStderrWriter: also return ttyconfMatthew Lugg
`std.Io.tty.Config.detect` may be an expensive check (e.g. involving syscalls), and doing it every time we need to print isn't really necessary; under normal usage, we can compute the value once and cache it for the whole program's execution. Since anyone outputting to stderr may reasonably want this information (in fact they are very likely to), it makes sense to cache it and return it from `lockStderrWriter`. Call sites who do not need it will experience no significant overhead, and can just ignore the TTY config with a `const w, _` destructure.
2025-10-09- Rework common translate-c and cImport logic into `Compilation.translateC`kcbanner
- Add std.zig.Server.allocErrorBundle, replace duplicates
2025-08-30rework std.Io.Writer.Allocating to support runtime-known alignmentAndrew Kelley
Also, breaking API changes to: * std.fs.Dir.readFileAlloc * std.fs.Dir.readFileAllocOptions
2025-08-29std.Io: delete GenericReaderAndrew Kelley
and delete deprecated alias std.io
2025-08-16std-docs: improve error message on write failureIsaac Freund
2025-08-08zig std: fix build failuresAndrew Kelley
2025-07-24zig std: fix sources.tar generationIan Johnson
Analogous to #24576 for `-femit-docs`
2025-07-24zig std: update std.Io.poll API usageAndrew Kelley
fixes FTBFS
2025-07-22zig std: update for new tar I/O APIAndrew Kelley
2025-07-07std.io: move getStdIn, getStdOut, getStdErr functions to fs.FileAndrew Kelley
preparing to rearrange std.io namespace into an interface how to upgrade: std.io.getStdIn() -> std.fs.File.stdin() std.io.getStdOut() -> std.fs.File.stdout() std.io.getStdErr() -> std.fs.File.stderr()
2025-06-30Fix `zig std` regression FTBFSMicah Switzer
Regressed in 9176408
2024-09-12Replace deprecated default initializations with decl literalsLinus Groh
2024-08-23fix autodocs regression FTBFSAndrew Kelley
regressed in dffc8c44f9a01aa05ea364ffdc71509d15bc2601 since there is no test coverage for the `zig std` command yet. closes #21180
2024-08-15std.tar: add writer (#19603)Igor Anić
Simplifies code in docs creation where we used `std.tar.output.Header`. Writer uses that Header internally and provides higher level interface. Updates checksum on write, handles long file names, allows setting mtime and file permission mode. Provides handy interface for passing `Dir.WalkerEntry`.
2024-08-07fuzzer: share zig to html rendering with autodocsAndrew Kelley
2024-05-26std: restructure child process namespaceAndrew Kelley
2024-05-22std autodocs server: don't trim all URLsAndrew Kelley
This is a partial revert of 6635360dbdbd6793b741648d51d25f12550e01db.
2024-05-21std-docs: use `open` for macOS.Jiacai Liu
2024-04-06zig std accepts --port and --no-open-browser (#19559)Josh Wolfe
2024-03-28std-docs: include builtin module in sources.tarIan Johnson
Now that `-femit-docs` includes all modules, including the builtin module, in the generated source tarball, it makes sense to apply the same logic to the std-docs server. std-docs constructs its own tarball, so a different approach is needed to achieve the same end result.
2024-03-10-femit-docs: creating sources.tarAndrew Kelley
It's always a good day when you get to use File.writeFileAll 😎
2024-03-10slightly better error name when wasm compilation failsAndrew Kelley
2024-03-10zig std: implement tar formatAndrew Kelley
2024-03-10zig std: implement sources.tar endpointAndrew Kelley
except for the tar format being correct
2024-03-10zig std: use threads for the http serverAndrew Kelley
2024-03-10zig std: implement serving the wasm binaryAndrew Kelley
2024-03-10add skeleton of `zig std` command implAndrew Kelley