[INFO] cloning repository https://github.com/Marandi269/unidrop [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Marandi269/unidrop" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarandi269%2Funidrop", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarandi269%2Funidrop'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] abcbd66c2dc7b84630b5b0060dbc341e60d91e51 [INFO] testing Marandi269/unidrop against master#2fd6efc32704647e64d3d646d21c4c68eae100e4 for pr-149852-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarandi269%2Funidrop" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Marandi269/unidrop [INFO] finished tweaking git repo https://github.com/Marandi269/unidrop [INFO] tweaked toml for git repo https://github.com/Marandi269/unidrop written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Marandi269/unidrop on toolchain 2fd6efc32704647e64d3d646d21c4c68eae100e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Marandi269/unidrop already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded data-encoding-macro v0.1.18 [INFO] [stderr] Downloaded multibase v0.9.2 [INFO] [stderr] Downloaded libp2p v0.54.1 [INFO] [stderr] Downloaded rw-stream-sink v0.4.0 [INFO] [stderr] Downloaded data-encoding-macro-internal v0.1.16 [INFO] [stderr] Downloaded libp2p-mdns v0.46.0 [INFO] [stderr] Downloaded multiaddr v0.18.2 [INFO] [stderr] Downloaded base256emoji v1.0.2 [INFO] [stderr] Downloaded multihash v0.19.3 [INFO] [stderr] Downloaded unsigned-varint v0.8.0 [INFO] [stderr] Downloaded prometheus-client-derive-encode v0.4.2 [INFO] [stderr] Downloaded libp2p-identify v0.45.0 [INFO] [stderr] Downloaded libp2p-dcutr v0.12.0 [INFO] [stderr] Downloaded dtoa v1.0.11 [INFO] [stderr] Downloaded get_if_addrs-sys v0.1.1 [INFO] [stderr] Downloaded flutter_rust_bridge_macros v2.11.1 [INFO] [stderr] Downloaded quick-protobuf v0.8.1 [INFO] [stderr] Downloaded oslog v0.2.0 [INFO] [stderr] Downloaded android_logger v0.15.1 [INFO] [stderr] Downloaded get_if_addrs v0.5.3 [INFO] [stderr] Downloaded c_linked_list v1.1.1 [INFO] [stderr] Downloaded flutter_rust_bridge v2.11.1 [INFO] [stderr] Downloaded x25519-dalek v2.0.1 [INFO] [stderr] Downloaded attohttpc v0.24.1 [INFO] [stderr] Downloaded cbor4ii v0.3.3 [INFO] [stderr] Downloaded yamux v0.13.8 [INFO] [stderr] Downloaded libp2p-swarm v0.45.1 [INFO] [stderr] Downloaded mdns-sd v0.11.5 [INFO] [stderr] Downloaded libp2p-noise v0.45.0 [INFO] [stderr] Downloaded libp2p-swarm-derive v0.35.0 [INFO] [stderr] Downloaded if-addrs v0.13.4 [INFO] [stderr] Downloaded libp2p-allow-block-list v0.4.0 [INFO] [stderr] Downloaded libp2p-connection-limits v0.4.0 [INFO] [stderr] Downloaded libp2p-dns v0.42.0 [INFO] [stderr] Downloaded prometheus-client v0.22.3 [INFO] [stderr] Downloaded libp2p-tls v0.5.0 [INFO] [stderr] Downloaded libp2p-quic v0.11.1 [INFO] [stderr] Downloaded netlink-packet-route v0.17.1 [INFO] [stderr] Downloaded rtnetlink v0.13.1 [INFO] [stderr] Downloaded if-watch v3.2.1 [INFO] [stderr] Downloaded igd-next v0.14.3 [INFO] [stderr] Downloaded libp2p-core v0.42.0 [INFO] [stderr] Downloaded libp2p-identity v0.2.13 [INFO] [stderr] Downloaded quick-protobuf-codec v0.3.1 [INFO] [stderr] Downloaded libp2p-tcp v0.42.0 [INFO] [stderr] Downloaded const-str v0.4.3 [INFO] [stderr] Downloaded match-lookup v0.1.1 [INFO] [stderr] Downloaded libp2p-metrics v0.15.0 [INFO] [stderr] Downloaded multistream-select v0.13.0 [INFO] [stderr] Downloaded futures-rustls v0.26.0 [INFO] [stderr] Downloaded asynchronous-codec v0.7.0 [INFO] [stderr] Downloaded libp2p-request-response v0.27.0 [INFO] [stderr] Downloaded if-addrs v0.10.2 [INFO] [stderr] Downloaded rcgen v0.11.3 [INFO] [stderr] Downloaded fastbloom v0.14.0 [INFO] [stderr] Downloaded libp2p-upnp v0.3.0 [INFO] [stderr] Downloaded yamux v0.12.1 [INFO] [stderr] Downloaded libp2p-ping v0.45.0 [INFO] [stderr] Downloaded libp2p-relay v0.18.0 [INFO] [stderr] Downloaded futures-bounded v0.2.4 [INFO] [stderr] Downloaded windows-core v0.53.0 [INFO] [stderr] Downloaded snow v0.9.6 [INFO] [stderr] Downloaded windows v0.53.0 [INFO] [stderr] Downloaded libp2p-yamux v0.46.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ef6328a1bab65952f56979faebb194a104df428e59cb3389b6c3a9dd77b0bdc5 [INFO] running `Command { std: "docker" "start" "-a" "ef6328a1bab65952f56979faebb194a104df428e59cb3389b6c3a9dd77b0bdc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ef6328a1bab65952f56979faebb194a104df428e59cb3389b6c3a9dd77b0bdc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef6328a1bab65952f56979faebb194a104df428e59cb3389b6c3a9dd77b0bdc5", kill_on_drop: false }` [INFO] [stdout] ef6328a1bab65952f56979faebb194a104df428e59cb3389b6c3a9dd77b0bdc5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1ee6a35c7a8d3ff54c95f0dd913fcf44b36545196e78e5f97969a82e3a0311da [INFO] running `Command { std: "docker" "start" "-a" "1ee6a35c7a8d3ff54c95f0dd913fcf44b36545196e78e5f97969a82e3a0311da", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.113 [INFO] [stderr] Compiling libc v0.2.179 [INFO] [stderr] Compiling find-msvc-tools v0.1.6 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling unsigned-varint v0.8.0 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling quick-protobuf v0.8.1 [INFO] [stderr] Compiling core2 v0.4.0 [INFO] [stderr] Compiling const-str v0.4.3 [INFO] [stderr] Compiling bs58 v0.5.1 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling base-x v0.2.11 [INFO] [stderr] Compiling unsigned-varint v0.7.2 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling multihash v0.19.3 [INFO] [stderr] Compiling web-time v1.1.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling rustls v0.23.36 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling quinn-udp v0.5.14 [INFO] [stderr] Compiling yasna v0.5.2 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling oid-registry v0.7.1 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling quinn v0.11.9 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling serde_json v1.0.148 [INFO] [stderr] Compiling lru-slab v0.1.2 [INFO] [stderr] Compiling rustc-hash v2.1.1 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling anstyle-query v1.1.5 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling snow v0.9.6 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.2 [INFO] [stderr] Compiling anstyle v1.0.13 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling clap_lex v0.7.6 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling anstream v0.6.21 [INFO] [stderr] Compiling iri-string v0.7.10 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.20 [INFO] [stderr] Compiling c_linked_list v1.1.1 [INFO] [stderr] Compiling addr2line v0.25.1 [INFO] [stderr] Compiling clap_builder v4.5.54 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling object v0.37.3 [INFO] [stderr] Compiling portable-atomic v1.13.0 [INFO] [stderr] Compiling rustc-demangle v0.1.26 [INFO] [stderr] Compiling build-target v0.4.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling cc v1.2.51 [INFO] [stderr] Compiling atomic v0.5.3 [INFO] [stderr] Compiling flutter_rust_bridge v2.11.1 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling cmake v0.1.57 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling nix v0.26.4 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling uuid v1.19.0 [INFO] [stderr] Compiling if-addrs v0.13.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling mdns-sd v0.11.5 [INFO] [stderr] Compiling hostname v0.4.2 [INFO] [stderr] Compiling get_if_addrs v0.5.3 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling aws-lc-sys v0.35.0 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling dart-sys v4.1.5 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling fastbloom v0.14.0 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling match-lookup v0.1.1 [INFO] [stderr] Compiling base256emoji v1.0.2 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zeroize_derive v1.4.3 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling data-encoding-macro-internal v0.1.16 [INFO] [stderr] Compiling rustls-pki-types v1.13.2 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling libp2p-swarm-derive v0.35.0 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling data-encoding-macro v0.1.18 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling multibase v0.9.2 [INFO] [stderr] Compiling netlink-packet-utils v0.5.2 [INFO] [stderr] Compiling asn1-rs-derive v0.5.1 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling netlink-packet-core v0.7.0 [INFO] [stderr] Compiling asn1-rs-impl v0.2.0 [INFO] [stderr] Compiling rustls-native-certs v0.8.3 [INFO] [stderr] Compiling netlink-packet-route v0.17.1 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling webpki-roots v1.0.5 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling tracing-subscriber v0.3.22 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling asn1-rs v0.6.2 [INFO] [stderr] Compiling backtrace v0.3.76 [INFO] [stderr] Compiling flutter_rust_bridge_macros v2.11.1 [INFO] [stderr] Compiling delegate-attr v0.3.0 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling rcgen v0.11.3 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling ed25519-dalek v2.2.0 [INFO] [stderr] Compiling rw-stream-sink v0.4.0 [INFO] [stderr] Compiling multistream-select v0.13.0 [INFO] [stderr] Compiling asynchronous-codec v0.7.0 [INFO] [stderr] Compiling futures-bounded v0.2.4 [INFO] [stderr] Compiling libp2p-identity v0.2.13 [INFO] [stderr] Compiling quick-protobuf-codec v0.3.1 [INFO] [stderr] Compiling der-parser v9.0.0 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling cbor4ii v0.3.3 [INFO] [stderr] Compiling yamux v0.13.8 [INFO] [stderr] Compiling yamux v0.12.1 [INFO] [stderr] Compiling x25519-dalek v2.0.1 [INFO] [stderr] Compiling x509-parser v0.16.0 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling clap v4.5.54 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling rcgen v0.13.2 [INFO] [stderr] Compiling allo-isolate v0.1.27 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling netlink-sys v0.8.7 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling netlink-proto v0.11.5 [INFO] [stderr] Compiling rtnetlink v0.13.1 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling unidrop-core v0.1.0 (/opt/rustwide/workdir/crates/unidrop-core) [INFO] [stderr] Compiling multiaddr v0.18.2 [INFO] [stdout] warning: unused imports: `TransferProgress` and `TransferRequest` [INFO] [stdout] --> crates/unidrop-core/src/protocol.rs:13:62 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::{Device, DeviceId, Event, Result, TransferIntent, TransferProgress, TransferRequest}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling h2 v0.4.13 [INFO] [stderr] Compiling unidrop-engine v0.1.0 (/opt/rustwide/workdir/crates/unidrop-engine) [INFO] [stderr] Compiling libp2p-core v0.42.0 [INFO] [stdout] warning: unused import: `mpsc` [INFO] [stdout] --> crates/unidrop-engine/src/engine.rs:10:30 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::sync::{broadcast, mpsc}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> crates/unidrop-engine/src/registry.rs:8:73 [INFO] [stdout] | [INFO] [stdout] 8 | use unidrop_core::{Protocol, ProtocolFactory, ProtocolId, ProtocolInfo, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> crates/unidrop-engine/src/router.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use tracing::{debug, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Device` [INFO] [stdout] --> crates/unidrop-engine/src/router.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | use unidrop_core::{Device, DeviceId, Protocol, ProtocolId, Result, TransferIntent}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tower-http v0.6.8 [INFO] [stdout] warning: unused import: `futures::StreamExt` [INFO] [stdout] --> crates/unidrop-engine/src/engine.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use futures::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling if-watch v3.2.1 [INFO] [stderr] Compiling libp2p-swarm v0.45.1 [INFO] [stderr] Compiling libp2p-noise v0.45.0 [INFO] [stderr] Compiling libp2p-yamux v0.46.0 [INFO] [stderr] Compiling libp2p-tcp v0.42.0 [INFO] [stderr] Compiling libp2p-identify v0.45.0 [INFO] [stderr] Compiling libp2p-ping v0.45.0 [INFO] [stderr] Compiling libp2p-dcutr v0.12.0 [INFO] [stderr] Compiling libp2p-connection-limits v0.4.0 [INFO] [stderr] Compiling libp2p-request-response v0.27.0 [INFO] [stderr] Compiling libp2p-relay v0.18.0 [INFO] [stderr] Compiling libp2p-allow-block-list v0.4.0 [INFO] [stderr] Compiling hyper v1.8.1 [INFO] [stderr] Compiling hyper-util v0.1.19 [INFO] [stderr] Compiling aws-lc-rs v1.15.2 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling rustls-webpki v0.103.8 [INFO] [stderr] Compiling rustls-platform-verifier v0.6.2 [INFO] [stderr] Compiling futures-rustls v0.26.0 [INFO] [stderr] Compiling tokio-rustls v0.26.4 [INFO] [stderr] Compiling quinn-proto v0.11.13 [INFO] [stderr] Compiling libp2p-tls v0.5.0 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Compiling reqwest v0.12.28 [INFO] [stderr] Compiling libp2p-quic v0.11.1 [INFO] [stderr] Compiling unidrop-protocol-localsend v0.1.0 (/opt/rustwide/workdir/crates/unidrop-protocol-localsend) [INFO] [stdout] warning: unused imports: `error` and `warn` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/discovery.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use tracing::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeviceId` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/discovery.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | use unidrop_core::{Device, DeviceId, DeviceType, Event, Peer, ProtocolId}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/multicast.rs:13:22 [INFO] [stdout] | [INFO] [stdout] 13 | use tracing::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ProtocolId` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/protocol.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | ProtocolId, ProtocolInfo, Result, TransferIntent, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Bytes` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/quic.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use bytes::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling libp2p v0.54.1 [INFO] [stderr] Compiling unidrop-protocol-p2p v0.1.0 (/opt/rustwide/workdir/crates/unidrop-protocol-p2p) [INFO] [stderr] Compiling unidrop-relay v0.1.0 (/opt/rustwide/workdir/crates/unidrop-relay) [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> crates/unidrop-relay/src/main.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | use tracing::{info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | let address = if let Some(relay) = relay_addr { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/multicast.rs:188:45 [INFO] [stdout] | [INFO] [stdout] 188 | ... let target = SocketAddr::new(ip, port); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_CHUNK_SIZE` is never used [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/behaviour.rs:76:11 [INFO] [stdout] | [INFO] [stdout] 76 | pub const DEFAULT_CHUNK_SIZE: usize = 64 * 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Dial`, `GetLocalPeerId`, and `SendFileChunk` are never constructed [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 43 | enum SwarmCommand { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 44 | /// 连接到对端 [INFO] [stdout] 45 | Dial { addr: Multiaddr, reply: oneshot::Sender> }, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | GetLocalPeerId { reply: oneshot::Sender }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 50 | /// 发送文件数据块 [INFO] [stdout] 51 | SendFileChunk { peer_id: PeerId, chunk: FileChunk, reply: oneshot::Sender }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_id`, `path`, `size`, `chunks_sent`, and `total_chunks` are never read [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 77 | struct SendingFile { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 78 | /// 文件 ID [INFO] [stdout] 79 | file_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 80 | /// 文件路径 [INFO] [stdout] 81 | path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] 82 | /// 文件大小 [INFO] [stdout] 83 | size: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 84 | /// 已发送的块数 [INFO] [stdout] 85 | chunks_sent: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 86 | /// 总块数 [INFO] [stdout] 87 | total_chunks: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SendingFile` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_id`, `name`, `size`, `save_dir`, `chunks_received`, and `total_chunks` are never read [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 92 | struct ReceivingFile { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 93 | /// 文件 ID [INFO] [stdout] 94 | file_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 95 | /// 文件名 [INFO] [stdout] 96 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 97 | /// 文件大小 [INFO] [stdout] 98 | size: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 99 | /// 保存目录 [INFO] [stdout] 100 | save_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 101 | /// 已接收的块数 [INFO] [stdout] 102 | chunks_received: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 103 | /// 总块数 [INFO] [stdout] 104 | total_chunks: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReceivingFile` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peer_id`, `files`, and `current_file` are never read [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 109 | struct SendSession { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 110 | /// 目标 Peer ID [INFO] [stdout] 111 | peer_id: PeerId, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 112 | /// 待发送的文件列表 [INFO] [stdout] 113 | files: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 114 | /// 当前发送的文件索引 [INFO] [stdout] 115 | current_file: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SendSession` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peer_id`, `files`, and `save_dir` are never read [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 120 | struct ReceiveSession { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 121 | /// 来源 Peer ID [INFO] [stdout] 122 | peer_id: PeerId, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 123 | /// 待接收的文件列表 [INFO] [stdout] 124 | files: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 125 | /// 保存目录 [INFO] [stdout] 126 | save_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReceiveSession` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `relay_addr`, `send_sessions`, and `receive_sessions` are never read [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 130 | pub struct P2pProtocol { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 143 | relay_addr: RwLock>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 144 | /// 发送会话 [INFO] [stdout] 145 | send_sessions: RwLock>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 146 | /// 接收会话 [INFO] [stdout] 147 | receive_sessions: RwLock>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `emit_event` and `create_device` are never used [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:201:8 [INFO] [stdout] | [INFO] [stdout] 150 | impl P2pProtocol { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 201 | fn emit_event(&self, event: Event) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | fn create_device(&self, peer_id: PeerId, name: String, relay_addr: Option<&str>) -> Device { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Transferring`, `Completed`, and `Failed` are never constructed [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/transfer.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum TransferState { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | Transferring { progress: f64 }, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 15 | /// 完成 [INFO] [stdout] 16 | Completed, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 17 | /// 失败 [INFO] [stdout] 18 | Failed { error: String }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransferState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peer_id`, `file_name`, `file_size`, `save_path`, and `bytes_transferred` are never read [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/transfer.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct TransferSession { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 26 | pub id: String, [INFO] [stdout] 27 | pub peer_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 28 | pub file_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 29 | pub file_size: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 30 | pub state: TransferState, [INFO] [stdout] 31 | pub save_path: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 32 | pub bytes_transferred: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransferSession` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `progress` is never used [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/transfer.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl TransferSession { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn progress(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_session`, `update_progress`, `complete`, `fail`, `remove`, and `all_sessions` are never used [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/transfer.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl TransferManager { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn get_session(&self, id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn update_progress(&self, id: &str, bytes: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn complete(&self, id: &str) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn fail(&self, id: &str, error: String) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn remove(&self, id: &str) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn all_sessions(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/quic.rs:337:41 [INFO] [stdout] | [INFO] [stdout] 337 | let (file_id, token, file_name, size) = match header { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cancel` is never used [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/client.rs:161:18 [INFO] [stdout] | [INFO] [stdout] 21 | impl HttpClient { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 161 | pub async fn cancel(&self, target: &Device, session_id: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MulticastAnnounce` is never constructed [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/models.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct MulticastAnnounce { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `from` are never read [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/server.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct TransferSession { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 29 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 30 | pub from: Device, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `event_tx` is never read [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/server.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct ServerState { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 41 | pub event_tx: mpsc::Sender, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_upload_query` is never used [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/server.rs:298:4 [INFO] [stdout] | [INFO] [stdout] 298 | fn parse_upload_query(query: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling unidrop-ffi v0.1.0 (/opt/rustwide/workdir/crates/unidrop-ffi) [INFO] [stderr] Compiling unidrop-cli v0.1.0 (/opt/rustwide/workdir/crates/unidrop-cli) [INFO] [stderr] Compiling unidrop-daemon v0.1.0 (/opt/rustwide/workdir/crates/unidrop-daemon) [INFO] [stdout] warning: unused imports: `DeviceId` and `ProtocolId` [INFO] [stdout] --> crates/unidrop-cli/src/main.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | use unidrop_core::{DeviceId, ProtocolId, TransferIntent}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[frb(dart_metadata=("freezed"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | #[frb(dart_metadata=("freezed"), unignore)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | #[frb(dart_metadata=("freezed"), unignore)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | #[frb(dart_metadata=("freezed"), unignore)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | #[frb(dart_metadata=("freezed"), unignore)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 78 | #[frb(dart_metadata=("freezed"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:113:1 [INFO] [stdout] | [INFO] [stdout] 113 | #[frb(sync)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:305:1 [INFO] [stdout] | [INFO] [stdout] 305 | #[frb(sync)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:312:1 [INFO] [stdout] | [INFO] [stdout] 312 | #[frb(sync)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_id` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:217:30 [INFO] [stdout] | [INFO] [stdout] 217 | pub async fn accept_transfer(request_id: String, protocol: String) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `protocol` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:217:50 [INFO] [stdout] | [INFO] [stdout] 217 | pub async fn accept_transfer(request_id: String, protocol: String) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_protocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `engine` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | let engine = get_engine().ok_or("Engine not initialized")?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_engine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_id` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:226:30 [INFO] [stdout] | [INFO] [stdout] 226 | pub async fn reject_transfer(request_id: String, protocol: String) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `protocol` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:226:50 [INFO] [stdout] | [INFO] [stdout] 226 | pub async fn reject_transfer(request_id: String, protocol: String) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_protocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `engine` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:227:9 [INFO] [stdout] | [INFO] [stdout] 227 | let engine = get_engine().ok_or("Engine not initialized")?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_engine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_runtime` is never used [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn get_runtime() -> &'static tokio::runtime::Runtime { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 39s [INFO] running `Command { std: "docker" "inspect" "1ee6a35c7a8d3ff54c95f0dd913fcf44b36545196e78e5f97969a82e3a0311da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ee6a35c7a8d3ff54c95f0dd913fcf44b36545196e78e5f97969a82e3a0311da", kill_on_drop: false }` [INFO] [stdout] 1ee6a35c7a8d3ff54c95f0dd913fcf44b36545196e78e5f97969a82e3a0311da [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 02b3a4d4c76e6650520bee9f530617dd7cb4a6e41faa383be08f6c1e8643de6e [INFO] running `Command { std: "docker" "start" "-a" "02b3a4d4c76e6650520bee9f530617dd7cb4a6e41faa383be08f6c1e8643de6e", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `TransferProgress` and `TransferRequest` [INFO] [stdout] --> crates/unidrop-core/src/protocol.rs:13:62 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::{Device, DeviceId, Event, Result, TransferIntent, TransferProgress, TransferRequest}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | let address = if let Some(relay) = relay_addr { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_CHUNK_SIZE` is never used [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/behaviour.rs:76:11 [INFO] [stdout] | [INFO] [stdout] 76 | pub const DEFAULT_CHUNK_SIZE: usize = 64 * 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Dial`, `GetLocalPeerId`, and `SendFileChunk` are never constructed [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 43 | enum SwarmCommand { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 44 | /// 连接到对端 [INFO] [stdout] 45 | Dial { addr: Multiaddr, reply: oneshot::Sender> }, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | GetLocalPeerId { reply: oneshot::Sender }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 50 | /// 发送文件数据块 [INFO] [stdout] 51 | SendFileChunk { peer_id: PeerId, chunk: FileChunk, reply: oneshot::Sender }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_id`, `path`, `size`, `chunks_sent`, and `total_chunks` are never read [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 77 | struct SendingFile { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 78 | /// 文件 ID [INFO] [stdout] 79 | file_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 80 | /// 文件路径 [INFO] [stdout] 81 | path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] 82 | /// 文件大小 [INFO] [stdout] 83 | size: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 84 | /// 已发送的块数 [INFO] [stdout] 85 | chunks_sent: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 86 | /// 总块数 [INFO] [stdout] 87 | total_chunks: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SendingFile` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_id`, `name`, `size`, `save_dir`, `chunks_received`, and `total_chunks` are never read [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 92 | struct ReceivingFile { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 93 | /// 文件 ID [INFO] [stdout] 94 | file_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 95 | /// 文件名 [INFO] [stdout] 96 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 97 | /// 文件大小 [INFO] [stdout] 98 | size: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 99 | /// 保存目录 [INFO] [stdout] 100 | save_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 101 | /// 已接收的块数 [INFO] [stdout] 102 | chunks_received: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 103 | /// 总块数 [INFO] [stdout] 104 | total_chunks: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReceivingFile` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peer_id`, `files`, and `current_file` are never read [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 109 | struct SendSession { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 110 | /// 目标 Peer ID [INFO] [stdout] 111 | peer_id: PeerId, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 112 | /// 待发送的文件列表 [INFO] [stdout] 113 | files: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 114 | /// 当前发送的文件索引 [INFO] [stdout] 115 | current_file: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SendSession` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peer_id`, `files`, and `save_dir` are never read [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 120 | struct ReceiveSession { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 121 | /// 来源 Peer ID [INFO] [stdout] 122 | peer_id: PeerId, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 123 | /// 待接收的文件列表 [INFO] [stdout] 124 | files: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 125 | /// 保存目录 [INFO] [stdout] 126 | save_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReceiveSession` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `relay_addr`, `send_sessions`, and `receive_sessions` are never read [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 130 | pub struct P2pProtocol { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 143 | relay_addr: RwLock>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 144 | /// 发送会话 [INFO] [stdout] 145 | send_sessions: RwLock>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 146 | /// 接收会话 [INFO] [stdout] 147 | receive_sessions: RwLock>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `emit_event` and `create_device` are never used [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:201:8 [INFO] [stdout] | [INFO] [stdout] 150 | impl P2pProtocol { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 201 | fn emit_event(&self, event: Event) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | fn create_device(&self, peer_id: PeerId, name: String, relay_addr: Option<&str>) -> Device { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Transferring`, `Completed`, and `Failed` are never constructed [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/transfer.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum TransferState { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | Transferring { progress: f64 }, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 15 | /// 完成 [INFO] [stdout] 16 | Completed, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 17 | /// 失败 [INFO] [stdout] 18 | Failed { error: String }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransferState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peer_id`, `file_name`, `file_size`, `save_path`, and `bytes_transferred` are never read [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/transfer.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct TransferSession { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 26 | pub id: String, [INFO] [stdout] 27 | pub peer_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 28 | pub file_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 29 | pub file_size: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 30 | pub state: TransferState, [INFO] [stdout] 31 | pub save_path: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 32 | pub bytes_transferred: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransferSession` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `progress` is never used [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/transfer.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl TransferSession { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn progress(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_session`, `update_progress`, `complete`, `fail`, `remove`, and `all_sessions` are never used [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/transfer.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl TransferManager { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn get_session(&self, id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn update_progress(&self, id: &str, bytes: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn complete(&self, id: &str) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn fail(&self, id: &str, error: String) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn remove(&self, id: &str) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn all_sessions(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling unidrop-engine v0.1.0 (/opt/rustwide/workdir/crates/unidrop-engine) [INFO] [stderr] Compiling unidrop-protocol-p2p v0.1.0 (/opt/rustwide/workdir/crates/unidrop-protocol-p2p) [INFO] [stderr] Compiling unidrop-relay v0.1.0 (/opt/rustwide/workdir/crates/unidrop-relay) [INFO] [stdout] warning: unused import: `mpsc` [INFO] [stdout] --> crates/unidrop-engine/src/engine.rs:10:30 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::sync::{broadcast, mpsc}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> crates/unidrop-engine/src/registry.rs:8:73 [INFO] [stdout] | [INFO] [stdout] 8 | use unidrop_core::{Protocol, ProtocolFactory, ProtocolId, ProtocolInfo, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> crates/unidrop-engine/src/router.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use tracing::{debug, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Device` [INFO] [stdout] --> crates/unidrop-engine/src/router.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | use unidrop_core::{Device, DeviceId, Protocol, ProtocolId, Result, TransferIntent}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::StreamExt` [INFO] [stdout] --> crates/unidrop-engine/src/engine.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use futures::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error` and `warn` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/discovery.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use tracing::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeviceId` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/discovery.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | use unidrop_core::{Device, DeviceId, DeviceType, Event, Peer, ProtocolId}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/multicast.rs:13:22 [INFO] [stdout] | [INFO] [stdout] 13 | use tracing::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ProtocolId` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/protocol.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | ProtocolId, ProtocolInfo, Result, TransferIntent, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Bytes` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/quic.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use bytes::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/multicast.rs:188:45 [INFO] [stdout] | [INFO] [stdout] 188 | ... let target = SocketAddr::new(ip, port); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/quic.rs:337:41 [INFO] [stdout] | [INFO] [stdout] 337 | let (file_id, token, file_name, size) = match header { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling unidrop-protocol-localsend v0.1.0 (/opt/rustwide/workdir/crates/unidrop-protocol-localsend) [INFO] [stdout] warning: method `cancel` is never used [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/client.rs:161:18 [INFO] [stdout] | [INFO] [stdout] 21 | impl HttpClient { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 161 | pub async fn cancel(&self, target: &Device, session_id: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling unidrop-core v0.1.0 (/opt/rustwide/workdir/crates/unidrop-core) [INFO] [stdout] warning: struct `MulticastAnnounce` is never constructed [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/models.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct MulticastAnnounce { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `from` are never read [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/server.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct TransferSession { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 29 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 30 | pub from: Device, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `event_tx` is never read [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/server.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct ServerState { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 41 | pub event_tx: mpsc::Sender, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_upload_query` is never used [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/server.rs:298:4 [INFO] [stdout] | [INFO] [stdout] 298 | fn parse_upload_query(query: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling unidrop-daemon v0.1.0 (/opt/rustwide/workdir/crates/unidrop-daemon) [INFO] [stderr] Compiling unidrop-cli v0.1.0 (/opt/rustwide/workdir/crates/unidrop-cli) [INFO] [stderr] Compiling unidrop-ffi v0.1.0 (/opt/rustwide/workdir/crates/unidrop-ffi) [INFO] [stdout] warning: unused import: `mpsc` [INFO] [stdout] --> crates/unidrop-engine/src/engine.rs:10:30 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::sync::{broadcast, mpsc}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> crates/unidrop-engine/src/registry.rs:8:73 [INFO] [stdout] | [INFO] [stdout] 8 | use unidrop_core::{Protocol, ProtocolFactory, ProtocolId, ProtocolInfo, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> crates/unidrop-engine/src/registry.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> crates/unidrop-engine/src/router.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use tracing::{debug, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Device` [INFO] [stdout] --> crates/unidrop-engine/src/router.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | use unidrop_core::{Device, DeviceId, Protocol, ProtocolId, Result, TransferIntent}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TransferProgress` and `TransferRequest` [INFO] [stdout] --> crates/unidrop-core/src/protocol.rs:13:62 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::{Device, DeviceId, Event, Result, TransferIntent, TransferProgress, TransferRequest}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[frb(dart_metadata=("freezed"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | #[frb(dart_metadata=("freezed"), unignore)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | #[frb(dart_metadata=("freezed"), unignore)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | #[frb(dart_metadata=("freezed"), unignore)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | #[frb(dart_metadata=("freezed"), unignore)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 78 | #[frb(dart_metadata=("freezed"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:113:1 [INFO] [stdout] | [INFO] [stdout] 113 | #[frb(sync)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:305:1 [INFO] [stdout] | [INFO] [stdout] 305 | #[frb(sync)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:312:1 [INFO] [stdout] | [INFO] [stdout] 312 | #[frb(sync)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::StreamExt` [INFO] [stdout] --> crates/unidrop-engine/src/engine.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use futures::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_id` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:217:30 [INFO] [stdout] | [INFO] [stdout] 217 | pub async fn accept_transfer(request_id: String, protocol: String) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `protocol` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:217:50 [INFO] [stdout] | [INFO] [stdout] 217 | pub async fn accept_transfer(request_id: String, protocol: String) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_protocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `engine` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | let engine = get_engine().ok_or("Engine not initialized")?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_engine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_id` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:226:30 [INFO] [stdout] | [INFO] [stdout] 226 | pub async fn reject_transfer(request_id: String, protocol: String) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `protocol` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:226:50 [INFO] [stdout] | [INFO] [stdout] 226 | pub async fn reject_transfer(request_id: String, protocol: String) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_protocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `engine` [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:227:9 [INFO] [stdout] | [INFO] [stdout] 227 | let engine = get_engine().ok_or("Engine not initialized")?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_engine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_runtime` is never used [INFO] [stdout] --> crates/unidrop-ffi/src/api.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn get_runtime() -> &'static tokio::runtime::Runtime { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DeviceId` and `ProtocolId` [INFO] [stdout] --> crates/unidrop-cli/src/main.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | use unidrop_core::{DeviceId, ProtocolId, TransferIntent}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> crates/unidrop-relay/src/main.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | use tracing::{info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dial_opts::DialOpts` [INFO] [stdout] --> crates/unidrop-protocol-p2p/examples/p2p_test.rs:11:43 [INFO] [stdout] | [INFO] [stdout] 11 | swarm::{NetworkBehaviour, SwarmEvent, dial_opts::DialOpts}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error` and `warn` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/discovery.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use tracing::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeviceId` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/discovery.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | use unidrop_core::{Device, DeviceId, DeviceType, Event, Peer, ProtocolId}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/multicast.rs:13:22 [INFO] [stdout] | [INFO] [stdout] 13 | use tracing::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ProtocolId` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/protocol.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | ProtocolId, ProtocolInfo, Result, TransferIntent, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bytes::Bytes` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/quic.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use bytes::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | let address = if let Some(relay) = relay_addr { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_CHUNK_SIZE` is never used [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/behaviour.rs:76:11 [INFO] [stdout] | [INFO] [stdout] 76 | pub const DEFAULT_CHUNK_SIZE: usize = 64 * 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Dial`, `GetLocalPeerId`, and `SendFileChunk` are never constructed [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 43 | enum SwarmCommand { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 44 | /// 连接到对端 [INFO] [stdout] 45 | Dial { addr: Multiaddr, reply: oneshot::Sender> }, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | GetLocalPeerId { reply: oneshot::Sender }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 50 | /// 发送文件数据块 [INFO] [stdout] 51 | SendFileChunk { peer_id: PeerId, chunk: FileChunk, reply: oneshot::Sender }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_id`, `path`, `size`, `chunks_sent`, and `total_chunks` are never read [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 77 | struct SendingFile { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 78 | /// 文件 ID [INFO] [stdout] 79 | file_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 80 | /// 文件路径 [INFO] [stdout] 81 | path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] 82 | /// 文件大小 [INFO] [stdout] 83 | size: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 84 | /// 已发送的块数 [INFO] [stdout] 85 | chunks_sent: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 86 | /// 总块数 [INFO] [stdout] 87 | total_chunks: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SendingFile` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_id`, `name`, `size`, `save_dir`, `chunks_received`, and `total_chunks` are never read [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 92 | struct ReceivingFile { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 93 | /// 文件 ID [INFO] [stdout] 94 | file_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 95 | /// 文件名 [INFO] [stdout] 96 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 97 | /// 文件大小 [INFO] [stdout] 98 | size: u64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 99 | /// 保存目录 [INFO] [stdout] 100 | save_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 101 | /// 已接收的块数 [INFO] [stdout] 102 | chunks_received: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 103 | /// 总块数 [INFO] [stdout] 104 | total_chunks: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReceivingFile` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peer_id`, `files`, and `current_file` are never read [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 109 | struct SendSession { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 110 | /// 目标 Peer ID [INFO] [stdout] 111 | peer_id: PeerId, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 112 | /// 待发送的文件列表 [INFO] [stdout] 113 | files: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 114 | /// 当前发送的文件索引 [INFO] [stdout] 115 | current_file: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SendSession` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peer_id`, `files`, and `save_dir` are never read [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 120 | struct ReceiveSession { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 121 | /// 来源 Peer ID [INFO] [stdout] 122 | peer_id: PeerId, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 123 | /// 待接收的文件列表 [INFO] [stdout] 124 | files: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 125 | /// 保存目录 [INFO] [stdout] 126 | save_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReceiveSession` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `relay_addr`, `send_sessions`, and `receive_sessions` are never read [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 130 | pub struct P2pProtocol { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 143 | relay_addr: RwLock>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 144 | /// 发送会话 [INFO] [stdout] 145 | send_sessions: RwLock>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 146 | /// 接收会话 [INFO] [stdout] 147 | receive_sessions: RwLock>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `emit_event` and `create_device` are never used [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/protocol.rs:201:8 [INFO] [stdout] | [INFO] [stdout] 150 | impl P2pProtocol { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 201 | fn emit_event(&self, event: Event) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | fn create_device(&self, peer_id: PeerId, name: String, relay_addr: Option<&str>) -> Device { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Transferring`, `Completed`, and `Failed` are never constructed [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/transfer.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum TransferState { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | Transferring { progress: f64 }, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 15 | /// 完成 [INFO] [stdout] 16 | Completed, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 17 | /// 失败 [INFO] [stdout] 18 | Failed { error: String }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransferState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peer_id`, `file_name`, `file_size`, `save_path`, and `bytes_transferred` are never read [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/transfer.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct TransferSession { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 26 | pub id: String, [INFO] [stdout] 27 | pub peer_id: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 28 | pub file_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 29 | pub file_size: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 30 | pub state: TransferState, [INFO] [stdout] 31 | pub save_path: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 32 | pub bytes_transferred: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransferSession` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `progress` is never used [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/transfer.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl TransferSession { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn progress(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_session`, `update_progress`, `complete`, `fail`, `remove`, and `all_sessions` are never used [INFO] [stdout] --> crates/unidrop-protocol-p2p/src/transfer.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl TransferManager { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn get_session(&self, id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn update_progress(&self, id: &str, bytes: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn complete(&self, id: &str) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn fail(&self, id: &str, error: String) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn remove(&self, id: &str) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn all_sessions(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/multicast.rs:188:45 [INFO] [stdout] | [INFO] [stdout] 188 | ... let target = SocketAddr::new(ip, port); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/quic.rs:337:41 [INFO] [stdout] | [INFO] [stdout] 337 | let (file_id, token, file_name, size) = match header { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cancel` is never used [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/client.rs:161:18 [INFO] [stdout] | [INFO] [stdout] 21 | impl HttpClient { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 161 | pub async fn cancel(&self, target: &Device, session_id: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MulticastAnnounce` is never constructed [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/models.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct MulticastAnnounce { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `from` are never read [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/server.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct TransferSession { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 29 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 30 | pub from: Device, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `event_tx` is never read [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/server.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct ServerState { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 41 | pub event_tx: mpsc::Sender, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_upload_query` is never used [INFO] [stdout] --> crates/unidrop-protocol-localsend/src/server.rs:298:4 [INFO] [stdout] | [INFO] [stdout] 298 | fn parse_upload_query(query: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 7.88s [INFO] running `Command { std: "docker" "inspect" "02b3a4d4c76e6650520bee9f530617dd7cb4a6e41faa383be08f6c1e8643de6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02b3a4d4c76e6650520bee9f530617dd7cb4a6e41faa383be08f6c1e8643de6e", kill_on_drop: false }` [INFO] [stdout] 02b3a4d4c76e6650520bee9f530617dd7cb4a6e41faa383be08f6c1e8643de6e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e86a2a9ffb42c8219d8cb4645e3c01d781cbee2aba8a13dceddad71dac847b95 [INFO] running `Command { std: "docker" "start" "-a" "e86a2a9ffb42c8219d8cb4645e3c01d781cbee2aba8a13dceddad71dac847b95", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `TransferProgress` and `TransferRequest` [INFO] [stderr] --> crates/unidrop-core/src/protocol.rs:13:62 [INFO] [stderr] | [INFO] [stderr] 13 | use crate::{Device, DeviceId, Event, Result, TransferIntent, TransferProgress, TransferRequest}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `unidrop-core` (lib) generated 1 warning (run `cargo fix --lib -p unidrop-core` to apply 1 suggestion) [INFO] [stderr] warning: unused variable: `address` [INFO] [stderr] --> crates/unidrop-protocol-p2p/src/protocol.rs:212:13 [INFO] [stderr] | [INFO] [stderr] 212 | let address = if let Some(relay) = relay_addr { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `DEFAULT_CHUNK_SIZE` is never used [INFO] [stderr] --> crates/unidrop-protocol-p2p/src/behaviour.rs:76:11 [INFO] [stderr] | [INFO] [stderr] 76 | pub const DEFAULT_CHUNK_SIZE: usize = 64 * 1024; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variants `Dial`, `GetLocalPeerId`, and `SendFileChunk` are never constructed [INFO] [stderr] --> crates/unidrop-protocol-p2p/src/protocol.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 43 | enum SwarmCommand { [INFO] [stderr] | ------------ variants in this enum [INFO] [stderr] 44 | /// 连接到对端 [INFO] [stderr] 45 | Dial { addr: Multiaddr, reply: oneshot::Sender> }, [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 49 | GetLocalPeerId { reply: oneshot::Sender }, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 50 | /// 发送文件数据块 [INFO] [stderr] 51 | SendFileChunk { peer_id: PeerId, chunk: FileChunk, reply: oneshot::Sender }, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `file_id`, `path`, `size`, `chunks_sent`, and `total_chunks` are never read [INFO] [stderr] --> crates/unidrop-protocol-p2p/src/protocol.rs:79:5 [INFO] [stderr] | [INFO] [stderr] 77 | struct SendingFile { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] 78 | /// 文件 ID [INFO] [stderr] 79 | file_id: String, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 80 | /// 文件路径 [INFO] [stderr] 81 | path: PathBuf, [INFO] [stderr] | ^^^^ [INFO] [stderr] 82 | /// 文件大小 [INFO] [stderr] 83 | size: u64, [INFO] [stderr] | ^^^^ [INFO] [stderr] 84 | /// 已发送的块数 [INFO] [stderr] 85 | chunks_sent: u64, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 86 | /// 总块数 [INFO] [stderr] 87 | total_chunks: u64, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SendingFile` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `file_id`, `name`, `size`, `save_dir`, `chunks_received`, and `total_chunks` are never read [INFO] [stderr] --> crates/unidrop-protocol-p2p/src/protocol.rs:94:5 [INFO] [stderr] | [INFO] [stderr] 92 | struct ReceivingFile { [INFO] [stderr] | ------------- fields in this struct [INFO] [stderr] 93 | /// 文件 ID [INFO] [stderr] 94 | file_id: String, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 95 | /// 文件名 [INFO] [stderr] 96 | name: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 97 | /// 文件大小 [INFO] [stderr] 98 | size: u64, [INFO] [stderr] | ^^^^ [INFO] [stderr] 99 | /// 保存目录 [INFO] [stderr] 100 | save_dir: PathBuf, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 101 | /// 已接收的块数 [INFO] [stderr] 102 | chunks_received: u64, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 103 | /// 总块数 [INFO] [stderr] 104 | total_chunks: u64, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ReceivingFile` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `peer_id`, `files`, and `current_file` are never read [INFO] [stderr] --> crates/unidrop-protocol-p2p/src/protocol.rs:111:5 [INFO] [stderr] | [INFO] [stderr] 109 | struct SendSession { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] 110 | /// 目标 Peer ID [INFO] [stderr] 111 | peer_id: PeerId, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 112 | /// 待发送的文件列表 [INFO] [stderr] 113 | files: Vec, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 114 | /// 当前发送的文件索引 [INFO] [stderr] 115 | current_file: usize, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SendSession` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `peer_id`, `files`, and `save_dir` are never read [INFO] [stderr] --> crates/unidrop-protocol-p2p/src/protocol.rs:122:5 [INFO] [stderr] | [INFO] [stderr] 120 | struct ReceiveSession { [INFO] [stderr] | -------------- fields in this struct [INFO] [stderr] 121 | /// 来源 Peer ID [INFO] [stderr] 122 | peer_id: PeerId, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 123 | /// 待接收的文件列表 [INFO] [stderr] 124 | files: Vec, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 125 | /// 保存目录 [INFO] [stderr] 126 | save_dir: PathBuf, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ReceiveSession` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `relay_addr`, `send_sessions`, and `receive_sessions` are never read [INFO] [stderr] --> crates/unidrop-protocol-p2p/src/protocol.rs:143:5 [INFO] [stderr] | [INFO] [stderr] 130 | pub struct P2pProtocol { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 143 | relay_addr: RwLock>, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 144 | /// 发送会话 [INFO] [stderr] 145 | send_sessions: RwLock>, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 146 | /// 接收会话 [INFO] [stderr] 147 | receive_sessions: RwLock>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `emit_event` and `create_device` are never used [INFO] [stderr] --> crates/unidrop-protocol-p2p/src/protocol.rs:201:8 [INFO] [stderr] | [INFO] [stderr] 150 | impl P2pProtocol { [INFO] [stderr] | ---------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 201 | fn emit_event(&self, event: Event) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 208 | fn create_device(&self, peer_id: PeerId, name: String, relay_addr: Option<&str>) -> Device { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `Transferring`, `Completed`, and `Failed` are never constructed [INFO] [stderr] --> crates/unidrop-protocol-p2p/src/transfer.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 10 | pub enum TransferState { [INFO] [stderr] | ------------- variants in this enum [INFO] [stderr] ... [INFO] [stderr] 14 | Transferring { progress: f64 }, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 15 | /// 完成 [INFO] [stderr] 16 | Completed, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 17 | /// 失败 [INFO] [stderr] 18 | Failed { error: String }, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TransferState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `peer_id`, `file_name`, `file_size`, `save_path`, and `bytes_transferred` are never read [INFO] [stderr] --> crates/unidrop-protocol-p2p/src/transfer.rs:27:9 [INFO] [stderr] | [INFO] [stderr] 25 | pub struct TransferSession { [INFO] [stderr] | --------------- fields in this struct [INFO] [stderr] 26 | pub id: String, [INFO] [stderr] 27 | pub peer_id: String, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 28 | pub file_name: String, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 29 | pub file_size: u64, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 30 | pub state: TransferState, [INFO] [stderr] 31 | pub save_path: Option, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 32 | pub bytes_transferred: u64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TransferSession` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `progress` is never used [INFO] [stderr] --> crates/unidrop-protocol-p2p/src/transfer.rs:48:12 [INFO] [stderr] | [INFO] [stderr] 35 | impl TransferSession { [INFO] [stderr] | -------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 48 | pub fn progress(&self) -> f64 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `get_session`, `update_progress`, `complete`, `fail`, `remove`, and `all_sessions` are never used [INFO] [stderr] --> crates/unidrop-protocol-p2p/src/transfer.rs:72:12 [INFO] [stderr] | [INFO] [stderr] 61 | impl TransferManager { [INFO] [stderr] | -------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 72 | pub fn get_session(&self, id: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 76 | pub fn update_progress(&self, id: &str, bytes: u64) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 85 | pub fn complete(&self, id: &str) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 91 | pub fn fail(&self, id: &str, error: String) { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 103 | pub fn remove(&self, id: &str) -> Option { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 107 | pub fn all_sessions(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `unidrop-protocol-p2p` (lib) generated 13 warnings (run `cargo fix --lib -p unidrop-protocol-p2p` to apply 1 suggestion) [INFO] [stderr] warning: unused import: `mpsc` [INFO] [stderr] --> crates/unidrop-engine/src/engine.rs:10:30 [INFO] [stderr] | [INFO] [stderr] 10 | use tokio::sync::{broadcast, mpsc}; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Result` [INFO] [stderr] --> crates/unidrop-engine/src/registry.rs:8:73 [INFO] [stderr] | [INFO] [stderr] 8 | use unidrop_core::{Protocol, ProtocolFactory, ProtocolId, ProtocolInfo, Result}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `warn` [INFO] [stderr] --> crates/unidrop-engine/src/router.rs:4:22 [INFO] [stderr] | [INFO] [stderr] 4 | use tracing::{debug, warn}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Device` [INFO] [stderr] --> crates/unidrop-engine/src/router.rs:6:20 [INFO] [stderr] | [INFO] [stderr] 6 | use unidrop_core::{Device, DeviceId, Protocol, ProtocolId, Result, TransferIntent}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `futures::StreamExt` [INFO] [stderr] --> crates/unidrop-engine/src/engine.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use futures::StreamExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::*` [INFO] [stderr] --> crates/unidrop-engine/src/registry.rs:118:9 [INFO] [stderr] | [INFO] [stderr] 118 | use super::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `dial_opts::DialOpts` [INFO] [stderr] --> crates/unidrop-protocol-p2p/examples/p2p_test.rs:11:43 [INFO] [stderr] | [INFO] [stderr] 11 | swarm::{NetworkBehaviour, SwarmEvent, dial_opts::DialOpts}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `warn` [INFO] [stderr] --> crates/unidrop-relay/src/main.rs:17:21 [INFO] [stderr] | [INFO] [stderr] 17 | use tracing::{info, warn}; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `unidrop-engine` (lib) generated 5 warnings (run `cargo fix --lib -p unidrop-engine` to apply 4 suggestions) [INFO] [stderr] warning: `unidrop-engine` (lib test) generated 6 warnings (5 duplicates) (run `cargo fix --lib -p unidrop-engine --tests` to apply 1 suggestion) [INFO] [stderr] warning: `unidrop-protocol-p2p` (example "p2p_test") generated 1 warning (run `cargo fix --example "p2p_test" -p unidrop-protocol-p2p` to apply 1 suggestion) [INFO] [stderr] warning: `unidrop-protocol-p2p` (lib test) generated 13 warnings (13 duplicates) [INFO] [stderr] warning: `unidrop-relay` (bin "unidrop-relay" test) generated 1 warning (run `cargo fix --bin "unidrop-relay" -p unidrop-relay --tests` to apply 1 suggestion) [INFO] [stderr] warning: unused imports: `error` and `warn` [INFO] [stderr] --> crates/unidrop-protocol-localsend/src/discovery.rs:9:22 [INFO] [stderr] | [INFO] [stderr] 9 | use tracing::{debug, error, info, warn}; [INFO] [stderr] | ^^^^^ ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `DeviceId` [INFO] [stderr] --> crates/unidrop-protocol-localsend/src/discovery.rs:11:28 [INFO] [stderr] | [INFO] [stderr] 11 | use unidrop_core::{Device, DeviceId, DeviceType, Event, Peer, ProtocolId}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `error` [INFO] [stderr] --> crates/unidrop-protocol-localsend/src/multicast.rs:13:22 [INFO] [stderr] | [INFO] [stderr] 13 | use tracing::{debug, error, info, warn}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ProtocolId` [INFO] [stderr] --> crates/unidrop-protocol-localsend/src/protocol.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | ProtocolId, ProtocolInfo, Result, TransferIntent, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `bytes::Bytes` [INFO] [stderr] --> crates/unidrop-protocol-localsend/src/quic.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use bytes::Bytes; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `target` [INFO] [stderr] --> crates/unidrop-protocol-localsend/src/multicast.rs:188:45 [INFO] [stderr] | [INFO] [stderr] 188 | ... let target = SocketAddr::new(ip, port); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `size` [INFO] [stderr] --> crates/unidrop-protocol-localsend/src/quic.rs:337:41 [INFO] [stderr] | [INFO] [stderr] 337 | let (file_id, token, file_name, size) = match header { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stderr] [INFO] [stderr] warning: method `cancel` is never used [INFO] [stderr] --> crates/unidrop-protocol-localsend/src/client.rs:161:18 [INFO] [stderr] | [INFO] [stderr] 21 | impl HttpClient { [INFO] [stderr] | --------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 161 | pub async fn cancel(&self, target: &Device, session_id: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: struct `MulticastAnnounce` is never constructed [INFO] [stderr] --> crates/unidrop-protocol-localsend/src/models.rs:76:12 [INFO] [stderr] | [INFO] [stderr] 76 | pub struct MulticastAnnounce { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `id` and `from` are never read [INFO] [stderr] --> crates/unidrop-protocol-localsend/src/server.rs:29:9 [INFO] [stderr] | [INFO] [stderr] 28 | pub struct TransferSession { [INFO] [stderr] | --------------- fields in this struct [INFO] [stderr] 29 | pub id: String, [INFO] [stderr] | ^^ [INFO] [stderr] 30 | pub from: Device, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `event_tx` is never read [INFO] [stderr] --> crates/unidrop-protocol-localsend/src/server.rs:41:9 [INFO] [stderr] | [INFO] [stderr] 36 | pub struct ServerState { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 41 | pub event_tx: mpsc::Sender, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `parse_upload_query` is never used [INFO] [stderr] --> crates/unidrop-protocol-localsend/src/server.rs:298:4 [INFO] [stderr] | [INFO] [stderr] 298 | fn parse_upload_query(query: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `unidrop-protocol-localsend` (lib) generated 12 warnings (run `cargo fix --lib -p unidrop-protocol-localsend` to apply 7 suggestions) [INFO] [stderr] warning: `unidrop-protocol-localsend` (lib test) generated 12 warnings (12 duplicates) [INFO] [stderr] warning: `unidrop-core` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] warning: unused imports: `DeviceId` and `ProtocolId` [INFO] [stderr] --> crates/unidrop-cli/src/main.rs:9:20 [INFO] [stderr] | [INFO] [stderr] 9 | use unidrop_core::{DeviceId, ProtocolId, TransferIntent}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `unidrop-cli` (bin "drop" test) generated 1 warning (run `cargo fix --bin "drop" -p unidrop-cli --tests` to apply 1 suggestion) [INFO] [stderr] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stderr] --> crates/unidrop-ffi/src/api.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | #[frb(dart_metadata=("freezed"))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stderr] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stderr] --> crates/unidrop-ffi/src/api.rs:31:1 [INFO] [stderr] | [INFO] [stderr] 31 | #[frb(dart_metadata=("freezed"), unignore)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stderr] --> crates/unidrop-ffi/src/api.rs:41:1 [INFO] [stderr] | [INFO] [stderr] 41 | #[frb(dart_metadata=("freezed"), unignore)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stderr] --> crates/unidrop-ffi/src/api.rs:50:1 [INFO] [stderr] | [INFO] [stderr] 50 | #[frb(dart_metadata=("freezed"), unignore)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stderr] --> crates/unidrop-ffi/src/api.rs:59:1 [INFO] [stderr] | [INFO] [stderr] 59 | #[frb(dart_metadata=("freezed"), unignore)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stderr] --> crates/unidrop-ffi/src/api.rs:78:1 [INFO] [stderr] | [INFO] [stderr] 78 | #[frb(dart_metadata=("freezed"))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stderr] --> crates/unidrop-ffi/src/api.rs:113:1 [INFO] [stderr] | [INFO] [stderr] 113 | #[frb(sync)] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stderr] --> crates/unidrop-ffi/src/api.rs:305:1 [INFO] [stderr] | [INFO] [stderr] 305 | #[frb(sync)] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `frb_expand` [INFO] [stderr] --> crates/unidrop-ffi/src/api.rs:312:1 [INFO] [stderr] | [INFO] [stderr] 312 | #[frb(sync)] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `frb` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the attribute macro `frb` may come from an old version of the `flutter_rust_bridge_macros` crate, try updating your dependency with `cargo update -p flutter_rust_bridge_macros` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the attribute macro `frb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `request_id` [INFO] [stderr] --> crates/unidrop-ffi/src/api.rs:217:30 [INFO] [stderr] | [INFO] [stderr] 217 | pub async fn accept_transfer(request_id: String, protocol: String) -> Result<(), String> { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_id` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `protocol` [INFO] [stderr] --> crates/unidrop-ffi/src/api.rs:217:50 [INFO] [stderr] | [INFO] [stderr] 217 | pub async fn accept_transfer(request_id: String, protocol: String) -> Result<(), String> { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_protocol` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `engine` [INFO] [stderr] --> crates/unidrop-ffi/src/api.rs:218:9 [INFO] [stderr] | [INFO] [stderr] 218 | let engine = get_engine().ok_or("Engine not initialized")?; [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_engine` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `request_id` [INFO] [stderr] --> crates/unidrop-ffi/src/api.rs:226:30 [INFO] [stderr] | [INFO] [stderr] 226 | pub async fn reject_transfer(request_id: String, protocol: String) -> Result<(), String> { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `protocol` [INFO] [stderr] --> crates/unidrop-ffi/src/api.rs:226:50 [INFO] [stderr] | [INFO] [stderr] 226 | pub async fn reject_transfer(request_id: String, protocol: String) -> Result<(), String> { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_protocol` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `engine` [INFO] [stderr] --> crates/unidrop-ffi/src/api.rs:227:9 [INFO] [stderr] | [INFO] [stderr] 227 | let engine = get_engine().ok_or("Engine not initialized")?; [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_engine` [INFO] [stderr] [INFO] [stderr] warning: function `get_runtime` is never used [INFO] [stderr] --> crates/unidrop-ffi/src/api.rs:94:4 [INFO] [stderr] | [INFO] [stderr] 94 | fn get_runtime() -> &'static tokio::runtime::Runtime { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `unidrop-ffi` (lib test) generated 16 warnings (run `cargo fix --lib -p unidrop-ffi --tests` to apply 6 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/drop-dba43d38580e8928) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/unidrop_core-3ec1406dd595c7a0) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/unidropd-b3819286662af63b) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/unidrop_engine-1dad6ec83e1783dc) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/unidrop_ffi-1d0572ba74f09db4) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/unidrop_protocol_localsend-a491ee09785d3250) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test cert::tests::test_generate_cert ... ok [INFO] [stdout] test quic::tests::test_quic_client_creation ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/unidrop_protocol_p2p-0cd8dfcfe205e8e5) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/unidrop_relay-27438ce69f36d2dc) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests unidrop_core [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests unidrop_engine [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests unidrop_protocol_localsend [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests unidrop_protocol_p2p [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e86a2a9ffb42c8219d8cb4645e3c01d781cbee2aba8a13dceddad71dac847b95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e86a2a9ffb42c8219d8cb4645e3c01d781cbee2aba8a13dceddad71dac847b95", kill_on_drop: false }` [INFO] [stdout] e86a2a9ffb42c8219d8cb4645e3c01d781cbee2aba8a13dceddad71dac847b95