dependency loop with borsh and bson #860
Labels
No labels
breaking
bug
dependencies
good first issue
help wanted
unstable
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-uuid-rs/uuid#860
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Not really sure that this is the right place to post this, but here goes:
The following dependencies leads to a loop:
full reproduction example here: https://github.com/alexanderkjall/rkyv-loop-demo/
Hmm, that's pretty unfortunate. We need some way to break the cycle. If there was a smaller core API of
borshwe could depend on that was just enough to implementBorshSerializeandBorshDeserializetraits that itself was a dependency of the completeborshlibrary that would do it.I agree, and I guess would be best to try to solve this in collaboration with the other two crates in question. But I have never talked with any of those authors, should I try to ping them here maybe?
I've opened https://github.com/near/borsh-rs/issues/363 over in
borshto get some input from the maintainers there. Since this is an issue across multiple crates, I think it'll take some effort on all of our parts to work around it.We decided to deprecate the
borshfeature ofuuidin favour of auuidfeature inborsh. I don't think there's much we can do here without breakage, except to encourage users to use theborshfeature ofuuidinstead. At some future point we'll then change ourborshfeature into a no-op that produces a compile error.