Releases: jonasbb/serde_with
serde_with v3.8.1
serde_with v3.8.0
Added
- Implement (De)Serialization for Pinned Smart Pointers by @Astralchroma (#733)
- Implement
JsonSchemaAs
forPickFirst
by @swlynch99 (#721)
Changed
- Bump
base64
dependency to v0.22 (#724) - Update dev dependencies
Fixed
serde_conv
regressed and triggeredclippy::ptr_arg
and add test to prevent future problems. (#731)
serde_with v3.7.0
Added
- Implement
JsonSchemaAs
forEnumMap
by @swlynch99 (#697) - Implement
JsonSchemaAs
forIfIsHumanReadable
by @swlynch99 (#717) - Implement
JsonSchemaAs
forKeyValueMap
by @swlynch99 (#713) - Implement
JsonSchemaAs
forOneOrMany
by @swlynch99 (#719)
Fixed
- Detect conflicting
schema_with
attributes on fields withschemars
annotations by @swlynch99 (#715)
This extends the existing avoidance mechanism to a new variant fixing #712.
serde_with v3.6.1
serde_with v3.6.0
Added
- Add
IfIsHumanReadable
for conditional implementation by @irriden (#690)
Used to specify different transformations for text-based and binary formats. - Add more
JsonSchemaAs
impls for allDuration*
andTimestamp*
adaptors by @swlynch99 (#685)
Changed
- Bump MSRV to 1.65, since that is required for the
regex
dependency.
serde_with v3.5.1
Fixed
- The
serde_as
macro now better detects existingschemars
attributes on fields and incorporates them by @swlynch99 (#682)
This avoids errors on existing#[schemars(with = ...)]
annotations.
serde_with v3.5.0
Added
- Support for
schemars
integration added by @swlynch99 (#666)
The support uses a newSchema
top-level item which implementsJsonSchema
Theserde_as
macro can now detectschemars
usage and emits matching annotations for all fields withserde_as
attribute.
Many types of this crate come already with support for theschemars
, but support is not complete and will be extended over time.
serde_with v3.4.0
serde_with v3.3.0
Added
-
Support the
hashbrown
typeHashMap
andHashSet
(#636, #637)
Thanks to @OliverNChalk for raising the issue and submitting a PR.This extends the existing support for
HashMap
s andHashSet
s to thehashbrown
crate v0.14.
The same conversions as for thestd
andindexmap
types are available, like general support for#[serde_as]
and converting it to/from sequences or maps.
Changed
-
Generalize some trait bounds for
DeserializeAs
implementationsWhile working on #637 it came to light that some of the macros for generating
DeserializeAs
implementations were not as generic as they could.
This means they didn't work with custom hasher types, but only the default hashers.
This has now been fixed and custom hashers should work better, as long as they implementBuildHasher + Default
. -
(internal) Change how features are documented (#639)
This change moves the feature documentation into
Cargo.toml
in a format that can be read by lib.rs.
It will improve the generated features documentation there.
The page with all features remains in the guide but is now generated from theCargo.toml
information.
serde_with v3.2.0
Added
- Add optional support for indexmap v2 (#621)
Support for v1 is already available using theindexmap_1
feature.
This adds identical support for v2 of indexmap using theindexmap_2
feature.
Changed
- Bump MSRV to 1.64, since that is required for the indexmap v2 dependency.