You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a number of attributes that can be used in serde that seem to cause problems with non-self describing formats like postcard. Some issues include:
This is unfortunate, as in many cases (I don't have a comprehensive list of all affected attributes):
The code will still compile
Serialization will usually succeed (at least: return without Error)
Deserialization will fail (return an Error), or will deserialize incorrectly (returns wrong data).
Is there any way you are aware of to do one of the following?
Skip these attrs, or
Make them a compile time error
Right now my only answer is "don't do that", and I should probably add a bigger warning about it, as it is a thing that people often hit, particularly when they are using the same data formats with different wire formats (e.g. a JSON-to-postcard adapter).
The text was updated successfully, but these errors were encountered:
Hey there,
There are a number of attributes that can be used in
serde
that seem to cause problems with non-self describing formats likepostcard
. Some issues include:This is unfortunate, as in many cases (I don't have a comprehensive list of all affected attributes):
Is there any way you are aware of to do one of the following?
Right now my only answer is "don't do that", and I should probably add a bigger warning about it, as it is a thing that people often hit, particularly when they are using the same data formats with different wire formats (e.g. a JSON-to-postcard adapter).
The text was updated successfully, but these errors were encountered: