-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
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
mod codec
improvements
#318
Comments
I'd be happy to help out! |
@divergentdave, @tgeoghegan, @inahga do we still have appetite to improve the |
Having the codec traits in the same crate as the rest of prio has caused some problems for when trying to support two versions of prio to make transition better. The problem is that parts of prio require types that implement the traits in codec, but when the major version of the prio crate is bumped, this also "bumps" the version of the traits, even if they didn't change, which causes the compiler to consider these different traits. What we end up having to do is implement the same trait N times where N is the number of prio versions we want to support. If the codec traits, which have been quite stable for some time now, were in a separate crate this issue would be minimized in the future |
The argument for kicking the However, I don't think it should be a design goal for |
In #252, we discuss the notion of providing
mod codec
separately fromprio
. Elsewhere, @cjpatton has been thinking about improvements tomod codec
to make it more ergonomic and efficient (cloudflare/daphne#15). Now that we have some implementation experience under our belts, we should design and implement a faster and friendliermod codec
, and consider shipping it to crates.io separately fromprio
.The text was updated successfully, but these errors were encountered: