chore copy README from examples/readme.rs
hopefully the last time before skeptic integration?
This commit is contained in:
parent
01cb7d3ae7
commit
670998dcb8
@ -5,7 +5,7 @@ Currently implements an altruistic bitswap strategy over mdns.
|
|||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
```rust,no-run
|
```rust,no-run
|
||||||
use ipfs::{Ipfs, IpfsOptions, Ipld, Types};
|
use ipfs::{UninitializedIpfs, IpfsOptions, Ipld, Types};
|
||||||
use futures::join;
|
use futures::join;
|
||||||
use futures::{FutureExt, TryFutureExt};
|
use futures::{FutureExt, TryFutureExt};
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ fn main() {
|
|||||||
|
|
||||||
tokio::runtime::current_thread::block_on_all(async move {
|
tokio::runtime::current_thread::block_on_all(async move {
|
||||||
// Start daemon and initialize repo
|
// Start daemon and initialize repo
|
||||||
let (ipfs, fut) = Ipfs::new(options).start().await.unwrap();
|
let (ipfs, fut) = UninitializedIpfs::new(options).start().await.unwrap();
|
||||||
tokio::spawn(fut.unit_error().boxed().compat());
|
tokio::spawn(fut.unit_error().boxed().compat());
|
||||||
|
|
||||||
// Create a DAG
|
// Create a DAG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user