This repository was archived by the owner on Aug 26, 2024. It is now read-only.
-
Couldn't load subscription status.
- Fork 0
Update Rust crate serde_yaml to 0.9.0 #18
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/serde_yaml-0.x
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24cca82 to
bce5e76
Compare
bce5e76 to
9c48864
Compare
9c48864 to
7a3ea96
Compare
7a3ea96 to
fd2753f
Compare
fd2753f to
6c14562
Compare
6c14562 to
2a47eda
Compare
2a47eda to
a219093
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scan Summary
| Tool | Critical | High | Medium | Low | Status |
|---|---|---|---|---|---|
| Secrets Audit | 0 | 5 | 0 | 0 | ❌ |
| Security Audit for Infrastructure | 0 | 0 | 0 | 0 | ✅ |
Recommendation
Please review the findings from Code scanning alerts before approving this pull request. You can also configure the build rules or add suppressions to customize this bot 👍
a219093 to
4cec78f
Compare
4cec78f to
bae43a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scan Summary
| Tool | Critical | High | Medium | Low | Status |
|---|---|---|---|---|---|
| Secrets Audit | 0 | 5 | 0 | 0 | ❌ |
Recommendation
Please review the findings from Code scanning alerts before approving this pull request. You can also configure the build rules or add suppressions to customize this bot 👍
bae43a5 to
eb3ff33
Compare
eb3ff33 to
a2feb3b
Compare
a2feb3b to
8aa8711
Compare
8aa8711 to
bd8bff5
Compare
bd8bff5 to
204b650
Compare
204b650 to
bb6a092
Compare
bb6a092 to
c4e37e7
Compare
c4e37e7 to
1f8e1ea
Compare
1f8e1ea to
ff44068
Compare
ff44068 to
c3469d2
Compare
c3469d2 to
11d3864
Compare
11d3864 to
721150e
Compare
721150e to
6603b0a
Compare
6603b0a to
b09b995
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.8.17->0.9.0Release Notes
dtolnay/serde-yaml (serde_yaml)
v0.9.34Compare Source
As of this release, I am not planning to publish further versions of
serde_yamlas none of my projects have been using YAML for a long time, so I have archived the GitHub repo and marked the crate deprecated in the version number. An official replacement isn't designated for those who still need to work with YAML, but https://crates.io/search?q=yaml\&sort=relevance and https://crates.io/keywords/yaml has a number of reasonable-looking options available.v0.9.33Compare Source
v0.9.32Compare Source
v0.9.31Compare Source
swap_removeandshift_removemethods on Mapping (#408)v0.9.30Compare Source
v0.9.29Compare Source
deny(unsafe_op_in_unsafe_fn)lintv0.9.28Compare Source
unsafe-libyamldependency to pull in unaligned write fixv0.9.27Compare Source
v0.9.26Compare Source
.nanis deserialized as a positive NaN (#392, #393)v0.9.25Compare Source
v0.9.24Compare Source
v0.9.23Compare Source
v0.9.22Compare Source
v0.9.21Compare Source
Tag::newpanic if given empty string, since YAML has no syntax for an empty tagv0.9.20Compare Source
NoneorValue::Null, in addition to the previously supported empty vector, empty map, and struct with no required fieldsv0.9.19Compare Source
Displayandsource()(#359, #360)v0.9.18Compare Source
v0.9.17Compare Source
v0.9.16Compare Source
-Zrustdoc-scrape-exampleson docs.rs for nowv0.9.15Compare Source
v0.9.14Compare Source
DeserializerforTaggedValueand&TaggedValue(#339)v0.9.13Compare Source
True,TRUE,False,FALSEas booleans,Null,NULLas null (#330)v0.9.12Compare Source
Support deserializing tagged literal scalar into primitive (#327)
v0.9.11Compare Source
v0.9.10Compare Source
DisplayforNumberproduce the same representation as serializing (#316)v0.9.9Compare Source
v0.9.8Compare Source
TaggedValuewhen used withto_value(#313)v0.9.7Compare Source
v0.9.6Compare Source
v0.9.5Compare Source
Displaytrait forserde_yaml::value::Tag(#307, thanks @masinc)v0.9.4Compare Source
serde_yaml::with::singleton_mapfor serialization of enums as a 1-entry map (#300)MappingorValue(#301)v0.9.3Compare Source
v0.9.2Compare Source
Debugrepresentation ofserde_yaml::Errorv0.9.1Compare Source
v0.9.0Compare Source
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 (https://github.com/dtolnay/serde-yaml/pull/287).Deserialization of borrowed strings now works.
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.A bunch of non-base-10 edge cases in number parsing have been resolved. For example
0x+1and++0x1are now parsed as strings, whereas they used to be incorrectly treated as numbers.Deserializers obtained through iteration can no longer be iterated further:
The abandoned yaml-rust crate is no longer used as the YAML backend. The new libyaml-based backend surely has different edge cases and quirks than yaml-rust.
Some excessive
PartialEqimpls have been eliminated.The
serde_yaml::to_vecfunction has been removed. Useserde_yaml::to_writerfor doing I/O, or useserde_yaml::to_string+.into_bytes()on the resulting String.The
serde_yaml::seedmodule has been removed. Now that aserde_yaml::Deserializeris publicly available, the same use cases can be addressed viaseed.deserialize(Deserializer::from_str(…))instead.Bugfixes
Empty values in a mapping are supported, and deserialize to empty string when the corresponding struct field is of type string. Previously they would deserialize to "~" which makes no sense.
128-bit integer deserialization now supports hex and octal input.
Serde_yaml now includes a mitigation against a "billion laughs" attack in which malicious input involving YAML anchors and aliases is used to consume an amount of processing or memory that is exponential in the size of the input document. Serde_yaml will quickly produce an error in this situation instead.
v0.8.26Compare Source
flushmethod to Serializer (#251, thanks @jturner314-nrl)v0.8.25Compare Source
v0.8.24Compare Source
indexmap/autocfgnot always properly detecting whether astdsysroot crate is available (#243, thanks @cuviper)v0.8.23Compare Source
+or-sign (#228)v0.8.22Compare Source
v0.8.21Compare Source
v0.8.20Compare Source
v0.8.19Compare Source
EntryAPI for serde_yaml::Mapping (https://docs.rs/serde_yaml/0.8.19/serde_yaml/struct.Mapping.html#method.entry)v0.8.18Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.