Skip to content

Commit b43d9bf

Browse files
committed
docs(design): Discuss json-write
1 parent a382b95 commit b43d9bf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

DESIGN.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,14 @@ The syntax and semantics match rustc:
168168
- rustc has unstable support for `@shell:<path>`
169169
- Lines are read literal, empty lines are empty arguments and no comments
170170
- Non-recursive
171+
172+
## `json-write`
173+
174+
### Decision: custom json writer
175+
176+
The goal is to minimize build times. Switching from `serde_json` dropped out build times by an order of magnitude.
177+
178+
Other libraries exist in this space but generally take on too much, e.g.
179+
- https://crates.io/crates/write-json: json-safe API
180+
- https://crates.io/crates/json-writer: also supports a more json-safe API
181+
- https://crates.io/crates/escape8259: only strings, also parses

0 commit comments

Comments
 (0)