Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(bench): Update criterion to 0.5 #457

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 35 additions & 62 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion wnfs-bench/Cargo.toml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ license = "Apache-2.0"
async-std = { version = "1.11", features = ["attributes"] }
blake3 = { version = "1.4", features = ["traits-preview"] }
chrono = { version = "0.4", default-features = false, features = ["clock", "std"] }
criterion = { version = "0.4", features = ["async_std"] }
criterion = { version = "0.5", features = ["async_std"] }
proptest = "1.1"
rand = "0.8"
wnfs = { path = "../wnfs" }

Unchanged files with check annotations Beta

chunker: Chunker,
}
impl<'a> Debug for File<'a> {

Check failure on line 23 in wnfs-unixfs-file/src/builder.rs

GitHub Actions / rust-checks (nightly)

the following explicit lifetimes could be elided: 'a
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("File")
.field(
pub fn encode(
self,
store: &'a impl BlockStore,
) -> Result<impl Stream<Item = Result<(Cid, Block)>> + '_> {

Check failure on line 40 in wnfs-unixfs-file/src/builder.rs

GitHub Actions / rust-checks (nightly)

elided lifetime has a name
let chunks = self.chunker.chunks(self.content);
Ok(self.tree_builder.stream_tree(chunks, store))
}
degree: usize,
}
impl<'a> Default for FileBuilder<'a> {

Check failure on line 66 in wnfs-unixfs-file/src/builder.rs

GitHub Actions / rust-checks (nightly)

the following explicit lifetimes could be elided: 'a
fn default() -> Self {
Self {
reader: None,
}
}
impl<'a> Debug for FileBuilder<'a> {

Check failure on line 76 in wnfs-unixfs-file/src/builder.rs

GitHub Actions / rust-checks (nightly)

the following explicit lifetimes could be elided: 'a
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let reader = if self.reader.is_some() {
"Some(Box<AsyncRead>)"
Rabin(BoxStream<'a, io::Result<Bytes>>),
}
impl<'a> Debug for ChunkerStream<'a> {

Check failure on line 99 in wnfs-unixfs-file/src/chunker.rs

GitHub Actions / rust-checks (nightly)

the following explicit lifetimes could be elided: 'a
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::Fixed(_) => write!(f, "Fixed(impl Stream<Item=Bytes>)"),
}
}
impl<'a> Stream for ChunkerStream<'a> {

Check failure on line 108 in wnfs-unixfs-file/src/chunker.rs

GitHub Actions / rust-checks (nightly)

the following explicit lifetimes could be elided: 'a
type Item = io::Result<Bytes>;
fn poll_next(
store: &'a B,
}
impl<'a, B: BlockStore> UnixFsFileReader<'a, B> {

Check failure on line 267 in wnfs-unixfs-file/src/unixfs.rs

GitHub Actions / rust-checks (nightly)

the following explicit lifetimes could be elided: 'a
/// Returns the size in bytes, if known in advance.
pub fn size(&self) -> Option<u64> {
self.root_node.filesize()
},
}
impl<'a> Debug for CurrentNodeState<'a> {

Check failure on line 434 in wnfs-unixfs-file/src/unixfs.rs

GitHub Actions / rust-checks (nightly)

the following explicit lifetimes could be elided: 'a
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
CurrentNodeState::Outer => write!(f, "CurrentNodeState::Outer"),