We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from_read
Deserializer
I am trying to construct a Deserializer for use with serde_transcode, but it is failing:
serde_transcode
let mut deserializer: rmp_serde::Deserializer<_> = rmp_serde::from_read(input).unwrap();
input has the type Box<dyn Read>. The converse does seem to work:
input
Box<dyn Read>
let mut serializer = rmp_serde::Serializer::new(output);
What is the correct construction?
The text was updated successfully, but these errors were encountered:
I am not sure, but this might relate to #306
If that is the case, could something like serde_json's `IoRead' be added to this crate? It seems like this is the wrapper they use to buffer input.
serde_json
As an example, this works:
let mut deserializer: serde_json::Deserializer<serde_json::de::IoRead<Box<dyn Read>>> = serde_json::Deserializer::from_reader(input);
Sorry, something went wrong.
No branches or pull requests
I am trying to construct a
Deserializer
for use withserde_transcode
, but it is failing:input
has the typeBox<dyn Read>
. The converse does seem to work:What is the correct construction?
The text was updated successfully, but these errors were encountered: