toml_edit breaking changes
Updated December 4, 2026
On this page
Latest version 0.25.21+spec-1.1.0, released November 25, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
- From 0.13.0 to 0.25.0+spec-1.1.0: 97 breaking changes in 7 versions.
toml_edit 0.25.0+spec-1.1.0 breaking changes
- Behavior changed
Serde deserialization now accepts borrowed keys and values, which changes how existing serde bounds and generics behave; check code that depends on the previous ownership requirements. github.com - Behavior changed
Datetime values now track optional seconds and nanoseconds, so code that builds or matches datetime values may need to change. github.com - Behavior changed
Datetime values now track optional seconds and nanoseconds, so code that builds or matches datetime values may need to change. github.com - Behavior changed
Serde deserialization now accepts borrowed keys, which can change how existing serde bounds and generics behave. github.com - Behavior changed
Serde deserialization now accepts borrowed values, which can change how existing serde bounds and generics behave. github.com
toml_edit 0.24.0+spec-1.1.0 breaking changes
- Removed
toml_edit::InlineTable::set_preamble
toml_edit::InlineTable::set_preamble was removed in toml_edit 0.24.0+spec-1.1.0 crates.io - Renamed
toml_edit::InlineTable::preamble
Use toml_edit::InlineTable::trailing instead. crates.io - Signature changed
toml_edit::Table::set_position
The set_position method now accepts None as a value, so callers that pass a concrete position must update to the new parameter type. crates.io
toml_edit 0.23.0 breaking changes
- Removed
perf
The perf feature of toml_edit was removed. Code or Cargo.toml entries enabling it will no longer build. github.com - Removed
toml_edit::de::Deserializer::new
Use Deserializer::from instead. crates.io - Removed
toml_edit::ImDocument::as_item
toml_edit::ImDocument::as_item was removed in toml_edit 0.23.0 crates.io - Removed
toml_edit::ImDocument::as_table
toml_edit::ImDocument::as_table was removed in toml_edit 0.23.0 crates.io - Removed
toml_edit::ImDocument::into_item
toml_edit::ImDocument::into_item was removed in toml_edit 0.23.0 crates.io - Removed
toml_edit::ImDocument::into_mut
toml_edit::ImDocument::into_mut was removed in toml_edit 0.23.0 crates.io - Removed
toml_edit::ImDocument::into_table
toml_edit::ImDocument::into_table was removed in toml_edit 0.23.0 crates.io - Removed
toml_edit::ImDocument::iter
toml_edit::ImDocument::iter was removed in toml_edit 0.23.0 crates.io - Removed
toml_edit::ImDocument::new
toml_edit::ImDocument::new was removed in toml_edit 0.23.0 crates.io - Removed
toml_edit::ImDocument::parse
toml_edit::ImDocument::parse was removed in toml_edit 0.23.0 crates.io
And 28 more in this version. Sign up to see every change
toml_edit 0.22.0 breaking changes
- Signature changed
toml_edit::Key::with_decor
Was fn with_decor(mut self, decor: Decor) -> Self; now fn with_decor(self, decor: Decor) -> Self. crates.io
toml_edit 0.21.0 breaking changes
- Configuration changed
The commit is marked as a breaking change and makes the parser or display support optional, so projects relying on them may need to enable the matching feature. github.com
toml_edit 0.19.0 breaking changes
- Removed
easy
The easy API module was removed in this release. Code that uses it must be rewritten to use the remaining toml_edit API. github.com - Removed
pretty
The deprecated pretty functions were removed from the serializer. Code calling them must stop using them. github.com - Removed
tables_last
The deprecated tables_last function was removed from the serializer. Code calling it must stop using it. github.com - Removed
toml_edit::de::Error::line_col
The deprecated line_col function on Error was removed. Code calling it will no longer compile. crates.io - Removed
toml_edit::TomlError::line_col
toml_edit::TomlError::line_col was removed in toml_edit 0.19.0 crates.io
Older versions
2 older versions, each with its first changes. Sign up to see every change
Show 2 older versions
toml_edit 0.18.0 breaking changes
- Removed
from_slice
The from_slice function was removed. github.com - Removed
Repr
The Display implementation for Repr was removed. github.com
And 42 more in this version.
toml_edit 0.13.0 breaking changes
- Behavior changed
InlineTable.iter
The iter, get, and contains_key functions were made consistent across Table and InlineTable, ignoring Item::None. Code relying on seeing Item::None entries must be updated. github.com - Behavior changed
Table.iter
The iter, get, and contains_key functions were made consistent across Table and InlineTable, ignoring Item::None. Code relying on seeing Item::None entries must be updated. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.