Closed wellcaffeinated closed 3 months ago
Thanks for the test case. If I add the test to tests/codec.rs
(it already has all the imports) it passes for me. If you can push some branch somewhere which reproduces that issue, then I could have a look.
Aha. The key is that I'm using the Ipld struct in libipld rather than ipld_core.
If you try it with:
use libipld::{ipld, Ipld};
...
...it should fail.
I'm not sure why that would be... and I'm also a bit confused as to why there are two different crates for this. Is there one I should be using over the other?
Is there one I should be using over the other?
Yes, ipld-core
should be used now. libipld
will be deprecated soon. My plan is to get in touch with folks using libipld
and help with migration, before it's actually deprecated.
ah. Ok thanks for the clarification. Maybe the teams could add a note in the readme about this for newcomers.
I'll close this issue. Thanks!
Hey there, I ran into a problem using this with IPLD maps that contain a null field. Here's a test:
Here's what the result is: