Commit Graph

2 Commits (0f65b004364b0bb320c5da4f81d2edd5fba939f4)

Author SHA1 Message Date
Igor Strebz 238d2bc3fe
Implement streaming writers (#765)
* Make XMLBuilder generic

* Reduce allocations at XmlData display impl

* Implement streaming writers

- Extend BuildXML trait, add the streaming method
- Remove impls for Box<Ty>, as they can be implemented on the trait level
- Rewrite build() methods in chaining style, backed by apply_* helpers
- Remove quite a few allocations, though numbers still produce them
- Add spaces between children nodes, fix tests

* Add rustfmt.toml and format code

* Fix clippy warnings

* Expose the BuildXML trait without displaying its methods in hints
2024-11-05 11:22:32 +09:00
bokuweb c0aab13529
Support default section header (#115)
* feat: Add minimum header

* feat: Support minimum header feature

* fix: fix snaps
2020-08-13 17:27:45 +09:00