aboutsummaryrefslogtreecommitdiff
path: root/lib/std/json/write_stream.zig
AgeCommit message (Collapse)Author
2021-01-07Reduce use of deprecated IO typesJay Petacat
Related: #4917
2020-12-31Year++Frank Denis
2020-11-19Add builtin.Signedness, use it instead of is_signedTadeo Kondrak
2020-08-20add license header to all std lib filesAndrew Kelley
add SPDX license identifier copyright ownership is zig contributors
2020-07-11run zig fmt on std lib and self hostedVexu
2020-05-24run zig fmt on std libAndrew Kelley
2020-05-12std.json properly handle comptime int/floatVexu
2020-04-23fix json.WriteStream.emitJsonxackus
2020-04-01std: introduce json.WriteStream.stringifydaurnimator
2020-04-01std: use json.StringifyOptions.Whitespace from json.WriteStreamdaurnimator
2020-04-01std: use json.stringify logic in some json.WriteStream code pathsdaurnimator
2020-03-30std lib API deprecations for the upcoming 0.6.0 releaseAndrew Kelley
See #3811
2020-03-10update standard library to new I/O streams APIAndrew Kelley
2020-03-10(breaking) rework stream abstractionsAndrew Kelley
The main goal here is to make the function pointers comptime, so that we don't have to do the crazy stuff with async function frames. Since InStream, OutStream, and SeekableStream are already generic across error sets, it's not really worse to make them generic across the vtable as well. See #764 for the open issue acknowledging that using generics for these abstractions is a design flaw. See #130 for the efforts to make these abstractions non-generic. This commit also changes the OutStream API so that `write` returns number of bytes written, and `writeAll` is the one that loops until the whole buffer is written.
2020-02-14std: use testing.allocator in testsdaurnimator
2019-12-10Replace @typeOf with @TypeOf in all zig sourceRobin Voetter
This change was mostly made with `zig fmt` and this also modified some whitespace. Note that in some files, `zig fmt` produced incorrect code, so the change was made manually.
2019-12-08std.fmt.format: tuple parameter instead of var argsAndrew Kelley
2019-11-06std.json.Value: added dumpStream(), utilize WriteStream for dump()Sebastian Keller
2019-10-27Added test for 'emitJson'Sebastian Keller
2019-10-27Unified public apiSebastian Keller
2019-10-24Shortened switch statementSebastian Keller
2019-10-24Added 'writeJson' to write_stream.zig:Sebastian Keller
Small addition to make writing a json value easier
2019-10-11merge dumps tool: merging ast nodesAndrew Kelley
-fgenerate-docs is replaced ith -femit-docs -fno-emit-bin is added to prevent outputting binary
2019-10-10miscellaneous improvements to generated docsAndrew Kelley
* introduce std.json.WriteStream API for writing json data to a stream * add WIP tools/merge_anal_dumps.zig for merging multiple semantic analysis dumps into one. See #3028 * add std.json.Array, improves generated docs * add test for `std.process.argsAlloc`, improves test coverage and generated docs