Update serde
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
serde (source) | dependencies | patch |
1.0.145 -> 1.0.201
|
serde_json | dependencies | patch |
1.0.115 -> 1.0.117
|
serde_json | dependencies | patch |
1.0.85 -> 1.0.117
|
serde_yaml | dependencies | patch |
0.9.19 -> 0.9.34
|
Release Notes
serde-rs/serde (serde)
v1.0.201
- Resolve unexpected_cfgs warning (#2737)
v1.0.200
- Fix formatting of "invalid type" and "invalid value" deserialization error messages containing NaN or infinite floats (#2733, thanks @jamessan)
v1.0.199
- Fix ambiguous associated item when
forward_to_deserialize_any!
is used on an enum withError
variant (#2732, thanks @aatifsyed)
v1.0.198
- Support serializing and deserializing
Saturating<T>
(#2709, thanks @jbethune)
v1.0.197
- Fix unused_imports warnings when compiled by rustc 1.78
- Optimize code size of some Display impls (#2697, thanks @nyurik)
v1.0.196
- Improve formatting of "invalid type" error messages involving floats (#2682)
v1.0.195
- Prevent remote definitions of tuple struct or tuple variant from triggering dead_code warning (#2671)
v1.0.194
- Update proc-macro2 to fix caching issue when using a rustc-wrapper such as sccache
v1.0.193
- Fix field names used for the deserialization of
RangeFrom
andRangeTo
(#2653, #2654, #2655, thanks @emilbonnek)
v1.0.192
- Allow internal tag field in untagged variant (#2646, thanks @robsdedude)
v1.0.191
- Documentation improvements
v1.0.190
- Preserve NaN sign when deserializing f32 from f64 or vice versa (#2637)
v1.0.189
- Fix "cannot infer type" error when internally tagged enum contains untagged variant (#2613, thanks @ahl)
v1.0.188
- Fix "failed to parse manifest" error when building serde using a Cargo version between 1.45 and 1.50 (#2603)
v1.0.187
- Remove support for Emscripten targets on rustc older than 1.40 (#2600)
v1.0.186
- Disallow incompatible versions of
serde_derive
andserde
in the dependency graph (#2588, thanks @soqb)
v1.0.185
- Fix error "cannot move out of
*self
which is behind a shared reference" deriving Serialize on a non_exhaustive enum (#2591)
v1.0.184
- Restore from-source
serde_derive
build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io
v1.0.183
- Support deserializing
Box<OsStr>
with an equivalent representation asOsString
(#2556, thanks @DBLouis)
v1.0.182
- Render field aliases in sorted order in error messages (#2458, thanks @Mingun)
- Support
serde(default)
on tuple structs (#2553, thanks @Mingun)
v1.0.181
- Make
serde(alias)
work in combination withflatten
when using in-place deserialization (#2443, thanks @Mingun) - Improve the representation of adjacently tagged enums in formats where enum tags are serialized by index, as opposed to by string name (#2505, #2496, thanks @Baptistemontan)
v1.0.180
- Update to 2018 edition
v1.0.179
v1.0.178
- Fix build error when using serde with "std" feature turned off and "unstable" feature turned on (#2541)
v1.0.177
- Add
serde(rename_all_fields = "...")
attribute to apply arename_all
on every struct variant of an enum (#1695, thanks @jplatte) - Improve diagnostics for attribute parse errors (#2536, thanks @jplatte)
v1.0.176
- Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant (#2266, thanks @flisky)
v1.0.175
v1.0.174
- Documentation improvements
v1.0.173
- Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the
bitflags
crate (#2516)
v1.0.172
- Experiment with precompiling the serde_derive macros to reduce build time (#2514)
v1.0.171
- Support
derive(Deserialize)
on unit structs that have const generics (#2500, thanks @Baptistemontan)
v1.0.170
- Produce error message on suffixed string literals inside serde attributes (#2242)
- Support single identifier as unbraced default value for const generic parameter (#2449)
v1.0.169
- Add Deserializer::deserialize_identifier support for adjacently tagged enums (#2475, thanks @Baptistemontan)
- Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions (#2414)
v1.0.168
- Allow
serde::de::IgnoredAny
to be the type for aserde(flatten)
field (#2436, thanks @Mingun) - Allow larger preallocated capacity for smaller elements (#2494)
v1.0.167
v1.0.166
- Add
no-alloc
category to crates.io metadata
v1.0.165
- Fix incorrect count of fields passed to tuple deserialization methods when using
serde(skip_deserializing)
attributes (#2466, thanks @Mingun) - Fix
-Zminimal-versions
build
v1.0.164
- Allowed enum variants to be individually marked as untagged (#2403, thanks @dewert99)
v1.0.163
- Eliminate build script from serde_derive crate to slightly reduce build time (#2442, thanks @taiki-e)
v1.0.162
-
Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the
csv
crate (#2377, thanks @mfro)#[derive(Deserialize)] pub struct Record { common: u64, #[serde(flatten)] kind: Kind, } #[derive(Deserialize)] #[serde(tag = "kind", content = "parameter", rename_all = "lowercase")] enum Kind { Foo(u64), Bar(bool), }
common,kind,parameter 1,foo,42 2,bar,true
v1.0.161
v1.0.160
- Make derived serializer/deserializer internals
doc(hidden)
(#2426, thanks @compiler-errors)
v1.0.159
- Accept empty #[serde()] attribute (#2422)
v1.0.158
- Fix "expected serde crate attribute to be a string" error when using macro_rules metavariable inside of serde attribute:
#[serde(crate = $serde_path)]
(#2409)
v1.0.157
- Update syn dependency to 2.x
v1.0.156
- Documentation improvements
v1.0.155
- Support
Serialize
andDeserialize
impls forcore::ffi::CStr
andalloc::ffi::CString
without "std" feature (#2374, thanks @safarir)
v1.0.154
- Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both
flatten
and'static
fields (#2383, thanks @Mingun)
v1.0.153
v1.0.152
- Documentation improvements
v1.0.151
- Update
serde::
{ser
,de
}::StdError
to re-exportcore::error::Error
when serde is built withfeature="std"
off andfeature="unstable"
on (#2344)
v1.0.150
- Relax some trait bounds from the
Serialize
impl ofHashMap
andBTreeMap
(#2334) - Enable
Serialize
andDeserialize
impls ofstd::sync::atomic
types on more platforms (#2337, thanks @badboy)
v1.0.149
- Relax some trait bounds from the
Serialize
impl ofBinaryHeap
,BTreeSet
, andHashSet
(#2333, thanks @jonasbb)
v1.0.148
- Support
remote
derive for generic types that have private fields (#2327)
v1.0.147
- Add
serde::de::value::EnumAccessDeserializer
which transforms anEnumAccess
into aDeserializer
(#2305)
v1.0.146
serde-rs/json (serde_json)
v1.0.117
- Resolve unexpected_cfgs warning (#1130)
v1.0.116
- Make module structure comprehensible to static analysis (#1124, thanks @mleonhard)
dtolnay/serde-yaml (serde_yaml)
v0.9.34
As of this release, I am not planning to publish further versions of serde_yaml
as 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.33
- Fix quadratic parse time for YAML containing deeply nested flow collections (https://github.com/dtolnay/unsafe-libyaml/issues/26)
v0.9.32
- Fix unused_imports warnings when compiled by rustc 1.78
v0.9.31
- Add
swap_remove
andshift_remove
methods on Mapping (#408)
v0.9.30
- Update proc-macro2 to fix caching issue when using a rustc-wrapper such as sccache
v0.9.29
- Turn on
deny(unsafe_op_in_unsafe_fn)
lint
v0.9.28
- Update
unsafe-libyaml
dependency to pull in unaligned write fix
v0.9.27
- Always serialize serde_yaml::Number containing NaN as a positive NaN (#394)
v0.9.26
v0.9.25
- Serialize using quoted style around scalar that has digits with leading zero (#347)
v0.9.24
- Implement FromStr for serde_yaml::Number (#381)
v0.9.23
- Documentation improvements
v0.9.22
- Update indexmap dependency to version 2
v0.9.21
- Make
Tag::new
panic if given empty string, since YAML has no syntax for an empty tag
v0.9.20
- Allow an empty YAML document to deserialize to
None
orValue::Null
, in addition to the previously supported empty vector, empty map, and struct with no required fields
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.