The serde_yaml::Value enum gains a Tagged variant which represents the deserialization of YAML's !Tag syntax. Tagged scalars, sequences, and mappings are all supported.
An empty YAML input (or document containing only comments) will deserialize successfully to an empty map, empty sequence, or Serde struct as long as the struct has only optional fields. Previously this would error.
A new .apply_merge() method on Value implements YAML's << merge key convention.
The Debug representation of serde_yaml::Value has gotten vastly better (dtolnay/serde-yaml#287).
let yaml = "borrowed: 'kölcsönzött'\n";
let value: Struct = serde_yaml::from_str(yaml)?;
println!("{:#?}", value);
Value's and Mapping's methods get and get_mut have been generalized to support a &str argument, as opposed to requiring you to allocate and construct a Value::String for indexing into another existing Value.
Mapping exposes more APIs that have become conventional on map data structures, such as .keys(), .values(), .into_keys(), .into_values(), .values_mut(), and .retain(|k, v| …).
Breaking changes
Serialization no longer produces leading ---\n on the serialized output. You can prepend this yourself if your use case demands it.
Serialization of enum variants is now based on YAML's !Tag syntax, rather than JSON-style singleton maps.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase will rebase this PR
@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
@dependabot merge will merge this PR after your CI passes on it
@dependabot squash and merge will squash and merge this PR after your CI passes on it
@dependabot cancel merge will cancel a previously requested merge and block automerging
@dependabot reopen will reopen this PR if it is closed
@dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
@dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/LGUG2Z/komorebi/pull/198
**Author:** [@dependabot[bot]](https://github.com/apps/dependabot)
**Created:** 8/1/2022
**Status:** ✅ Merged
**Merged:** 8/2/2022
**Merged by:** [@LGUG2Z](https://github.com/LGUG2Z)
**Base:** `master` ← **Head:** `dependabot/cargo/serde_yaml-0.9.2`
---
### 📝 Commits (1)
- [`50f5dcb`](https://github.com/LGUG2Z/komorebi/commit/50f5dcb5f79c4258d0f0ed9de380042b60e7d503) chore(deps): bump serde_yaml from 0.8.26 to 0.9.2
### 📊 Changes
**3 files changed** (+12 additions, -20 deletions)
<details>
<summary>View changed files</summary>
📝 `Cargo.lock` (+10 -18)
📝 `komorebi-core/Cargo.toml` (+1 -1)
📝 `komorebic/Cargo.toml` (+1 -1)
</details>
### 📄 Description
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.8.26 to 0.9.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/dtolnay/serde-yaml/releases">serde_yaml's releases</a>.</em></p>
<blockquote>
<h2>0.9.2</h2>
<ul>
<li>Improve <code>Debug</code> representation of <code>serde_yaml::Error</code></li>
</ul>
<h2>0.9.1</h2>
<ul>
<li>Fix panic on some documents containing syntax error (<a href="https://github-redirect.dependabot.com/dtolnay/serde-yaml/issues/293">#293</a>)</li>
<li>Improve error messages that used to contain duplicative line/column information (<a href="https://github-redirect.dependabot.com/dtolnay/serde-yaml/issues/294">#294</a>)</li>
</ul>
<h2>0.9.0</h2>
<p><em>API documentation: <a href="https://docs.rs/serde_yaml/0.9">https://docs.rs/serde_yaml/0.9</a></em></p>
<h3>Highlights</h3>
<ul>
<li>
<p>The <code>serde_yaml::Value</code> enum gains a <code>Tagged</code> variant which represents the deserialization of YAML's <code>!Tag</code> syntax. Tagged scalars, sequences, and mappings are all supported.</p>
</li>
<li>
<p>An empty YAML input (or document containing only comments) will deserialize successfully to an empty map, empty sequence, or Serde struct as long as the struct has only optional fields. Previously this would error.</p>
</li>
<li>
<p>A new <code>.apply_merge()</code> method on <code>Value</code> implements YAML's <code><<</code> merge key convention.</p>
</li>
<li>
<p>The <code>Debug</code> representation of <code>serde_yaml::Value</code> has gotten vastly better (<a href="https://github-redirect.dependabot.com/dtolnay/serde-yaml/pull/287">dtolnay/serde-yaml#287</a>).</p>
</li>
<li>
<p>Deserialization of borrowed strings now works.</p>
<pre lang="rust"><code>#[derive(Deserialize, Debug)]
struct Struct<'a> {
borrowed: &'a str,
}
<p>let yaml = "borrowed: 'kölcsönzött'\n";
let value: Struct = serde_yaml::from_str(yaml)?;
println!("{:#?}", value);
</code></pre></p>
</li>
<li>
<p><code>Value</code>'s and <code>Mapping</code>'s methods <code>get</code> and <code>get_mut</code> have been generalized to support a &str argument, as opposed to requiring you to allocate and construct a <code>Value::String</code> for indexing into another existing <code>Value</code>.</p>
</li>
<li>
<p><code>Mapping</code> exposes more APIs that have become conventional on map data structures, such as <code>.keys()</code>, <code>.values()</code>, <code>.into_keys()</code>, <code>.into_values()</code>, <code>.values_mut()</code>, and <code>.retain(|k, v| …)</code>.</p>
</li>
</ul>
<h3>Breaking changes</h3>
<ul>
<li>
<p>Serialization no longer produces leading <code>---\n</code> on the serialized output. You can prepend this yourself if your use case demands it.</p>
</li>
<li>
<p>Serialization of enum variants is now based on YAML's <code>!Tag</code> syntax, rather than JSON-style singleton maps.</p>
<pre lang="rust"><code>#[derive(Serialize, Deserialize)]
enum Enum {
Newtype(usize),
Tuple(usize, usize, usize),
Struct { x: f64, y: f64 },
}
</code></pre>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/dtolnay/serde-yaml/commit/3dd7bcf00ae95d09a858a96de03925af78d0c06c"><code>3dd7bcf</code></a> Release 0.9.2</li>
<li><a href="https://github.com/dtolnay/serde-yaml/commit/922c18f8d88eea8a37bb7187f6251a0e0efe1b98"><code>922c18f</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/dtolnay/serde-yaml/issues/296">#296</a> from dtolnay/debugerror</li>
<li><a href="https://github.com/dtolnay/serde-yaml/commit/3d62247840a1a7d60b6988c16d075ecf211e6e29"><code>3d62247</code></a> Condense Error's Debug format in a way to include whole message</li>
<li><a href="https://github.com/dtolnay/serde-yaml/commit/26e67d87b678a5ca8daecc14c0aa6ed9d119bab3"><code>26e67d8</code></a> Use mark() in the implementation of location()</li>
<li><a href="https://github.com/dtolnay/serde-yaml/commit/1c031a631a4100a920923b801ee02c5aebc40929"><code>1c031a6</code></a> Omit position 0 from error messages</li>
<li><a href="https://github.com/dtolnay/serde-yaml/commit/3562a1384900996f1d515278af8a75d3f005ec81"><code>3562a13</code></a> Split Error display into message_no_mark + mark</li>
<li><a href="https://github.com/dtolnay/serde-yaml/commit/790becc406d20c6f0156d50cb58173e0b8593101"><code>790becc</code></a> Fix missing message in Debug of libyaml Error</li>
<li><a href="https://github.com/dtolnay/serde-yaml/commit/bc2f0cab3bf975ce689f90b30ce5cc175f24125b"><code>bc2f0ca</code></a> Format with rustfmt 1.5.1-nightly</li>
<li><a href="https://github.com/dtolnay/serde-yaml/commit/9eca262590253b02012ff96ebb67e9ae982e8841"><code>9eca262</code></a> Release 0.9.1</li>
<li><a href="https://github.com/dtolnay/serde-yaml/commit/1d7fc6b3a3652d883cc2d57831914ac80cc788e9"><code>1d7fc6b</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/dtolnay/serde-yaml/issues/295">#295</a> from dtolnay/scan</li>
<li>Additional commits viewable in <a href="https://github.com/dtolnay/serde-yaml/compare/0.8.26...0.9.2">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/198
Author: @dependabot[bot]
Created: 8/1/2022
Status: ✅ Merged
Merged: 8/2/2022
Merged by: @LGUG2Z
Base:
master← Head:dependabot/cargo/serde_yaml-0.9.2📝 Commits (1)
50f5dcbchore(deps): bump serde_yaml from 0.8.26 to 0.9.2📊 Changes
3 files changed (+12 additions, -20 deletions)
View changed files
📝
Cargo.lock(+10 -18)📝
komorebi-core/Cargo.toml(+1 -1)📝
komorebic/Cargo.toml(+1 -1)📄 Description
Bumps serde_yaml from 0.8.26 to 0.9.2.
Release notes
Sourced from serde_yaml's releases.
... (truncated)
Commits
3dd7bcfRelease 0.9.2922c18fMerge pull request #296 from dtolnay/debugerror3d62247Condense Error's Debug format in a way to include whole message26e67d8Use mark() in the implementation of location()1c031a6Omit position 0 from error messages3562a13Split Error display into message_no_mark + mark790beccFix missing message in Debug of libyaml Errorbc2f0caFormat with rustfmt 1.5.1-nightly9eca262Release 0.9.11d7fc6bMerge pull request #295 from dtolnay/scanDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.