Previously, Ipfs::put_dag would only accept an Ipld and if one wish to provide any serde-compatible type, they would have to supply it to DagPut::serialize. After evaluating to_ipld from libipld, it is determined that we can change it to use to serde::Serialize instead.
This change would not be breaking since supplying a Ipld to to_ipld would return itself.
Previously,
Ipfs::put_dag
would only accept anIpld
and if one wish to provide any serde-compatible type, they would have to supply it toDagPut::serialize
. After evaluatingto_ipld
fromlibipld
, it is determined that we can change it to use toserde::Serialize
instead.This change would not be breaking since supplying a
Ipld
toto_ipld
would return itself.