Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump serde_yaml from 0.8.24 to 0.9.6 #2272

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 13, 2022

Bumps serde_yaml from 0.8.24 to 0.9.6.

Release notes

Sourced from serde_yaml's releases.

0.9.6

  • Fix tag not getting serialized in certain map values (#302)

0.9.5

  • Implement Display trait for serde_yaml::value::Tag (#307, thanks @​masinc)

0.9.4

  • Add serde_yaml::with::singleton_map for serialization of enums as a 1-entry map (#300)
  • Reject duplicate keys when deserializing Mapping or Value (#301)

0.9.3

  • Add categories to crates.io metadata
  • Add keywords to crates.io metadata

0.9.2

  • Improve Debug representation of serde_yaml::Error

0.9.1

  • Fix panic on some documents containing syntax error (#293)
  • Improve error messages that used to contain duplicative line/column information (#294)

0.9.0

API documentation: https://docs.rs/serde_yaml/0.9

Highlights

  • 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).

  • Deserialization of borrowed strings now works.

    #[derive(Deserialize, Debug)]
    struct Struct<'a> {
        borrowed: &'a str,
    }
    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| …).

... (truncated)

Commits
  • fba18a9 Release 0.9.6
  • 267da4a Merge pull request #309 from dtolnay/nested
  • de1d347 Add test of serializing nested TaggedValue
  • f848d03 Merge pull request #308 from dtolnay/nested
  • 78942ba Fix serialization of tags in a mapping value that's a mapping of size 1
  • 773d2ad Add regression test for issue 302
  • 9b37aca Release 0.9.5
  • c5ca887 Serialize using Tag's Display impl
  • 1b671c4 Use Display for Tag to implement Debug
  • 08d73e7 Touch up PR 307
  • Additional commits viewable in compare view

Dependabot compatibility score

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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Aug 13, 2022
@sharkdp
Copy link
Owner

sharkdp commented Aug 13, 2022

@dependabot-bot rebase

Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.8.24 to 0.9.6.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases)
- [Commits](dtolnay/serde-yaml@0.8.24...0.9.6)

---
updated-dependencies:
- dependency-name: serde_yaml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/cargo/serde_yaml-0.9.6 branch from 0122072 to 0ae4aeb Compare August 13, 2022 12:16
@sharkdp
Copy link
Owner

sharkdp commented Aug 14, 2022

@dependabot-bot rebase

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 14, 2022

Superseded by #2274.

@dependabot dependabot bot closed this Aug 14, 2022
@dependabot dependabot bot deleted the dependabot/cargo/serde_yaml-0.9.6 branch August 14, 2022 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant