Skip to content

Commit f9c800b

Browse files
committed
feat: support TOML 1.1 multiline inline tables
Bump toml_edit to 0.25 (toml and toml-span already support TOML 1.1 on main). 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 488c883 commit f9c800b

5 files changed

Lines changed: 463 additions & 30 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ tokio-test = "0.4.5"
175175
tokio-util = "0.7.13"
176176
toml = "1.0.0"
177177
toml-span = "0.7.0"
178-
toml_edit = "0.23.0"
178+
toml_edit = "0.25.0"
179179
tracing = "0.1.41"
180180
xz2 = "0.1.7"
181181
# Forcing the version due to this PR https://github.com/tokio-rs/tracing/pull/3368

0 commit comments

Comments
 (0)