ferristseng / rust-ipfs-api

IPFS HTTP client in Rust
Apache License 2.0
247 stars 68 forks source link

Add linked node example to `IpfsClient::dag_put` docs. #78

Open nathan-at-least opened 3 years ago

nathan-at-least commented 3 years ago

As a rust dev new to IPFS, it's not clear to me from the IpfsClient::dag_put docs how to publish linked nodes.

Improve the doc example to show putting two nodes, where the parent node links to a child node with a CID.

This might live in ipfs-api-examples/examples/dag.rs, or directly in the dag_put doc comment if it's concise enough.

(This came from #76 but I thought it would help to have a separate specific ticket.)