Commit 7a1d409
committed
feat: support TOML 1.1 multiline inline tables
Bump toml_edit to 0.25 / toml to 0.9.10 which support TOML 1.1 multiline
inline tables. Add insert_into_inline_table_with_format to preserve
multiline formatting, indentation style, and trailing comma conventions
when inserting new entries.
Includes comprehensive tests: direct unit tests for the formatting
function (trailing commas, sequential insertions, empty tables, tab
indentation, single-line fallback, existing key updates, non-dependency
tables), integration tests through TomlDocument, and consolidated
parse-only tests for upstream TOML 1.1 support. All tests use inline
insta snapshots.
https://claude.ai/code/session_01FT59TTz4yRy3DPwbREE82u1 parent 91bc465 commit 7a1d409
5 files changed
Lines changed: 492 additions & 26 deletions
File tree
- crates/pixi_manifest/src/toml
- docs/reference
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
177 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
0 commit comments