Update serde
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
serde (source) | dependencies | patch |
1.0.143 -> 1.0.199
|
serde_derive (source) | dependencies | patch |
1.0.143 -> 1.0.199
|
serde_json | dependencies | patch |
1.0.83 -> 1.0.116
|
Release Notes
serde-rs/serde (serde)
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
v1.0.145
- Allow RefCell<T>, Mutex<T>, and RwLock<T> to be serialized regardless of whether T is
Sized
(#2282, thanks @ChayimFriedman2)
v1.0.144
serde-rs/json (serde_json)
v1.0.116
- Make module structure comprehensible to static analysis (#1124, thanks @mleonhard)
v1.0.115
- Documentation improvements
v1.0.114
- Fix unused_imports warnings when compiled by rustc 1.78
v1.0.113
- Add
swap_remove
andshift_remove
methods on Map (#1109)
v1.0.112
- Improve formatting of "invalid type" error messages involving floats (#1107)
v1.0.111
v1.0.110
- Update proc-macro2 to fix caching issue when using a rustc-wrapper such as sccache
v1.0.109
- Documentation improvements
v1.0.108
- Documentation improvements (#1075, #1081, #1082, thanks @dimo414 and @fritzrehde)
v1.0.107
- impl IntoDeserializer for &RawValue (#1071)
v1.0.106
- Add
Value::as_number
accessor (#1069, thanks @chanced) - Add
Number::as_str
accessor under "arbitrary_precision" feature (#1067, thanks @chanced)
v1.0.105
- Support bool in map keys (#1054)
v1.0.104
- Provide IntoDeserializer impl for &serde_json::Value (#1045, thanks @ZetaNumbers)
v1.0.103
- Documentation improvements
v1.0.102
- Add a way to customize the serialization of byte arrays (#1039)
v1.0.101
- Allow f32 and f64 as keys in maps (#1027, thanks @overdrivenpotato)
v1.0.100
- Support
-Z minimal-versions
v1.0.99
- Support serializing serde's option type in a map key (#1030, thanks @LPGhatguy)
v1.0.98
- Update indexmap dependency used by "preserve_order" feature to version 2
v1.0.97
- Add
io_error_kind()
method to serde_json::Error:fn io_error_kind(&self) -> Option<std::io::ErrorKind>
(#1026)
v1.0.96
- Guarantee that
to_writer
only writes valid UTF-8 strings (#1011, thanks @stepancheg)
v1.0.95
- Preserve f32 precision when serializing f32 -> serde_json::Value -> JSON string in "arbitrary_precision" mode (#1004, #1005)
v1.0.94
v1.0.93
- Support 128-bit integers in serde_json::to_value (#982)
v1.0.92
- Documentation improvements
v1.0.91
- Opt out of
-Zrustdoc-scrape-examples
on docs.rs for now
v1.0.90
- Documentation improvements
v1.0.89
- Fix invalid JSON incorrectly accepted when a large number has no digits after decimal point (#953)
v1.0.88
- Optimize serde_json::Map's implementation of
append
andclone_from
(#952, thanks @Lucretiel)
v1.0.87
- Add
write_i128
andwrite_u128
methods toserde_json::Formatter
to control the formatting of 128-bit integers (#940, thanks @Lucretiel)
v1.0.86
- Support
arbitrary_precision
feature even in no-std mode (#928, thanks @kvinwang)
v1.0.85
- Make
Display
forNumber
produce the same representation as serializing (#919)
v1.0.84
- Make
Debug
impl ofserde_json::Value
more compact (#918)
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by Kevin Cox