Compiling proc-macro2 v1.0.106
Compiling quote v1.0.44
Compiling unicode-ident v1.0.22
Compiling libc v0.2.180
Compiling version_check v0.9.5
Compiling getrandom v0.3.4
Compiling serde_core v1.0.228
Compiling serde v1.0.228
Checking cfg-if v1.0.4
Compiling syn v1.0.109
Checking fastrand v2.3.0
Compiling rustix v1.1.3
Compiling proc-macro-hack v0.5.20+deprecated
Compiling zerocopy v0.8.39
Checking futures-core v0.3.31
Compiling autocfg v1.5.0
Compiling ref-cast v1.0.25
Checking bitflags v2.10.0
Checking smallvec v1.15.1
Checking pin-project-lite v0.2.16
Checking parking v2.2.1
Checking futures-io v0.3.31
Checking once_cell v1.21.3
Checking futures-lite v2.6.1
Checking inplace-vec-builder v0.1.1
Checking binary-merge v0.1.2
Compiling proc-macro-error-attr v0.4.12
Compiling proc-macro-error v0.4.12
Checking fnv v1.0.7
Compiling num-traits v0.2.19
Checking quick-error v1.2.3
Checking genawaiter-macro v0.99.1
Checking bit-vec v0.8.0
Checking bit-set v0.8.0
Checking regex-syntax v0.8.9
Checking unarray v0.1.4
Compiling syn v2.0.114
Checking errno v0.3.14
Checking wait-timeout v0.2.1
Checking rand_core v0.9.5
Checking rand v0.9.2
Checking rand_xorshift v0.4.0
Checking tempfile v3.24.0
Checking rusty-fork v0.3.1
Compiling serde_derive v1.0.228
Compiling ref-cast-impl v1.0.25
Compiling tokio-macros v2.6.0
Compiling pin-project-internal v1.1.10
Checking pin-project v1.1.10
Compiling syn-mid v0.5.4
Checking ppv-lite86 v0.2.21
Checking rand_chacha v0.9.0
Checking proptest v1.10.0
Compiling genawaiter-proc-macro v0.99.1
Checking genawaiter v0.99.1
Checking bytes v1.11.1
Checking range-collections v0.4.6
Checking cyber-hemera v0.3.1
Checking tokio v1.49.0
Checking iroh-io v0.6.2
Checking cyber-bao v0.1.0 (/private/tmp/radio-kadek-traversal.Oy2m4r/baseline/cyber-bao)
error: constant `PAIR_SIZE` is never used
--> cyber-bao/src/io/encode.rs:19:7
|
19 | const PAIR_SIZE: usize = OUTPUT_BYTES * 2;
| ^^^^^^^^^
|
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[expect(dead_code)]` or `#[allow(dead_code)]`
error: constant `PAIR_SIZE` is never used
--> cyber-bao/src/io/outboard.rs:15:7
|
15 | const PAIR_SIZE: usize = OUTPUT_BYTES * 2;
| ^^^^^^^^^
error: constant `PAIR_SIZE` is never used
--> cyber-bao/src/io/slice.rs:18:7
|
18 | const PAIR_SIZE: usize = OUTPUT_BYTES * 2;
| ^^^^^^^^^
error: using `clone` on type `Hash` which implements the `Copy` trait
--> cyber-bao/src/io/mixed.rs:115:32
|
115 | stack.push(pair.1.clone());
| ^^^^^^^^^^^^^^ help: try removing the `clone` call: `pair.1`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#clone_on_copy
= note: `-D clippy::clone-on-copy` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::clone_on_copy)]`
error: using `clone` on type `Hash` which implements the `Copy` trait
--> cyber-bao/src/io/mixed.rs:118:32
|
118 | stack.push(pair.0.clone());
| ^^^^^^^^^^^^^^ help: try removing the `clone` call: `pair.0`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#clone_on_copy
error: unused variable: `encoded`
--> cyber-bao/src/io/fsm.rs:287:20
|
287 | let (root, encoded) = encode::encode(&backend, &data, BlockSize::ZERO);
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoded`
|
= note: `-D unused-variables` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_variables)]`
error: using `clone` on type `Hash` which implements the `Copy` trait
--> cyber-bao/src/io/sync.rs:59:32
|
59 | stack.push(r_hash.clone());
| ^^^^^^^^^^^^^^ help: try removing the `clone` call: `r_hash`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#clone_on_copy
error: using `clone` on type `Hash` which implements the `Copy` trait
--> cyber-bao/src/io/sync.rs:62:32
|
62 | stack.push(l_hash.clone());
| ^^^^^^^^^^^^^^ help: try removing the `clone` call: `l_hash`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#clone_on_copy
error: using `clone` on type `Hash` which implements the `Copy` trait
--> cyber-bao/src/io/sync.rs:183:27
|
183 | next.push(level[i].clone());
| ^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `level[i]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#clone_on_copy
error: this function has too many arguments (9/7)
--> cyber-bao/src/io/sync.rs:239:1
|
239 | / async fn validate_node_rec<O, D>(
240 | | outboard: &O,
241 | | data: &D,
242 | | backend: &Poseidon2Backend,
... |
251 | | O: Outboard<Hash = hemera::Hash>,
252 | | D: ReadAt,
| |______________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#too_many_arguments
= note: `-D clippy::too-many-arguments` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::too_many_arguments)]`
error: large size difference between variants
--> cyber-bao/src/io/fsm.rs:53:1
|
53 | / pub enum ResponseDecoderNext<R> {
54 | | /// More items available. Contains the decoder and the next item/error.
55 | |/ More(
56 | || (
57 | || ResponseDecoder<R>,
58 | || Result<BaoContentItem<hemera::Hash>, DecodeError>,
59 | || ),
60 | || ),
| ||_____- the largest variant contains at least 504 bytes
61 | | /// Decoding is complete.
62 | | Done(R),
| | ------- the second-largest variant contains at least 0 bytes
63 | | }
| |__^ the entire enum is at least 504 bytes
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#large_enum_variant
= note: `-D clippy::large-enum-variant` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::large_enum_variant)]`
help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum
|
56 ~ Box<(
57 + ResponseDecoder<R>,
58 + Result<BaoContentItem<hemera::Hash>, DecodeError>,
59 ~ )>,
|
error: using `clone` on type `Hash` which implements the `Copy` trait
--> cyber-bao/src/io/fsm.rs:106:20
|
106 | stack.push(hash.clone());
| ^^^^^^^^^^^^ help: try removing the `clone` call: `hash`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#clone_on_copy
error: using `clone` on type `Hash` which implements the `Copy` trait
--> cyber-bao/src/io/fsm.rs:188:38
|
188 | inner.stack.push(right.clone());
| ^^^^^^^^^^^^^ help: try removing the `clone` call: `right`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#clone_on_copy
error: using `clone` on type `Hash` which implements the `Copy` trait
--> cyber-bao/src/io/fsm.rs:191:38
|
191 | inner.stack.push(left.clone());
| ^^^^^^^^^^^^ help: try removing the `clone` call: `left`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#clone_on_copy
error: using `clone` on type `Hash` which implements the `Copy` trait
--> cyber-bao/src/io/mod.rs:72:27
|
72 | next.push(level[i].clone());
| ^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `level[i]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#clone_on_copy
error: this `if` statement can be collapsed
--> cyber-bao/src/tree.rs:733:9
|
733 | / if left_overlaps {
734 | | if let Some(left) = left_child {
735 | | self.pre_order_filtered_recurse(left, false, total_blocks, ranges, out);
736 | | }
737 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#collapsible_if
= note: `-D clippy::collapsible-if` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::collapsible_if)]`
help: collapse nested if block
|
733 ~ if left_overlaps
734 ~ && let Some(left) = left_child {
735 | self.pre_order_filtered_recurse(left, false, total_blocks, ranges, out);
736 ~ }
|
error: this `if` statement can be collapsed
--> cyber-bao/src/tree.rs:738:9
|
738 | / if right_overlaps {
739 | | if let Some(right) = right_child {
740 | | self.pre_order_filtered_recurse(right, false, total_blocks, ranges, out);
741 | | }
742 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#collapsible_if
help: collapse nested if block
|
738 ~ if right_overlaps
739 ~ && let Some(right) = right_child {
740 | self.pre_order_filtered_recurse(right, false, total_blocks, ranges, out);
741 ~ }
|
error: could not compile `cyber-bao` (lib) due to 16 previous errors
warning: build failed, waiting for other jobs to finish...
error: using `clone` on type `Hash` which implements the `Copy` trait
--> cyber-bao/src/io/pre_order.rs:353:19
|
353 | root: ob.root.clone(),
| ^^^^^^^^^^^^^^^ help: try removing the `clone` call: `ob.root`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#clone_on_copy
error: this loop could be written as a `while let` loop
--> cyber-bao/src/io/fsm.rs:268:9
|
268 | / loop {
269 | | match current.next().await {
270 | | ResponseDecoderNext::More((dec, result)) => {
271 | | let item = result.expect("decode should succeed");
... |
279 | | }
| |_________^ help: try: `while let ResponseDecoderNext::More((dec, result)) = current.next().await { .. }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#while_let_loop
= note: `-D clippy::while-let-loop` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::while_let_loop)]`
error: this loop could be written as a `while let` loop
--> cyber-bao/src/io/fsm.rs:307:9
|
307 | / loop {
308 | | match current.next().await {
309 | | ResponseDecoderNext::More((dec, result)) => {
310 | | let item = result.expect("decode should succeed");
... |
318 | | }
| |_________^ help: try: `while let ResponseDecoderNext::More((dec, result)) = current.next().await { .. }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#while_let_loop
error: could not compile `cyber-bao` (lib test) due to 17 previous errors