chore(deps): Update Rust crate yaml-rust2 to 0.9 #601
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
->0.9
Release Notes
Ethiraric/yaml-rust2 (yaml-rust2)
v0.9.0
Compare Source
Breaking Changes
Since
hashlink
is exposed (throughYaml::Hash
) and has been updated from0.8.4 to 0.9.1, the new version of
yaml-rust2
will not link properly if youexplicitly rely on
hashlink v0.8
.Existing code with v0.8.4 should still compile fine in v0.9.1 (see
hashlink's v0.9.0
changelog).
Bug fixes
Parse empty scalars as
""
instead of"~"
.Features
Yaml::is_hash
.Index
andIntoIterator
implementations forYaml
to better explain their quirks and design decisions.v0.8.1
Compare Source
Bug fixes
(#29) Fix parsing
failing for deeply indented scalar blocks.
(#21-comment)
Fix parsing failing with comments immediately following a YAML tag.
Features
(#19)
Yaml
nowimplements
IndexMut<usize>
andIndexMut<&'a str>
. These functions may notreturn a mutable reference to a
BAD_VALUE
. Instead,index_mut()
willpanic if either:
IndexMut
's requirementsYaml
variant doesn't matchYaml::Array
forusize
orYaml::Hash
for&'a str
Use cargo features
This allows for more fine-grained control over MSRV and to completely remove
debug code from the library when it is consumed.
The
encoding
feature, governing theYamlDecoder
, has been enabled bydefault. Users of
@davvid
's fork ofyaml-rust
or ofyaml-rust2
mightalready use this. Users of the original
yaml-rust
crate may freely disablethis feature (
cargo <...> --no-default-features
) and lower MSRV to 1.65.0.Duplicate keys no longer allowed
Instead of silently choosing one of two values sharing the same key in a
mapping, we now issue an error. This behavior is part of the YAML
specification, but not tested by the
yaml-test-suite
(the parser needs toemit events for both key-values). Additionally, there is no standard way of
defining which value should be chosen in case of a duplicate.
Configuration
📅 Schedule: Branch creation - "before 5am on the first day of the month" (UTC), 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.