let options = bincode::DefaultOptions::new()
.with_fixint_encoding()
.allow_trailing_bytes();
let mut v: Vec<u8> = Vec::new();
let serializer = bincode::Serializer::new(v, options);
let serializer = erased_serde::Serializer::erase(serializer);
This results in 2 errors:
error[E0277]: the trait bound `bincode::Serializer<Vec<u8>, WithOtherTrailing<WithOtherIntEncoding<DefaultOptions, FixintEncoding>, AllowTrailing>>: erased_serde::private::serde::Serializer` is not satisfied
error[E0782]: trait objects must include the `dyn` keyword
The first error is very confusing and points to a module named private which does not exist in the docs.
This crate is completely broken.
Consider the following code:
This results in 2 errors:
The first error is very confusing and points to a module named
private
which does not exist in the docs.