Releases: jonasbb/serde_with
Releases · jonasbb/serde_with
serde_with v3.16.1
serde_with v3.16.0
Added
- Added support for
smallvecv1 under thesmallvec_1feature flag by @isharma228 (#895) - Add
JsonSchemaAsimplementation forjson::JsonStringby @yogevm15 (#901)
serde_with v3.15.1
Fixed
- Fix building of the documentation by updating references to use
serde_core.
serde_with v3.15.0
Added
-
Added error inspection to
VecSkipErrorandMapSkipErrorby @michelhe (#878)
This allows interacting with the previously hidden error, for example for logging.
Checkout the newly added example to both types. -
Allow documenting the types generated by
serde_conv!.
Theserde_conv!macro now acceps outer attributes before the optional visibility modifier.
This allow adding doc comments in the shape of#[doc = "..."]or any other attributes, such as lint modifiers.serde_conv!( #[doc = "Serialize bools as string"] #[allow(dead_code)] pub BoolAsString, bool, |x: &bool| ::std::string::ToString::to_string(x), |x: ::std::string::String| x.parse() );
-
Add support for
hashbrownv0.16 (#877)This extends the existing support for
hashbrownv0.14 and v0.15 to the newly released version.
Changed
- Bump MSRV to 1.76, since that is required for
tomldev-dependency.
serde_with v3.14.1
Fixed
- Show macro expansion in the docs.rs generated rustdoc.
Since macros are used to generate trait implementations, this is useful to understand the exact generated code.
serde_with v3.14.0
Added
- Add support for
Range,RangeFrom,RangeTo,RangeInclusive(#851)
RangeToInclusiveis currently unsupported by serde. - Add
schemarsimplementations forBound,Range,RangeFrom,RangeTo,RangeInclusive. - Added support for
schemarsv1 under theschemars_1feature flag
serde_with v3.13.0
Added
- Added support for
schemarsv0.9.0 under theschemars_0_9feature flag by @swlynch99 (#849) - Introduce
SerializeDisplayAltderive macro (#833)
An alternative to theSerializeDisplaymacro except instead of using the
plain formatting likeformat!("{}", ...), it serializes with the
Formatter::alternateflag set to true, likeformat!("{:#}", ...)
Changed
- Generalize
serde_with::rust::unwrap_or_skipto support deserializing references by @beroal (#832) - Bump MSRV to 1.71, since that is required for the
jsonschemadev-dependency. - Make
serde_convavailable without thestdfeature by @arilou (#839) - Bump MSRV to 1.74, since that is required for
schemarsv0.9.0 by @swlynch99 (#849)
Fixed
- Make the
DurationSecondstypes and other variants more accessible even withoutstd(#845)