---
title: "toml 0.9.7 Breaking Changes on crates.io | Since.dev"
description: "What each toml release removed, renamed or changed: 129 breaking changes in 8 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/toml
last_updated: 2026-12-04
---

# toml breaking changes

toml 0.9.7 (September 18, 2025) is its newest release with breaking changes. The first: Raises the minimum supported Rust version to 1.76 in toml 0.9.7. Every breaking API change we have recorded in toml on crates.io: 129 breaking changes in 8 versions. Below, its 8 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `1.2.3+spec-1.1.0`, released November 25, 2026. [Source repository](https://github.com/toml-rs/toml)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [0.6.0](#v-0-6-0) to [0.9.7](#v-0-9-7): 81 breaking changes in 7 versions.

## toml 0.9.7 breaking changes

toml 0.9.7, released September 18, 2025: 1 breaking change.

- **Removed**  

The minimum supported Rust version is now 1.76. Users on older Rust toolchains must upgrade to Rust 1.76 or later. [github.com](https://github.com/toml-rs/toml/blob/toml-v0.9.7/crates/toml/CHANGELOG.md)

## toml 0.9.6 breaking changes

toml 0.9.6, released September 15, 2025: 8 breaking changes.

- **Signature changed** `toml::de::from_slice`  

Was fn from_slice<'de, T>(s: &'de \[u8\]) -> Result\<T, Error> where T: serde::de::Deserialize<'de>,; now fn from_slice<'de, T>(s: &'de \[u8\]) -> Result\<T, Error> where T: serde_core::de::Deserialize<'de>,. [crates.io](https://crates.io/crates/toml/0.9.6)
- **Signature changed** `toml::de::from_str`  

Was fn from_str<'de, T>(s: &'de str) -> Result\<T, Error> where T: serde::de::Deserialize<'de>,; now fn from_str<'de, T>(s: &'de str) -> Result\<T, Error> where T: serde_core::de::Deserialize<'de>,. [crates.io](https://crates.io/crates/toml/0.9.6)
- **Signature changed** `toml::from_slice`  

Was fn from_slice<'de, T>(s: &'de \[u8\]) -> Result\<T, Error> where T: serde::de::Deserialize<'de>,; now fn from_slice<'de, T>(s: &'de \[u8\]) -> Result\<T, Error> where T: serde_core::de::Deserialize<'de>,. [crates.io](https://crates.io/crates/toml/0.9.6)
- **Signature changed** `toml::from_str`  

Was fn from_str<'de, T>(s: &'de str) -> Result\<T, Error> where T: serde::de::Deserialize<'de>,; now fn from_str<'de, T>(s: &'de str) -> Result\<T, Error> where T: serde_core::de::Deserialize<'de>,. [crates.io](https://crates.io/crates/toml/0.9.6)
- **Signature changed** `toml::ser::to_string`  

Was fn to_string\<T>(value: &T) -> Result\<String, Error> where T: serde::ser::Serialize + ?Sized,; now fn to_string\<T>(value: &T) -> Result\<String, Error> where T: serde_core::ser::Serialize + ?Sized,. [crates.io](https://crates.io/crates/toml/0.9.6)
- **Signature changed** `toml::ser::to_string_pretty`  

Was fn to_string_pretty\<T>(value: &T) -> Result\<String, Error> where T: serde::ser::Serialize + ?Sized,; now fn to_string_pretty\<T>(value: &T) -> Result\<String, Error> where T: serde_core::ser::Serialize + ?Sized,. [crates.io](https://crates.io/crates/toml/0.9.6)
- **Signature changed** `toml::to_string`  

Was fn to_string\<T>(value: &T) -> Result\<String, Error> where T: serde::ser::Serialize + ?Sized,; now fn to_string\<T>(value: &T) -> Result\<String, Error> where T: serde_core::ser::Serialize + ?Sized,. [crates.io](https://crates.io/crates/toml/0.9.6)
- **Signature changed** `toml::to_string_pretty`  

Was fn to_string_pretty\<T>(value: &T) -> Result\<String, Error> where T: serde::ser::Serialize + ?Sized,; now fn to_string_pretty\<T>(value: &T) -> Result\<String, Error> where T: serde_core::ser::Serialize + ?Sized,. [crates.io](https://crates.io/crates/toml/0.9.6)

## toml 0.9.0 breaking changes

toml 0.9.0, released July 8, 2025: 59 breaking changes.

- **Renamed** `toml_edit.ser`  

Some types in toml_edit::ser were relocated, so code importing them from their old paths must update its imports. [github.com](https://github.com/toml-rs/toml/blob/v0.9.0/CHANGELOG.md)
- **Signature changed** `toml::de::Deserializer`  

Was struct Deserializer<'a>; now struct Deserializer<'i>. [crates.io](https://crates.io/crates/toml/0.9.0)
- **Signature changed** `toml::de::Deserializer::new`  

Was fn new(input: &'a str) -> Self; now fn new(raw: &'i str) -> Result\<Self, Error>. [crates.io](https://crates.io/crates/toml/0.9.0)
- **Signature changed** `toml::de::Error::span`  

Was fn span(&self) -> Option\<std::ops::Range\<usize>>; now fn span(&self) -> Option\<core::ops::Range\<usize>>. [crates.io](https://crates.io/crates/toml/0.9.0)
- **Signature changed** `toml::de::from_str`  

Was fn from_str\<T>(s: &'\_ str) -> Result\<T, Error> where T: serde::de::DeserializeOwned,; now fn from_str<'de, T>(s: &'de str) -> Result\<T, Error> where T: serde::de::Deserialize<'de>,. [crates.io](https://crates.io/crates/toml/0.9.0)
- **Signature changed** `toml::de::ValueDeserializer`  

Was struct ValueDeserializer<'a>; now struct ValueDeserializer<'i>. [crates.io](https://crates.io/crates/toml/0.9.0)
- **Signature changed** `toml::de::ValueDeserializer::new`  

Was fn new(input: &'a str) -> Self; now fn new(raw: &'i str) -> Result\<Self, Error>. [crates.io](https://crates.io/crates/toml/0.9.0)
- **Signature changed** `toml::Deserializer`  

Was struct Deserializer<'a>; now struct Deserializer<'i>. [crates.io](https://crates.io/crates/toml/0.9.0)
- **Signature changed** `toml::Deserializer::new`  

Was fn new(input: &'a str) -> Self; now fn new(raw: &'i str) -> Result\<Self, Error>. [crates.io](https://crates.io/crates/toml/0.9.0)
- **Signature changed** `toml::from_str`  

Was fn from_str\<T>(s: &'\_ str) -> Result\<T, Error> where T: serde::de::DeserializeOwned,; now fn from_str<'de, T>(s: &'de str) -> Result\<T, Error> where T: serde::de::Deserialize<'de>,. [crates.io](https://crates.io/crates/toml/0.9.0)

And 49 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## toml 0.8.21 breaking changes

toml 0.8.21, released April 25, 2025: 2 breaking changes.

- **Behavior changed**  

Strings are now written in different formats: pretty strings are allowed with a trailing single quote, double quotes are escaped only in ml-basic-strings with 3 or more, and newlines no longer force ml-literal. Code comparing serialized... [github.com](https://github.com/toml-rs/toml/blob/toml-v0.8.21/crates/toml/CHANGELOG.md)
- **Behavior changed** `Table`  

Serialized output of a Table may now list sub-tables in a different order than before. Code that depends on the exact output text may need updating. [github.com](https://github.com/toml-rs/toml/blob/toml-v0.8.21/crates/toml/CHANGELOG.md)

## toml 0.8.13 breaking changes

toml 0.8.13, released May 15, 2024: 8 breaking changes.

- **Signature changed** `toml::map::Map::contains_key`  

Was fn contains_key\<Q: ?Sized>(&self, key: &Q) -> bool where String: Borrow\<Q>, Q: Ord + Eq + Hash,; now fn contains_key\<Q>(&self, key: &Q) -> bool where String: Borrow\<Q>, Q: Ord + Eq + Hash + ?Sized,. [crates.io](https://crates.io/crates/toml/0.8.13)
- **Signature changed** `toml::map::Map::get`  

Was fn get\<Q: ?Sized>(&self, key: &Q) -> Option<&Value> where String: Borrow\<Q>, Q: Ord + Eq + Hash,; now fn get\<Q>(&self, key: &Q) -> Option<&Value> where String: Borrow\<Q>, Q: Ord + Eq + Hash + ?Sized,. [crates.io](https://crates.io/crates/toml/0.8.13)
- **Signature changed** `toml::map::Map::get_mut`  

Was fn get_mut\<Q: ?Sized>(&mut self, key: &Q) -> Option<&mut Value> where String: Borrow\<Q>, Q: Ord + Eq + Hash,; now fn get_mut\<Q>(&mut self, key: &Q) -> Option<&mut Value> where String: Borrow\<Q>, Q: Ord + Eq + Hash + ?Sized,. [crates.io](https://crates.io/crates/toml/0.8.13)
- **Signature changed** `toml::map::Map::remove`  

Was fn remove\<Q: ?Sized>(&mut self, key: &Q) -> Option\<Value> where String: Borrow\<Q>, Q: Ord + Eq + Hash,; now fn remove\<Q>(&mut self, key: &Q) -> Option\<Value> where String: Borrow\<Q>, Q: Ord + Eq + Hash + ?Sized,. [crates.io](https://crates.io/crates/toml/0.8.13)
- **Signature changed** `toml::ser::to_string`  

Was fn to_string\<T: ?Sized>(value: &T) -> Result\<String, Error> where T: serde::ser::Serialize,; now fn to_string\<T>(value: &T) -> Result\<String, Error> where T: serde::ser::Serialize + ?Sized,. [crates.io](https://crates.io/crates/toml/0.8.13)
- **Signature changed** `toml::ser::to_string_pretty`  

Was fn to_string_pretty\<T: ?Sized>(value: &T) -> Result\<String, Error> where T: serde::ser::Serialize,; now fn to_string_pretty\<T>(value: &T) -> Result\<String, Error> where T: serde::ser::Serialize + ?Sized,. [crates.io](https://crates.io/crates/toml/0.8.13)
- **Signature changed** `toml::to_string`  

Was fn to_string\<T: ?Sized>(value: &T) -> Result\<String, Error> where T: serde::ser::Serialize,; now fn to_string\<T>(value: &T) -> Result\<String, Error> where T: serde::ser::Serialize + ?Sized,. [crates.io](https://crates.io/crates/toml/0.8.13)
- **Signature changed** `toml::to_string_pretty`  

Was fn to_string_pretty\<T: ?Sized>(value: &T) -> Result\<String, Error> where T: serde::ser::Serialize,; now fn to_string_pretty\<T>(value: &T) -> Result\<String, Error> where T: serde::ser::Serialize + ?Sized,. [crates.io](https://crates.io/crates/toml/0.8.13)

## toml 0.8.12 breaking changes

toml 0.8.12, released March 18, 2024: 1 breaking change.

- **Behavior changed**  

The nesting recursion limit was reduced from 128 to 100 so builds with opt-level = 0 work. Input nested deeper than 100 levels that parsed before may now fail. [github.com](https://github.com/toml-rs/toml/blob/toml-v0.8.12/crates/toml/CHANGELOG.md)

## Older versions

2 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### toml 0.7.0 breaking changes

toml 0.7.0, released January 27, 2023: 2 breaking changes.

- **Removed** `Document.root`  

The Document root field is no longer publicly accessible; code reading it directly must use the public Table access (Document now derefs to Table). [github.com](https://github.com/toml-rs/toml/blob/v0.7.0/CHANGELOG.md)
- **Removed** `toml::de::Error::line_col`  

toml::de::Error::line_col was removed in toml 0.7.0 [crates.io](https://crates.io/crates/toml/0.7.0)

### toml 0.6.0 breaking changes

toml 0.6.0, released January 23, 2023: 48 breaking changes.

- **Removed** `toml_edit.TableLike`  

The toml_edit::TableLike trait is now sealed, so code outside the crate can no longer implement it. [github.com](https://github.com/toml-rs/toml/blob/v0.6.0/CHANGELOG.md)
- **Removed** `toml::de::from_slice`  

toml::de::from_slice was removed in toml 0.6.0 [crates.io](https://crates.io/crates/toml/0.6.0)

And 46 more in this version.

## Related packages

- [toml_edit](https://since.dev/packages/crates/toml%5Fedit.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
