Skip to content

Commit 7a1d409

Browse files
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_01FT59TTz4yRy3DPwbREE82u
1 parent 91bc465 commit 7a1d409

5 files changed

Lines changed: 492 additions & 26 deletions

File tree

Cargo.lock

Lines changed: 41 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ text_trees = "0.1.2"
172172
thiserror = "2.0.12"
173173
tokio = "1.43.0"
174174
tokio-util = "0.7.13"
175-
toml = "0.9.8"
176-
toml-span = "0.6.0"
177-
toml_edit = "0.23.0"
175+
toml = "0.9.10"
176+
toml-span = "0.7.0"
177+
toml_edit = "0.25.0"
178178
tracing = "0.1.41"
179179
xz2 = "0.1.7"
180180
# Forcing the version due to this PR https://github.com/tokio-rs/tracing/pull/3368

0 commit comments

Comments
 (0)