>>> synapse-bt: Building testing/synapse-bt 1.0-r3 (using abuild 3.9.0-r3) started Thu, 04 Aug 2022 14:13:42 +0000 >>> synapse-bt: Checking sanity of /home/buildozer/aports/testing/synapse-bt/APKBUILD... >>> synapse-bt: Analyzing dependencies... >>> synapse-bt: Installing for build: build-base cargo openssl-dev (1/9) Installing rust-stdlib (1.62.1-r2) (2/9) Installing libffi (3.4.2-r1) (3/9) Installing xz-libs (5.2.5-r1) (4/9) Installing libxml2 (2.9.14-r1) (5/9) Installing llvm14-libs (14.0.6-r2) (6/9) Installing rust (1.62.1-r2) (7/9) Installing cargo (1.62.1-r2) (8/9) Installing openssl-dev (3.0.5-r1) (9/9) Installing .makedepends-synapse-bt (20220804.141344) Executing busybox-1.35.0-r22.trigger OK: 1486 MiB in 104 packages >>> synapse-bt: Cleaning up srcdir >>> synapse-bt: Cleaning up pkgdir >>> synapse-bt: Fetching https://distfiles.alpinelinux.org/distfiles/edge//synapse-bt-1.0.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 171k 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 171k 100 171k 0 0 118k 0 0:00:01 0:00:01 --:--:-- 118k >>> synapse-bt: Fetching https://distfiles.alpinelinux.org/distfiles/edge//synapse-bt-1.0.tar.gz >>> synapse-bt: Checking sha512sums... synapse-bt-1.0.tar.gz: OK openssl3.patch: OK synapse-bt.initd: OK >>> synapse-bt: Unpacking /var/cache/distfiles/edge/synapse-bt-1.0.tar.gz... >>> synapse-bt: openssl3.patch patching file Cargo.lock >>> synapse-bt: Creating group synapse-bt >>> synapse-bt: Creating user synapse-bt Updating crates.io index Downloading crates ... Downloaded aho-corasick v0.6.10 Downloaded autocfg v0.1.2 Downloaded adler32 v1.0.3 Downloaded arrayvec v0.4.10 Downloaded crossbeam-deque v0.7.1 Downloaded generic-array v0.12.0 Downloaded dtoa v0.4.3 Downloaded iovec v0.1.2 Downloaded log v0.4.6 Downloaded hyper v0.12.25 Downloaded mime v0.3.13 Downloaded once_cell v1.13.0 Downloaded openssl v0.10.41 Downloaded phf_generator v0.7.24 Downloaded quick-error v1.2.2 Downloaded rand v0.5.6 Downloaded rand_hc v0.1.0 Downloaded rand_xorshift v0.1.1 Downloaded rustc-serialize v0.3.24 Downloaded siphasher v0.2.3 Downloaded smallvec v0.6.9 Downloaded parking_lot_core v0.4.0 Downloaded time v0.1.42 Downloaded winapi v0.2.8 Downloaded syn v0.15.29 Downloaded ws2_32-sys v0.2.1 Downloaded bitflags v1.0.4 Downloaded cfg-if v1.0.0 Downloaded bytes v0.4.12 Downloaded byte-tools v0.3.1 Downloaded encode_unicode v0.3.5 Downloaded csv v0.15.0 Downloaded metrohash v1.0.6 Downloaded quote v1.0.21 Downloaded rand_chacha v0.1.1 Downloaded rand_jitter v0.1.3 Downloaded scopeguard v0.3.3 Downloaded serde_derive v1.0.89 Downloaded nix v0.10.0 Downloaded textwrap v0.10.0 Downloaded tungstenite v0.6.1 Downloaded tokio v0.1.17 Downloaded base64 v0.9.3 Downloaded clap v2.32.0 Downloaded autocfg v1.1.0 Downloaded foreign-types-shared v0.1.1 Downloaded block-padding v0.1.3 Downloaded lazy_static v1.3.0 Downloaded lock_api v0.1.5 Downloaded getopts v0.2.18 Downloaded memmap v0.6.2 Downloaded proc-macro2 v1.0.43 Downloaded proc-macro2 v0.4.27 Downloaded quote v0.6.11 Downloaded rand_os v0.1.3 Downloaded semver v0.9.0 Downloaded nix v0.11.0 Downloaded strsim v0.7.0 Downloaded serde_json v1.0.39 Downloaded resolv-conf v0.6.2 Downloaded tokio-reactor v0.1.9 Downloaded unicode-ident v1.0.3 Downloaded unicode-xid v0.1.0 Downloaded try-lock v0.2.2 Downloaded vec_map v0.8.1 Downloaded void v1.0.2 Downloaded utf-8 v0.7.5 Downloaded amy v0.10.0 Downloaded futures v0.1.25 Downloaded digest v0.8.0 Downloaded idna v0.1.5 Downloaded cfg-if v0.1.7 Downloaded memchr v1.0.2 Downloaded itoa v0.4.3 Downloaded libflate v0.1.21 Downloaded num-integer v0.1.39 Downloaded openssl-probe v0.1.2 Downloaded openssl-sys v0.9.75 Downloaded phf_codegen v0.7.24 Downloaded opaque-debug v0.2.2 Downloaded regex-syntax v0.6.5 Downloaded prettytable-rs v0.7.0 Downloaded serde_urlencoded v0.5.4 Downloaded tokio-trace-core v0.1.0 Downloaded unicode-normalization v0.1.8 Downloaded tokio-sync v0.1.4 Downloaded url_serde v0.2.0 Downloaded vecio v0.1.0 Downloaded want v0.0.6 Downloaded base32 v0.3.1 Downloaded crc32fast v1.2.0 Downloaded fs_extra v1.1.0 Downloaded indexmap v1.0.2 Downloaded http v0.1.16 Downloaded matches v0.1.8 Downloaded net2 v0.2.33 Downloaded openssl-macros v0.1.0 Downloaded owning_ref v0.4.0 Downloaded phf_shared v0.7.24 Downloaded rand_core v0.3.1 Downloaded rand_pcg v0.1.2 Downloaded rand_core v0.4.0 Downloaded slab v0.4.2 Downloaded thread_local v0.3.6 Downloaded tokio-executor v0.1.6 Downloaded toml v0.4.10 Downloaded unicase v1.4.2 Downloaded unicode-width v0.1.5 Downloaded libc v0.2.50 Downloaded atty v0.2.11 Downloaded block-buffer v0.7.0 Downloaded uuid v0.7.2 Downloaded dns-parser v0.7.1 Downloaded cc v1.0.31 Downloaded futures-cpupool v0.1.8 Downloaded lazycell v1.2.1 Downloaded mime_guess v2.0.0-alpha.6 Downloaded h2 v0.1.17 Downloaded num_cpus v1.10.0 Downloaded percent-encoding v1.0.1 Downloaded num-bigint v0.2.2 Downloaded reqwest v0.9.11 Downloaded term v0.5.1 Downloaded unicode-bidi v0.3.4 Downloaded version_check v0.1.5 Downloaded ansi_term v0.11.0 Downloaded byteorder v1.3.1 Downloaded crossbeam-queue v0.1.2 Downloaded tokio-threadpool v0.1.12 Downloaded crossbeam-epoch v0.7.1 Downloaded httparse v1.3.3 Downloaded nodrop v0.1.13 Downloaded memchr v2.2.0 Downloaded rand v0.6.5 Downloaded parking_lot v0.7.1 Downloaded ryu v0.2.7 Downloaded tokio-timer v0.2.10 Downloaded regex v1.1.2 Downloaded winapi-build v0.1.1 Downloaded unicase v2.3.0 Downloaded bincode v1.1.2 Downloaded foreign-types v0.3.2 Downloaded crossbeam-utils v0.6.5 Downloaded mio v0.6.16 Downloaded phf v0.7.24 Downloaded rustc_version v0.2.3 Downloaded semver-parser v0.7.0 Downloaded hyper-tls v0.3.1 Downloaded rand_isaac v0.1.1 Downloaded safemem v0.3.0 Downloaded url v1.7.2 Downloaded fake-simd v0.1.2 Downloaded input_buffer v0.2.0 Downloaded chrono v0.4.6 Downloaded num-traits v0.2.6 Downloaded sha-1 v0.8.1 Downloaded tokio-tcp v0.1.3 Downloaded base64 v0.10.1 Downloaded string v0.1.3 Downloaded http-range v0.1.1 Downloaded pkg-config v0.3.14 Downloaded encoding_rs v0.8.17 Downloaded ucd-util v0.1.3 Downloaded serde v1.0.89 Downloaded memoffset v0.2.1 Downloaded error-chain v0.12.1 Downloaded syn v1.0.99 Downloaded utf8-ranges v1.0.2 Downloaded tokio-current-thread v0.1.5 Downloaded tokio-io v0.1.12 Downloaded typenum v1.10.0 Downloaded fnv v1.0.6 Downloaded shellexpand v1.0.0 Downloaded stable_deref_trait v1.1.1 Downloaded native-tls v0.2.2 Compiling libc v0.2.50 Compiling autocfg v0.1.2 Compiling byteorder v1.3.1 Compiling cfg-if v0.1.7 Compiling rand_core v0.4.0 Compiling version_check v0.1.5 Compiling lazy_static v1.3.0 Compiling smallvec v0.6.9 Compiling futures v0.1.25 Compiling cc v1.0.31 Compiling serde v1.0.89 Compiling semver-parser v0.7.0 Compiling proc-macro2 v1.0.43 Compiling autocfg v1.1.0 Compiling scopeguard v0.3.3 Compiling pkg-config v0.3.14 Compiling slab v0.4.2 Compiling bitflags v1.0.4 Compiling fnv v1.0.6 Compiling quote v1.0.21 Compiling unicode-ident v1.0.3 Compiling stable_deref_trait v1.1.1 Compiling itoa v0.4.3 Compiling arrayvec v0.4.10 Compiling syn v1.0.99 Compiling matches v0.1.8 Compiling proc-macro2 v0.4.27 Compiling nodrop v0.1.13 Compiling num-traits v0.2.6 Compiling httparse v1.3.3 Compiling siphasher v0.2.3 Compiling percent-encoding v1.0.1 Compiling num-integer v0.1.39 Compiling lazycell v1.2.1 Compiling typenum v1.10.0 Compiling memoffset v0.2.1 Compiling openssl v0.10.41 Compiling unicode-xid v0.1.0 Compiling foreign-types-shared v0.1.1 Compiling cfg-if v1.0.0 Compiling syn v0.15.29 Compiling memchr v2.2.0 Compiling ryu v0.2.7 Compiling once_cell v1.13.0 Compiling native-tls v0.2.2 Compiling unicode-width v0.1.5 Compiling indexmap v1.0.2 Compiling try-lock v0.2.2 Compiling winapi-build v0.1.1 Compiling crc32fast v1.2.0 Compiling openssl-probe v0.1.2 Compiling string v0.1.3 Compiling byte-tools v0.3.1 Compiling ucd-util v0.1.3 Compiling regex v1.1.2 Compiling quick-error v1.2.2 Compiling nix v0.10.0 Compiling void v1.0.2 Compiling encoding_rs v0.8.17 Compiling utf8-ranges v1.0.2 Compiling winapi v0.2.8 Compiling fake-simd v0.1.2 Compiling num-bigint v0.2.2 Compiling opaque-debug v0.2.2 Compiling dtoa v0.4.3 Compiling safemem v0.3.0 Compiling nix v0.11.0 Compiling adler32 v1.0.3 Compiling rustc-serialize v0.3.24 Compiling shellexpand v1.0.0 Compiling vec_map v0.8.1 Compiling encode_unicode v0.3.5 Compiling utf-8 v0.7.5 Compiling synapse-bencode v0.1.0 (/home/buildozer/aports/testing/synapse-bt/src/synapse-1.0/bencode) Compiling strsim v0.7.0 Compiling ansi_term v0.11.0 Compiling metrohash v1.0.6 Compiling fs_extra v1.1.0 Compiling base32 v0.3.1 Compiling http-range v0.1.1 Compiling log v0.4.6 warning: `...` range patterns are deprecated --> bencode/src/lib.rs:252:24 | 252 | Ok(d @ b'0'...b'9') => { | ^^^ help: use `..=` for an inclusive range | = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see Compiling crossbeam-utils v0.6.5 Compiling tokio-trace-core v0.1.0 Compiling thread_local v0.3.6 Compiling foreign-types v0.3.2 Compiling unicode-bidi v0.3.4 Compiling resolv-conf v0.6.2 Compiling textwrap v0.10.0 Compiling getopts v0.2.18 Compiling owning_ref v0.4.0 Compiling block-padding v0.1.3 Compiling rand_core v0.3.1 Compiling rand_jitter v0.1.3 Compiling regex-syntax v0.6.5 Compiling semver v0.9.0 Compiling rand_isaac v0.1.1 Compiling rand_hc v0.1.0 Compiling rand_xorshift v0.1.1 Compiling lock_api v0.1.5 Compiling unicode-normalization v0.1.8 Compiling ws2_32-sys v0.2.1 Compiling rustc_version v0.2.3 Compiling crossbeam-queue v0.1.2 Compiling vecio v0.1.0 Compiling unicase v1.4.2 Compiling unicase v2.3.0 Compiling error-chain v0.12.1 Compiling rand_chacha v0.1.1 Compiling rand_pcg v0.1.2 Compiling rand v0.6.5 Compiling bincode v1.1.2 Compiling phf_shared v0.7.24 Compiling aho-corasick v0.6.10 Compiling parking_lot_core v0.4.0 Compiling phf v0.7.24 Compiling base64 v0.10.1 Compiling base64 v0.9.3 Compiling dns-parser v0.7.1 Compiling term v0.5.1 Compiling libflate v0.1.21 Compiling mime v0.3.13 Compiling crossbeam-epoch v0.7.1 Compiling quote v0.6.11 Compiling rand_os v0.1.3 Compiling iovec v0.1.2 Compiling num_cpus v1.10.0 Compiling net2 v0.2.33 Compiling time v0.1.42 Compiling atty v0.2.11 Compiling memchr v1.0.2 Compiling rand v0.5.6 Compiling memmap v0.6.2 Compiling clap v2.32.0 Compiling bytes v0.4.12 Compiling openssl-sys v0.9.75 Compiling synapse-bt v0.1.0 (/home/buildozer/aports/testing/synapse-bt/src/synapse-1.0) Compiling adns v0.1.0 (/home/buildozer/aports/testing/synapse-bt/src/synapse-1.0/adns) warning: `synapse-bencode` (lib) generated 1 warning Compiling crossbeam-deque v0.7.1 Compiling mio v0.6.16 Compiling http v0.1.16 Compiling input_buffer v0.2.0 Compiling generic-array v0.12.0 Compiling idna v0.1.5 Compiling tokio-executor v0.1.6 Compiling tokio-io v0.1.12 Compiling tokio-sync v0.1.4 Compiling futures-cpupool v0.1.8 Compiling want v0.0.6 Compiling tokio-timer v0.2.10 Compiling tokio-current-thread v0.1.5 Compiling digest v0.8.0 Compiling block-buffer v0.7.0 Compiling sha-1 v0.8.1 Compiling phf_generator v0.7.24 Compiling phf_codegen v0.7.24 Compiling tokio-threadpool v0.1.12 Compiling uuid v0.7.2 Compiling mime_guess v2.0.0-alpha.6 Compiling csv v0.15.0 Compiling parking_lot v0.7.1 Compiling prettytable-rs v0.7.0 Compiling url v1.7.2 Compiling tokio-reactor v0.1.9 Compiling tokio v0.1.17 Compiling tokio-tcp v0.1.3 Compiling h2 v0.1.17 Compiling serde_derive v1.0.89 Compiling amy v0.10.0 Compiling chrono v0.4.6 Compiling serde_json v1.0.39 Compiling url_serde v0.2.0 Compiling serde_urlencoded v0.5.4 Compiling toml v0.4.10 Compiling hyper v0.12.25 Compiling openssl-macros v0.1.0 Compiling synapse-rpc v0.1.21 (/home/buildozer/aports/testing/synapse-bt/src/synapse-1.0/rpc) Compiling synapse-session v0.1.0 (/home/buildozer/aports/testing/synapse-bt/src/synapse-1.0/session) Compiling hyper-tls v0.3.1 Compiling tungstenite v0.6.1 Compiling reqwest v0.9.11 warning: `...` range patterns are deprecated --> src/torrent/peer/reader.rs:118:30 | 118 | ... 0...3 => { | ^^^ help: use `..=` for an inclusive range | = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: the item `base64` is imported redundantly --> src/torrent/bitfield.rs:115:13 | 115 | use base64; | ^^^^^^ | ::: src/main.rs:15:1 | 15 | extern crate base64; | -------------------- the item `base64` is already imported here | = note: `#[warn(unused_imports)]` on by default warning: unused import: `io_err` --> src/disk/cache.rs:13:30 | 13 | use util::{native, MHashMap, io_err}; | ^^^^^^ warning: `...` range patterns are deprecated --> src/rpc/proto/ws.rs:185:18 | 185 | o @ 3...7 => Opcode::Other(o), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: unused label --> src/rpc/mod.rs:227:9 | 227 | 'outer: loop { | ^^^^^^ | = note: `#[warn(unused_labels)]` on by default warning: unnecessary braces around block return value --> src/main.rs:83:45 | 83 | pub static ref CONFIG: config::Config = { config::Config::load() }; | ^^ ^^ | = note: `#[warn(unused_braces)]` on by default help: remove these braces | 83 - pub static ref CONFIG: config::Config = { config::Config::load() }; 83 + pub static ref CONFIG: config::Config = config::Config::load(); | warning: unnecessary braces around block return value --> src/main.rs:99:39 | 99 | pub static ref DL_TOKEN: String = { util::random_string(20) }; | ^^ ^^ | help: remove these braces | 99 - pub static ref DL_TOKEN: String = { util::random_string(20) }; 99 + pub static ref DL_TOKEN: String = util::random_string(20); | warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/buffers.rs:21:37 | 21 | data: Box::new(mem::uninitialized()), | ^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default warning: trait objects without an explicit `dyn` are deprecated --> src/control/mod.rs:77:27 | 77 | jobs: Vec>>>, | ^^^^^^^^^^^ | = note: `#[warn(bare_trait_objects)]` on by default = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | 77 - jobs: Vec>>>, 77 + jobs: Vec>>>, | warning: trait objects without an explicit `dyn` are deprecated --> src/control/mod.rs:78:28 | 78 | cjobs: Vec>>>, | ^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | 78 - cjobs: Vec>>>, 78 + cjobs: Vec>>>, | warning: variable does not need to be mutable --> src/disk/job.rs:362:21 | 362 | let mut fp = tpb.get(&from); | ----^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default warning: variable does not need to be mutable --> src/disk/job.rs:363:21 | 363 | let mut tp = tpb2.get(&to); | ----^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/disk/job.rs:389:21 | 389 | let mut temp = tpb.get(sd); | ----^^^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/disk/job.rs:393:21 | 393 | let mut actual = tpb2.get(sd); | ----^^^^^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/disk/job.rs:405:25 | 405 | let mut spb = tpb.get(sd); | ----^^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/disk/job.rs:413:25 | 413 | let mut pb = tpb2.get(path.as_ref().unwrap_or(dd)); | ----^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/disk/job.rs:426:25 | 426 | let mut pb = tpb.get(path.as_ref().unwrap_or(dd)); | ----^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/disk/job.rs:437:21 | 437 | let mut buf = tb.get(info.piece_len as usize); | ----^^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/disk/job.rs:461:21 | 461 | let mut buf = tb.get(info.piece_len as usize); | ----^^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/disk/job.rs:590:29 | 590 | let mut amnt = cmp::min(len, 16_384); | ----^^^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/control/job.rs:110:21 | 110 | let mut prev = self.peers.get_mut(id).unwrap(); | ----^^^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/rpc/reader.rs:87:29 | 87 | let mut buf = &self.msg.data[start..end]; | ----^^^ | | | help: remove this `mut` warning: field is never read: `offset` --> src/torrent/picker/mod.rs:57:5 | 57 | offset: u32, | ^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default note: `Downloading` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis --> src/torrent/picker/mod.rs:55:10 | 55 | #[derive(Clone, Debug)] | ^^^^^ ^^^^^ = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) warning: field is never read: `completed` --> src/torrent/picker/mod.rs:58:5 | 58 | completed: bool, | ^^^^^^^^^^^^^^^ | note: `Downloading` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis --> src/torrent/picker/mod.rs:55:10 | 55 | #[derive(Clone, Debug)] | ^^^^^ ^^^^^ = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) warning: field is never read: `requested` --> src/torrent/picker/mod.rs:59:5 | 59 | requested: Vec, | ^^^^^^^^^^^^^^^^^^^^^^^ | note: `Downloading` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis --> src/torrent/picker/mod.rs:55:10 | 55 | #[derive(Clone, Debug)] | ^^^^^ ^^^^^ = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) warning: unused return value of `std::mem::replace` that must be used --> src/tracker/http/mod.rs:76:17 | 76 | mem::replace(self, n); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_must_use)]` on by default = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/rpc/processor.rs:570:25 | 570 | mem::replace(r.user_data(), user_data.clone()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::result::Result::::is_ok` that must be used --> src/init.rs:139:9 | 139 | unistd::write(PIPE.1, &[0u8]).is_ok(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you intended to assert that this is ok, consider `.unwrap()` instead Compiling sycli v0.1.0 (/home/buildozer/aports/testing/synapse-bt/src/synapse-1.0/sycli) warning: `synapse-bt` (bin "synapse") generated 28 warnings Finished release [optimized + debuginfo] target(s) in 4m 02s warning: `...` range patterns are deprecated --> bencode/src/lib.rs:252:24 | 252 | Ok(d @ b'0'...b'9') => { | ^^^ help: use `..=` for an inclusive range | = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: `synapse-bencode` (lib) generated 1 warning Compiling synapse-bt v0.1.0 (/home/buildozer/aports/testing/synapse-bt/src/synapse-1.0) warning: `...` range patterns are deprecated --> src/torrent/peer/reader.rs:118:30 | 118 | ... 0...3 => { | ^^^ help: use `..=` for an inclusive range | = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: the item `base64` is imported redundantly --> src/torrent/bitfield.rs:115:13 | 115 | use base64; | ^^^^^^ | ::: src/main.rs:15:1 | 15 | extern crate base64; | -------------------- the item `base64` is already imported here | = note: `#[warn(unused_imports)]` on by default warning: unused import: `io_err` --> src/disk/cache.rs:13:30 | 13 | use util::{native, MHashMap, io_err}; | ^^^^^^ warning: `...` range patterns are deprecated --> src/rpc/proto/ws.rs:185:18 | 185 | o @ 3...7 => Opcode::Other(o), | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see warning: unused label --> src/rpc/mod.rs:227:9 | 227 | 'outer: loop { | ^^^^^^ | = note: `#[warn(unused_labels)]` on by default warning: unnecessary braces around block return value --> src/main.rs:83:45 | 83 | pub static ref CONFIG: config::Config = { config::Config::load() }; | ^^ ^^ | = note: `#[warn(unused_braces)]` on by default help: remove these braces | 83 - pub static ref CONFIG: config::Config = { config::Config::load() }; 83 + pub static ref CONFIG: config::Config = config::Config::load(); | warning: unnecessary braces around block return value --> src/main.rs:99:39 | 99 | pub static ref DL_TOKEN: String = { util::random_string(20) }; | ^^ ^^ | help: remove these braces | 99 - pub static ref DL_TOKEN: String = { util::random_string(20) }; 99 + pub static ref DL_TOKEN: String = util::random_string(20); | warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/buffers.rs:21:37 | 21 | data: Box::new(mem::uninitialized()), | ^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default warning: trait objects without an explicit `dyn` are deprecated --> src/control/mod.rs:77:27 | 77 | jobs: Vec>>>, | ^^^^^^^^^^^ | = note: `#[warn(bare_trait_objects)]` on by default = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | 77 - jobs: Vec>>>, 77 + jobs: Vec>>>, | warning: trait objects without an explicit `dyn` are deprecated --> src/control/mod.rs:78:28 | 78 | cjobs: Vec>>>, | ^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | 78 - cjobs: Vec>>>, 78 + cjobs: Vec>>>, | warning: variable does not need to be mutable --> src/disk/job.rs:362:21 | 362 | let mut fp = tpb.get(&from); | ----^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default warning: variable does not need to be mutable --> src/disk/job.rs:363:21 | 363 | let mut tp = tpb2.get(&to); | ----^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/disk/job.rs:389:21 | 389 | let mut temp = tpb.get(sd); | ----^^^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/disk/job.rs:393:21 | 393 | let mut actual = tpb2.get(sd); | ----^^^^^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/disk/job.rs:405:25 | 405 | let mut spb = tpb.get(sd); | ----^^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/disk/job.rs:413:25 | 413 | let mut pb = tpb2.get(path.as_ref().unwrap_or(dd)); | ----^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/disk/job.rs:426:25 | 426 | let mut pb = tpb.get(path.as_ref().unwrap_or(dd)); | ----^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/disk/job.rs:437:21 | 437 | let mut buf = tb.get(info.piece_len as usize); | ----^^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/disk/job.rs:461:21 | 461 | let mut buf = tb.get(info.piece_len as usize); | ----^^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/disk/job.rs:590:29 | 590 | let mut amnt = cmp::min(len, 16_384); | ----^^^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/control/job.rs:110:21 | 110 | let mut prev = self.peers.get_mut(id).unwrap(); | ----^^^^ | | | help: remove this `mut` warning: variable does not need to be mutable --> src/rpc/reader.rs:87:29 | 87 | let mut buf = &self.msg.data[start..end]; | ----^^^ | | | help: remove this `mut` warning: field is never read: `offset` --> src/torrent/picker/mod.rs:57:5 | 57 | offset: u32, | ^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default note: `Downloading` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis --> src/torrent/picker/mod.rs:55:10 | 55 | #[derive(Clone, Debug)] | ^^^^^ ^^^^^ = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) warning: field is never read: `completed` --> src/torrent/picker/mod.rs:58:5 | 58 | completed: bool, | ^^^^^^^^^^^^^^^ | note: `Downloading` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis --> src/torrent/picker/mod.rs:55:10 | 55 | #[derive(Clone, Debug)] | ^^^^^ ^^^^^ = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) warning: field is never read: `requested` --> src/torrent/picker/mod.rs:59:5 | 59 | requested: Vec, | ^^^^^^^^^^^^^^^^^^^^^^^ | note: `Downloading` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis --> src/torrent/picker/mod.rs:55:10 | 55 | #[derive(Clone, Debug)] | ^^^^^ ^^^^^ = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) warning: unused return value of `std::mem::replace` that must be used --> src/tracker/http/mod.rs:76:17 | 76 | mem::replace(self, n); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_must_use)]` on by default = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/rpc/processor.rs:570:25 | 570 | mem::replace(r.user_data(), user_data.clone()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::result::Result::::is_ok` that must be used --> src/init.rs:139:9 | 139 | unistd::write(PIPE.1, &[0u8]).is_ok(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you intended to assert that this is ok, consider `.unwrap()` instead warning: `synapse-bt` (bin "synapse") generated 28 warnings warning: use of deprecated trait `rand::distributions::IndependentSample`: use Distribution instead --> src/torrent/picker/tests.rs:5:27 | 5 | use rand::distributions::{IndependentSample, Range}; | ^^^^^^^^^^^^^^^^^ warning: use of deprecated associated function `rand::distributions::IndependentSample::ind_sample`: use Distribution instead --> src/torrent/picker/tests.rs:93:48 | 93 | peer.requests.remove(b.ind_sample(&mut rng)) | ^^^^^^^^^^ warning: unused return value of `collect` that must be used --> src/torrent/bitfield.rs:231:9 | 231 | / pf.iter() 232 | | .map(|r| { 233 | | assert!(r > 3 && r < 7); 234 | | }) 235 | | .collect::>(); | |_________________________________^ | = note: `#[warn(unused_must_use)]` on by default = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead warning: unused return value of `std::mem::replace` that must be used --> src/tracker/http/mod.rs:76:17 | 76 | mem::replace(self, n); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: `synapse-bt` (bin "synapse" test) generated 31 warnings (27 duplicates) Finished release [optimized + debuginfo] target(s) in 36.97s Running unittests src/main.rs (target/release/deps/synapse-ceb1f078de33b35c) running 53 tests test torrent::bitfield::tests::test_count ... ok test torrent::bitfield::tests::test_create ... ok test torrent::bitfield::tests::test_has ... ok test torrent::bitfield::tests::test_iter ... ok test torrent::bitfield::tests::test_set ... ok test torrent::bitfield::tests::test_usable ... ok test torrent::choker::tests::test_add_peers ... ok test torrent::choker::tests::test_update_download ... ok test torrent::choker::tests::test_update_upload ... ok test torrent::choker::tests::test_remove_peers ... ok test torrent::info::tests::correct_piece_len ... ok test torrent::info::tests::loc_iter_bounds ... ok test torrent::peer::reader::tests::test_read_bitfield ... ok test torrent::peer::reader::tests::test_read_cancel ... ok test torrent::peer::reader::tests::test_read_choke ... ok test torrent::peer::reader::tests::test_read_handshake ... ok test torrent::peer::reader::tests::test_read_have ... ok test torrent::peer::reader::tests::test_read_interested ... ok test torrent::peer::reader::tests::test_read_keepalive ... ok test torrent::peer::reader::tests::test_read_port ... ok test torrent::peer::reader::tests::test_read_request ... ok test torrent::peer::reader::tests::test_read_piece ... ok test torrent::peer::reader::tests::test_read_unchoke ... ok test torrent::peer::reader::tests::test_read_uninterested ... ok test torrent::peer::writer::tests::test_write_bitfield ... ok test torrent::peer::writer::tests::test_write_cancel ... ok test torrent::peer::writer::tests::test_write_choke ... ok test torrent::peer::tests::test_cancel ... ok test torrent::peer::writer::tests::test_write_handshake ... ok test torrent::peer::writer::tests::test_write_have ... ok test torrent::peer::writer::tests::test_write_interested ... ok test torrent::peer::writer::tests::test_write_keepalive ... ok test torrent::peer::writer::tests::test_write_piece ... ok test torrent::peer::writer::tests::test_write_request ... ok test torrent::peer::writer::tests::test_write_unchoke ... ok test torrent::picker::rarest::tests::test_available ... ok test torrent::picker::tests::test_rarest_efficiency ... ignored test torrent::picker::tests::test_seq_efficiency ... ignored test torrent::picker::rarest::tests::test_unavailable ... ok test torrent::picker::sequential::tests::test_piece_pick_order ... ok test tracker::dht::proto::tests::test_decode_id_resp ... ok test tracker::dht::proto::tests::test_encode_decode_req_annnounce ... ok test tracker::dht::proto::tests::test_encode_decode_req_find ... ok test torrent::picker::tests::test_seq_picker ... ok test tracker::dht::proto::tests::test_encode_decode_req_get ... ok test tracker::dht::proto::tests::test_encode_decode_req_ping ... ok test tracker::dht::proto::tests::test_encode_decode_resp ... ok test tracker::dht::rt::tests::test_bucket_midpoint ... ok test tracker::dht::rt::tests::test_bucket_split_close ... ok test tracker::dht::rt::tests::test_id_from_pow ... ok test tracker::dht::rt::tests::test_bucket_split_far ... ok test util::test_hash_enc ... ok test stat::tests::test_ema ... ok test result: ok. 51 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.15s Running tests/tests.rs (target/release/deps/tests-5deb485133571c29) running 1 test test it_works ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s >>> synapse-bt: Entering fakeroot... >>> synapse-bt-openrc*: Running split function openrc... >>> synapse-bt-openrc*: Preparing subpackage synapse-bt-openrc... >>> synapse-bt-openrc*: Running postcheck for synapse-bt-openrc >>> synapse-bt-cli*: Running split function cli... >>> synapse-bt-cli*: Preparing subpackage synapse-bt-cli... >>> synapse-bt-cli*: Stripping binaries >>> synapse-bt-cli*: Running postcheck for synapse-bt-cli >>> synapse-bt*: Running postcheck for synapse-bt >>> synapse-bt*: Preparing package synapse-bt... >>> synapse-bt*: Stripping binaries >>> synapse-bt*: Script found. /bin/sh added as a dependency for synapse-bt-1.0-r3.apk >>> synapse-bt*: Adding .pre-install >>> synapse-bt-cli*: Scanning shared objects >>> synapse-bt-openrc*: Scanning shared objects >>> synapse-bt*: Scanning shared objects >>> synapse-bt-cli*: Tracing dependencies... so:libc.musl-ppc64le.so.1 so:libcrypto.so.3 so:libgcc_s.so.1 so:libssl.so.3 >>> synapse-bt-cli*: Package size: 6.0 MB >>> synapse-bt-cli*: Compressing data... >>> synapse-bt-cli*: Create checksum... >>> synapse-bt-cli*: Create synapse-bt-cli-1.0-r3.apk >>> synapse-bt-openrc*: Tracing dependencies... >>> synapse-bt-openrc*: Package size: 16.0 KB >>> synapse-bt-openrc*: Compressing data... >>> synapse-bt-openrc*: Create checksum... >>> synapse-bt-openrc*: Create synapse-bt-openrc-1.0-r3.apk >>> synapse-bt*: Tracing dependencies... /bin/sh so:libc.musl-ppc64le.so.1 so:libcrypto.so.3 so:libgcc_s.so.1 so:libssl.so.3 >>> synapse-bt*: Package size: 5.6 MB >>> synapse-bt*: Compressing data... >>> synapse-bt*: Create checksum... >>> synapse-bt*: Create synapse-bt-1.0-r3.apk >>> synapse-bt: Build complete at Thu, 04 Aug 2022 14:18:32 +0000 elapsed time 0h 4m 50s >>> synapse-bt: Cleaning up srcdir >>> synapse-bt: Cleaning up pkgdir >>> synapse-bt: Uninstalling dependencies... (1/9) Purging .makedepends-synapse-bt (20220804.141344) (2/9) Purging cargo (1.62.1-r2) (3/9) Purging rust (1.62.1-r2) (4/9) Purging rust-stdlib (1.62.1-r2) (5/9) Purging openssl-dev (3.0.5-r1) (6/9) Purging llvm14-libs (14.0.6-r2) (7/9) Purging libffi (3.4.2-r1) (8/9) Purging libxml2 (2.9.14-r1) (9/9) Purging xz-libs (5.2.5-r1) Executing busybox-1.35.0-r22.trigger OK: 615 MiB in 95 packages >>> synapse-bt: Updating the testing/ppc64le repository index... >>> synapse-bt: Signing the index...