---
title: "serde_yaml 0.9.0 Breaking Changes on crates.io | Since.dev"
description: "What each serde_yaml release removed, renamed or changed: 23 breaking changes in 1 version on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/serde_yaml
last_updated: 2026-12-04
---

# 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

Latest version `0.9.34+deprecated`, released March 25, 2024. [Source repository](https://github.com/dtolnay/serde-yaml)

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

## serde_yaml 0.9.0 breaking changes

serde_yaml 0.9.0, released July 28, 2022: 23 breaking changes.

- **Removed** `serde_yaml::seed`  

Use seed.deserialize with serde_yaml::Deserializer::from_str instead. [crates.io](https://crates.io/crates/serde%5Fyaml/0.9.0)
- **Removed** `serde_yaml::to_vec`  

Use to_writer for I/O, or to_string followed by into_bytes. [crates.io](https://crates.io/crates/serde%5Fyaml/0.9.0)
- **Behavior changed**  

Enum variants now serialize as YAML tags instead of JSON-style singleton maps, so stored or consumed YAML output changes. [github.com](https://github.com/dtolnay/serde-yaml/releases/tag/0.9.0)
- **Behavior changed**  

Inputs such as '0x+1' and '++0x1' are now parsed as strings rather than numbers. [github.com](https://github.com/dtolnay/serde-yaml/releases/tag/0.9.0)
- **Behavior changed**  

Serialized output no longer starts with '---'. Prepend it yourself if your use case needs it. [github.com](https://github.com/dtolnay/serde-yaml/releases/tag/0.9.0)
- **Behavior changed**  

The new libyaml-based backend has different edge cases and quirks than yaml-rust, so parsing results may change. [github.com](https://github.com/dtolnay/serde-yaml/releases/tag/0.9.0)
- **Behavior changed** `serde_yaml.Deserializer`  

Nested iteration over a deserializer obtained from iteration now yields zero sub-documents. [github.com](https://github.com/dtolnay/serde-yaml/releases/tag/0.9.0)
- **Signature changed** `serde_yaml::Deserializer`  

Was struct Deserializer<'a>; now struct Deserializer<'de>. [crates.io](https://crates.io/crates/serde%5Fyaml/0.9.0)
- **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](https://crates.io/crates/serde%5Fyaml/0.9.0)
- **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](https://crates.io/crates/serde%5Fyaml/0.9.0)
- **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](https://crates.io/crates/serde%5Fyaml/0.9.0)
- **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](https://crates.io/crates/serde%5Fyaml/0.9.0)
- **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](https://crates.io/crates/serde%5Fyaml/0.9.0)
- **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](https://crates.io/crates/serde%5Fyaml/0.9.0)
- **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](https://crates.io/crates/serde%5Fyaml/0.9.0)
- **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](https://crates.io/crates/serde%5Fyaml/0.9.0)
- **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](https://crates.io/crates/serde%5Fyaml/0.9.0)
- **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](https://crates.io/crates/serde%5Fyaml/0.9.0)
- **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](https://crates.io/crates/serde%5Fyaml/0.9.0)
- **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](https://crates.io/crates/serde%5Fyaml/0.9.0)
- **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](https://crates.io/crates/serde%5Fyaml/0.9.0)
- **Signature changed** `serde_yaml::Serializer::flush`  

Was fn flush(&mut self) -> io::Result<()>; now fn flush(&mut self) -> Result<()>. [crates.io](https://crates.io/crates/serde%5Fyaml/0.9.0)
- **Signature changed** `serde_yaml::Serializer::into_inner`  

Was fn into_inner(self) -> W; now fn into_inner(mut self) -> Result\<W>. [crates.io](https://crates.io/crates/serde%5Fyaml/0.9.0)

## 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.
