toml breaking changes
Updated December 4, 2026
On this page
Latest version 1.2.3+spec-1.1.0, released November 25, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
toml 0.9.7 breaking changes
- 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
toml 0.9.6 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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
toml 0.9.0 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 - Signature changed
toml::de::Deserializer
Was struct Deserializer<'a>; now struct Deserializer<'i>. crates.io - Signature changed
toml::de::Deserializer::new
Was fn new(input: &'a str) -> Self; now fn new(raw: &'i str) -> Result<Self, Error>. crates.io - 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 - 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 - Signature changed
toml::de::ValueDeserializer
Was struct ValueDeserializer<'a>; now struct ValueDeserializer<'i>. crates.io - Signature changed
toml::de::ValueDeserializer::new
Was fn new(input: &'a str) -> Self; now fn new(raw: &'i str) -> Result<Self, Error>. crates.io - Signature changed
toml::Deserializer
Was struct Deserializer<'a>; now struct Deserializer<'i>. crates.io - Signature changed
toml::Deserializer::new
Was fn new(input: &'a str) -> Self; now fn new(raw: &'i str) -> Result<Self, Error>. crates.io - 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
And 49 more in this version. Sign up to see every change
toml 0.8.21 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 - 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
toml 0.8.13 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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
toml 0.8.12 breaking changes
- 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
Older versions
2 older versions, each with its first changes. Sign up to see every change
Show 2 older versions
toml 0.7.0 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 - Removed
toml::de::Error::line_col
toml::de::Error::line_col was removed in toml 0.7.0 crates.io
toml 0.6.0 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 - Removed
toml::de::from_slice
toml::de::from_slice was removed in toml 0.6.0 crates.io
And 46 more in this version.
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.