Bump serde_yaml from 0.8.25 to 0.9.4
Bumps serde_yaml from 0.8.25 to 0.9.4.
Release notes
Sourced from serde_yaml's releases.
0.9.4
- Add
serde_yaml::with::singleton_mapfor serialization of enums as a 1-entry map (#300)- Reject duplicate keys when deserializing
MappingorValue(#301)0.9.3
- Add categories to crates.io metadata
- Add keywords to crates.io metadata
0.9.2
- Improve
Debugrepresentation ofserde_yaml::Error0.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::Valueenum gains aTaggedvariant which represents the deserialization of YAML's!Tagsyntax. 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 onValueimplements YAML's<<merge key convention.The
Debugrepresentation ofserde_yaml::Valuehas 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 andMapping's methodsgetandget_muthave been generalized to support a &str argument, as opposed to requiring you to allocate and construct aValue::Stringfor indexing into another existingValue.
Mappingexposes 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
---\non the serialized output. You can prepend this yourself if your use case demands it.Serialization of enum variants is now based on YAML's
!Tagsyntax, rather than JSON-style singleton maps.
... (truncated)
Commits
d282c40Release 0.9.450f6ecdMerge pull request #301 from dtolnay/duplicateec1c1e4Error on duplicate key when deserializing Mapping13837fdDelegate Value deserialization to Vec's and Mapping's implf3504fbMerge pull request #300 from dtolnay/withf344c56Add a singleton_map module for serde's 'with' attribute7e1b160Pull in fixes from unsafe-libyaml 0.2.23dceb15Add test of serialize_key/serialize_value mapf7b55f1Fix serialize_key of 1-entry maps5299f1eDerive Debug for emitter's Event- Additional commits viewable in compare view
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 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)