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.36
->0.37
Release Notes
tafia/quick-xml (quick-xml)
v0.37.0
Compare Source
New Features
From<String>
andFrom<Cow<str>>
forquick_xml::de::Text
.SimpleTypeDeserializer
andSimpleTypeSerializer
public.IntoDeserializer
for&mut Deserializer
.Bug Fixes
$text
fields and those$value
fieldsthat are serialized as a text (for example,
usize
orString
).which is only
"true"
,"1"
,"false"
, and"0"
. Previously the following valuesalso was accepted:
bool
true
"True"
,"TRUE"
,"t"
,"Yes"
,"YES"
,"yes"
,"y"
false
"False"
,"FALSE"
,"f"
,"No"
,"NO"
,"no"
,"n"
Misc Changes
SeError
fromDeError
in theserialize
feature.Serialize functions and methods now return
SeError
.std::io::Error
fromWriter
methods.NamespaceError
andEncodingError
fromError
.Error::EscapeError
toError::Escape
to match other variants.Error
where only one variant is ever returned:attribute related methods on
BytesStart
andBytesDecl
returnsAttrError
Serializer
by returning an enumeration with kind of written dataVec<usize>
orVec<String>
in$value
fields. They cannot be deserialized back with the same resultescape
and it variants take aimpl Into<Cow<str>>
argument and implementFrom<(&'a str, Cow<'a, str>)>
onAttribute
DeError::InvalidInt
,DeError::InvalidFloat
andDeError::InvalidBoolean
.Now the responsibility for returning the error lies with the visitor of the type.
See ratiohttps://github.com/serde-rs/serde/pull/2811ull/2811
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.