-
Notifications
You must be signed in to change notification settings - Fork 165
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
Cannot use borsh
feature in crates that depend on borsh-derive
#383
Comments
On further thought, I believe this issue needs to be addressed in the |
Yeah, #363 added a doc warning about this. I mentioned there that borsh could implement for indexmap itself, but you'd have to be careful that your entire dependency tree doesn't enable |
Thanks for the quick response! I'll see if I can raise a PR to borsh to add |
PR open here: near/borsh-rs#346 |
following near/borsh-rs#346 merge, |
Thanks @dj8yfo for the quick responses. near/borsh-rs#346 is now merged. @cuviper, let me know if you want a PR to modify or remove the feature. That seems like a potential semver issue to me, but I'm happy to raise one if it's useful |
Yeah, we should only remove it in the next major release. For now, we can update the documentation to recommend using Sadly, the real |
Since at least version 1.2, borsh transitively depends on
indexmap
viatoml_edit
if theborsh/derive
feature is activated. This causes builds to fail with a circular dependency error when usingindexmap/borsh
andborsh/derive
in the same crate.The text was updated successfully, but these errors were encountered: