Skip to content

Commit

Permalink
fix docs and increase version
Browse files Browse the repository at this point in the history
  • Loading branch information
rklaehn committed Sep 28, 2023
1 parent 93619e5 commit ea9dae4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iroh-io"
version = "0.2.2"
version = "0.3.0"
edition = "2021"
license = "Apache-2.0 OR MIT"
authors = ["rklaehn <[email protected]>", "n0 team"]
Expand All @@ -22,7 +22,10 @@ tokio-util = { version = "0.7", default-features = false, optional = true }
http = ["reqwest"]
tokio-io = ["tokio", "smallvec"]
stats = []
default = ["tokio-io", "stats"]
default = ["tokio-io"]

[package.metadata.docs.rs]
features = ["http", "tokio-io", "stats"]

[dev-dependencies]
axum = { version = "0.6" }
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
//! always get a new reader. Also, if you need concurrent access to the same resource,
//! create multiple readers.
//!
//! One thing you might wonder is why there are separate methods for writing Bytes and writing slices.
//! The reason is that if you already have Bytes and the underlying writer needs Bytes, you can avoid
//! One thing you might wonder is why there are separate methods for writing [Bytes] and writing slices.
//! The reason is that if you already have [Bytes] and the underlying writer needs [Bytes], you can avoid
//! an allocation.
#![deny(missing_docs, rustdoc::broken_intra_doc_links)]

Expand Down
6 changes: 3 additions & 3 deletions src/tokio_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ mod tokio_helper {

use super::*;

/// Future returned by [write].
/// Future that writes a slice to a writer
#[derive(Debug)]
#[must_use = "futures do nothing unless you `.await` or poll them"]
#[pin_project]
Expand Down Expand Up @@ -443,7 +443,7 @@ mod tokio_helper {
}
}

/// Future returned by [write].
/// Future that writes Bytes to a writer
#[derive(Debug)]
#[must_use = "futures do nothing unless you `.await` or poll them"]
#[pin_project]
Expand Down Expand Up @@ -487,7 +487,7 @@ mod tokio_helper {
}
}

/// Future for [TokioWrapper::flush].
/// Future that flushes a writer
#[derive(Debug)]
#[must_use = "futures do nothing unless you `.await` or poll them"]
#[pin_project]
Expand Down

0 comments on commit ea9dae4

Please sign in to comment.