Skip to content

Commit 5fb1ef0

Browse files
cleanup some docs
1 parent 64b8bba commit 5fb1ef0

File tree

2 files changed

+3
-30
lines changed

2 files changed

+3
-30
lines changed

iroh/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ url = { version = "2.5.0", features = ["serde"] }
6767
serde-error = "0.1.3"
6868

6969
[features]
70-
default = ["metrics", "fs-store"]
70+
default = ["metrics"]
7171
metrics = ["iroh-metrics"]
72-
fs-store = []
7372
test = []
7473
discovery-pkarr-dht = ["iroh-net/discovery-pkarr-dht"]
7574
test-utils = ["iroh-net/test-utils"]

iroh/src/lib.rs

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@
44
//!
55
//! ## Example
66
//!
7-
//! Create a new node and add some data to the blobs store. This data will be
8-
//! available over the network.
7+
//! Create a new node.
98
//!
109
//! ```rust
1110
//! # async fn run() -> anyhow::Result<()> {
12-
//! let node = iroh::node::Node::memory().spawn().await?;
13-
//! let client = node.client();
14-
//! let hash = client.blobs().add_bytes(b"some data".to_vec()).await?.hash;
15-
//! println!("hash: {}", hash);
11+
//! let _node = iroh::node::Node::memory().spawn().await?;
1612
//! # Ok(())
1713
//! # }
1814
//! ```
@@ -45,45 +41,23 @@
4541
//! The client provides access to various subsystems:
4642
//! - [net](crate::client::net):
4743
//! information and control of the iroh network
48-
//! - [blobs](crate::client::blobs):
49-
//! manage and share content-addressed blobs of data
50-
//! - [tags](crate::client::tags):
51-
//! tags to tell iroh what data is important
52-
//! - [gossip](crate::client::gossip):
53-
//! exchange data with other nodes via a gossip protocol
54-
//! - [docs](crate::client::docs):
55-
//! interact with documents and document authors
5644
//!
5745
//! The subsystem clients can be obtained cheaply from the main iroh client.
5846
//! They are also cheaply cloneable and can be shared across threads.
5947
//!
6048
//! So if you have code that only needs to interact with one subsystem, pass
6149
//! it just the subsystem client.
6250
//!
63-
//! ## Remote nodes
64-
//!
65-
//! To obtain a client to a remote node, you can use
66-
//! [connect](crate::client::Iroh::connect_path) to connect to a node running on
67-
//! the same machine, using the given data directory, or
68-
//! [connect_addr](crate::client::Iroh::connect_addr) to connect to a node at a
69-
//! known address.
70-
//!
71-
//! **Important**: the protocol to a remote node is not stable and will
72-
//! frequently change. So the client and server must be running the same version of iroh.
7351
//!
7452
//! ## Reexports
7553
//!
7654
//! The iroh crate re-exports the following crates:
7755
//! - [iroh_base] as [`base`]
78-
//! - [iroh_blobs] as [`blobs`]
79-
//! - [iroh_docs] as [`docs`]
80-
//! - [iroh_gossip] as [`gossip`]
8156
//! - [iroh_net] as [`net`]
8257
//!
8358
//! ## Feature Flags
8459
//!
8560
//! - `metrics`: Enable metrics collection. Enabled by default.
86-
//! - `fs-store`: Enables the disk based storage backend for `iroh-blobs`. Enabled by default.
8761
#![cfg_attr(iroh_docsrs, feature(doc_cfg))]
8862
#![deny(missing_docs, rustdoc::broken_intra_doc_links)]
8963

0 commit comments

Comments
 (0)