serde_yaml breaking changes
serde_yaml 0.9.0 (July 28, 2022) is its newest release with breaking changes, 23 of them. The first: Removed serde_yaml::seed. Every breaking API change we have recorded in serde_yaml on crates.io: 23 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.9.34+deprecated, released March 25, 2024. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
serde_yaml 0.9.0 breaking changes
- Removed
serde_yaml::seed
Use seed.deserialize with serde_yaml::Deserializer::from_str instead. crates.io - Removed
serde_yaml::to_vec
Use to_writer for I/O, or to_string followed by into_bytes. crates.io - Behavior changed
Enum variants now serialize as YAML tags instead of JSON-style singleton maps, so stored or consumed YAML output changes. github.com - Behavior changed
Inputs such as '0x+1' and '++0x1' are now parsed as strings rather than numbers. github.com - Behavior changed
Serialized output no longer starts with '---'. Prepend it yourself if your use case needs it. github.com - Behavior changed
The new libyaml-based backend has different edge cases and quirks than yaml-rust, so parsing results may change. github.com - Behavior changed
serde_yaml.Deserializer
Nested iteration over a deserializer obtained from iteration now yields zero sub-documents. github.com - Signature changed
serde_yaml::Deserializer
Was struct Deserializer<'a>; now struct Deserializer<'de>. crates.io - Signature changed
serde_yaml::Deserializer::from_reader
Was fn from_reader<R>(rdr: R) -> Self where R: io::Read + 'a,; now fn from_reader<R>(rdr: R) -> Self where R: io::Read + 'de,. crates.io - Signature changed
serde_yaml::Deserializer::from_slice
Was fn from_slice(v: &'a [u8]) -> Self; now fn from_slice(v: &'de [u8]) -> Self. crates.io - Signature changed
serde_yaml::Deserializer::from_str
Was fn from_str(s: &'a str) -> Self; now fn from_str(s: &'de str) -> Self. crates.io - Signature changed
serde_yaml::from_slice
Was fn from_slice<T>(v: &[u8]) -> Result<T> where T: DeserializeOwned,; now fn from_slice<'de, T>(v: &'de [u8]) -> Result<T> where T: Deserialize<'de>,. crates.io - Signature changed
serde_yaml::from_str
Was fn from_str<T>(s: &str) -> Result<T> where T: DeserializeOwned,; now fn from_str<'de, T>(s: &'de str) -> Result<T> where T: Deserialize<'de>,. crates.io - Signature changed
serde_yaml::Mapping::contains_key
Was fn contains_key(&self, k: &Value) -> bool; now fn contains_key<I: Index>(&self, index: I) -> bool. crates.io - Signature changed
serde_yaml::Mapping::get
Was fn get(&self, k: &Value) -> Option<&Value>; now fn get<I: Index>(&self, index: I) -> Option<&Value>. crates.io - Signature changed
serde_yaml::Mapping::get_mut
Was fn get_mut(&mut self, k: &Value) -> Option<&mut Value>; now fn get_mut<I: Index>(&mut self, index: I) -> Option<&mut Value>. crates.io - Signature changed
serde_yaml::mapping::Mapping::contains_key
Was fn contains_key(&self, k: &Value) -> bool; now fn contains_key<I: Index>(&self, index: I) -> bool. crates.io - Signature changed
serde_yaml::mapping::Mapping::get
Was fn get(&self, k: &Value) -> Option<&Value>; now fn get<I: Index>(&self, index: I) -> Option<&Value>. crates.io - Signature changed
serde_yaml::mapping::Mapping::get_mut
Was fn get_mut(&mut self, k: &Value) -> Option<&mut Value>; now fn get_mut<I: Index>(&mut self, index: I) -> Option<&mut Value>. crates.io - Signature changed
serde_yaml::mapping::Mapping::remove
Was fn remove(&mut self, k: &Value) -> Option<Value>; now fn remove<I: Index>(&mut self, index: I) -> Option<Value>. crates.io - Signature changed
serde_yaml::Mapping::remove
Was fn remove(&mut self, k: &Value) -> Option<Value>; now fn remove<I: Index>(&mut self, index: I) -> Option<Value>. crates.io - Signature changed
serde_yaml::Serializer::flush
Was fn flush(&mut self) -> io::Result<()>; now fn flush(&mut self) -> Result<()>. crates.io - Signature changed
serde_yaml::Serializer::into_inner
Was fn into_inner(self) -> W; now fn into_inner(mut self) -> Result<W>. crates.io
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.