serde_as
with smallvec::SmallVec
#654
Replies: 2 comments 1 reply
-
Yes that is an unfortunate effect of the change. the The problem is with unspecified generics, mainly during deserialization. For example, the |
Beta Was this translation helpful? Give feedback.
-
I would be interested in making that PR sometime. |
Beta Was this translation helpful? Give feedback.
-
In v1, I used to be able to do
using serde_with::rust::tuple_list_as_map
This has seemingly been removed since v2, leaving only the macros.
The above works for
Vec<T>
, but not forSmallVec<[T; N]>
Is there any way to work around that on newer versions and restore functionality of all
T: FromIterator
and&T: IntoIterator
types?Beta Was this translation helpful? Give feedback.
All reactions