Updating crates.io index Compiling reactive-mutiny v0.1.0 (/tmp/reactive-mutiny) warning: unused imports: `Acquire`, `Release` --> src/uni/channels/ogre_mpmc_queue.rs:17:35 | 17 | use std::sync::atomic::Ordering::{Acquire, Relaxed, Release}; | ^^^^^^^ ^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: unused import: `marker::PhantomData` --> src/multi/multi_builder.rs:10:5 | 10 | marker::PhantomData, | ^^^^^^^^^^^^^^^^^^^ warning: unused import: `futures::future::BoxFuture` --> src/multi/multi_builder.rs:14:5 | 14 | use futures::future::BoxFuture; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: unused import: `uni::MultiPayload` --> src/multi/channels/ogre_mpmc_queue.rs:2:5 | 2 | uni::MultiPayload, | ^^^^^^^^^^^^^^^^^ warning: unused import: `ManuallyDrop` --> src/types.rs:12:16 | 12 | use std::mem::{ManuallyDrop, MaybeUninit}; | ^^^^^^^^^^^^ warning: unused import: `full_sync_queues::NonBlockingQueue` --> src/ogre_std/reference_counted_buffer_allocator.rs:5:9 | 5 | full_sync_queues::NonBlockingQueue, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: unused import: `AtomicU64` --> src/ogre_std/ogre_queues/atomic_queues/atomic_base.rs:6:30 | 6 | sync::atomic::{AtomicU32,AtomicU64,Ordering::Relaxed}, | ^^^^^^^^^ warning: unused import: `std::pin::Pin` --> src/ogre_std/ogre_queues/atomic_queues/atomic_base.rs:9:5 | 9 | use std::pin::Pin; | ^^^^^^^^^^^^^ warning: unused imports: `AtomicU32`, `mem::MaybeUninit` --> src/ogre_std/ogre_queues/atomic_queues/non_blocking_queue.rs:14:20 | 14 | sync::atomic::{AtomicU32,AtomicU64,Ordering::Relaxed}, | ^^^^^^^^^ 15 | mem::MaybeUninit, | ^^^^^^^^^^^^^^^^ warning: unused imports: `AtomicU32`, `mem::MaybeUninit` --> src/ogre_std/ogre_queues/atomic_queues/blocking_queue.rs:14:20 | 14 | sync::atomic::{AtomicU32,AtomicU64,Ordering::Relaxed}, | ^^^^^^^^^ 15 | mem::MaybeUninit, | ^^^^^^^^^^^^^^^^ warning: unused import: `std::future::Future` --> src/ogre_std/ogre_queues/full_sync_queues/full_sync_base.rs:7:5 | 7 | use std::future::Future; | ^^^^^^^^^^^^^^^^^^^ warning: unused import: `std::time::Duration` --> src/ogre_std/ogre_queues/full_sync_queues/full_sync_base.rs:12:5 | 12 | use std::time::Duration; | ^^^^^^^^^^^^^^^^^^^ warning: unused imports: `AtomicU32`, `mem::MaybeUninit` --> src/ogre_std/ogre_queues/full_sync_queues/non_blocking_queue.rs:12:20 | 12 | sync::atomic::{AtomicU32,AtomicU64,Ordering::Relaxed}, | ^^^^^^^^^ 13 | mem::MaybeUninit, | ^^^^^^^^^^^^^^^^ warning: unused imports: `AtomicU32`, `mem::MaybeUninit` --> src/ogre_std/ogre_queues/async_queues/non_blocking_queue.rs:12:20 | 12 | sync::atomic::{AtomicU32,AtomicU64,Ordering::Relaxed}, | ^^^^^^^^^ 13 | mem::MaybeUninit, | ^^^^^^^^^^^^^^^^ warning: unused import: `super::*` --> src/uni/channels/tokio_mpsc.rs:118:9 | 118 | use super::*; | ^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: unused import: `super::*` --> src/uni/channels/atomic_mpmc_queue.rs:214:9 | 214 | use super::*; | ^^^^^^^^ warning: unused imports: `Acquire`, `Release` --> src/uni/channels/ogre_mpmc_queue.rs:17:35 | 17 | use std::sync::atomic::Ordering::{Acquire, Relaxed, Release}; | ^^^^^^^ ^^^^^^^ warning: unused import: `super::*` --> src/uni/channels/ogre_mpmc_queue.rs:257:9 | 257 | use super::*; | ^^^^^^^^ warning: unused import: `std::io::Write` --> src/ogre_std/ogre_queues/atomic_queues/blocking_queue.rs:333:9 | 333 | use std::io::Write; | ^^^^^^^^^^^^^^ warning: unused import: `std::time::SystemTime` --> src/ogre_std/ogre_queues/atomic_queues/blocking_queue.rs:334:9 | 334 | use std::time::SystemTime; | ^^^^^^^^^^^^^^^^^^^^^ warning: unused import: `Duration` --> src/ogre_std/ogre_queues/blocking_queue.rs:350:32 | 350 | use std::time::{SystemTime,Duration}; | ^^^^^^^^ warning: unused import: `OgreQueue` --> src/ogre_std/ogre_queues/async_queues/non_blocking_queue.rs:5:9 | 5 | OgreQueue, | ^^^^^^^^^ warning: unused import: `super::super::OgreQueue` --> src/ogre_std/ogre_queues/atomic_queues/atomic_base.rs:3:5 | 3 | use super::super::OgreQueue; | ^^^^^^^^^^^^^^^^^^^^^^^ warning: unused variable: `empty_guard_ref` --> src/ogre_std/ogre_queues/atomic_queues/blocking_queue.rs:264:39 | 264 | fn set_empty_guard_ref(&mut self, empty_guard_ref: &'_ RawMutex) { | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_empty_guard_ref` | = note: `#[warn(unused_variables)]` on by default warning: unused variable: `buffer` --> src/ogre_std/ogre_queues/full_sync_queues/full_sync_base.rs:172:56 | 172 | let Self {full_guard, concurrency_guard, tail, buffer, head, empty_guard} = self; | ^^^^^^ help: try ignoring the field: `buffer: _` warning: struct `TokioMPSC` is never constructed --> src/uni/channels/tokio_mpsc.rs:15:12 | 15 | pub struct TokioMPSC { | ^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default warning: associated function `new` is never used --> src/uni/channels/tokio_mpsc.rs:23:12 | 23 | pub fn new() -> Arc>> { | ^^^ warning: associated function `consumer_stream` is never used --> src/uni/channels/tokio_mpsc.rs:31:12 | 31 | pub fn consumer_stream(self: &Arc>>) -> Option> { | ^^^^^^^^^^^^^^^ warning: associated function `send` is never used --> src/uni/channels/tokio_mpsc.rs:58:18 | 58 | pub async fn send(&self, item: ItemType) { | ^^^^ warning: associated function `try_send` is never used --> src/uni/channels/tokio_mpsc.rs:65:12 | 65 | pub fn try_send(&self, item: ItemType) -> bool { | ^^^^^^^^ warning: associated function `zero_copy_try_send` is never used --> src/uni/channels/tokio_mpsc.rs:75:15 | 75 | unsafe fn zero_copy_try_send(&self, _item_builder: impl FnOnce(&mut ItemType)) { | ^^^^^^^^^^^^^^^^^^ warning: associated function `flush` is never used --> src/uni/channels/tokio_mpsc.rs:79:18 | 79 | pub async fn flush(&self, timeout: Duration) -> u32 { | ^^^^^ warning: associated function `end_all_streams` is never used --> src/uni/channels/tokio_mpsc.rs:99:18 | 99 | pub async fn end_all_streams(&self, timeout: Duration) -> u32 { | ^^^^^^^^^^^^^^^ warning: associated function `pending_items_count` is never used --> src/uni/channels/tokio_mpsc.rs:108:12 | 108 | pub fn pending_items_count(&self) -> u32 { | ^^^^^^^^^^^^^^^^^^^ warning: associated function `consumer_stream` is never used --> src/uni/channels/atomic_mpmc_queue.rs:46:12 | 46 | pub fn consumer_stream(self: &Arc>>) -> Option> { | ^^^^^^^^^^^^^^^ warning: associated function `wake_all_streams` is never used --> src/uni/channels/atomic_mpmc_queue.rs:116:8 | 116 | fn wake_all_streams(&self) { | ^^^^^^^^^^^^^^^^ warning: associated function `new` is never used --> src/uni/channels/atomic_mpmc_queue.rs:146:12 | 146 | pub fn new() -> Arc>> { | ^^^ warning: associated function `flush` is never used --> src/uni/channels/atomic_mpmc_queue.rs:171:18 | 171 | pub async fn flush(&self, timeout: Duration) -> u32 { | ^^^^^ warning: associated function `end_all_streams` is never used --> src/uni/channels/atomic_mpmc_queue.rs:192:18 | 192 | pub async fn end_all_streams(&self, timeout: Duration) -> u32 { | ^^^^^^^^^^^^^^^ warning: associated function `pending_items_count` is never used --> src/uni/channels/atomic_mpmc_queue.rs:204:12 | 204 | pub fn pending_items_count(&self) -> u32 { | ^^^^^^^^^^^^^^^^^^^ warning: associated function `reset` is never used --> src/incremental_averages.rs:82:8 | 82 | fn reset(&self, weight: u32) { | ^^^^^ warning: associated function `split` is never used --> src/incremental_averages.rs:87:8 | 87 | fn split(&self) -> &IncrementalAveragePair32 { | ^^^^^ warning: associated function `atomic` is never used --> src/incremental_averages.rs:92:8 | 92 | fn atomic(&self) -> &AtomicU64 { | ^^^^^^ warning: type alias `ReferenceCountedAllocator` is never used --> src/ogre_std/reference_counted_buffer_allocator.rs:52:10 | 52 | pub type ReferenceCountedAllocator = ReferenceCountedNonBlockingCustomStackAllocator src/ogre_std/reference_counted_buffer_allocator.rs:55:10 | 55 | pub type ReferenceCountedBlockingAllocator = ReferenceCountedNonBlockingCustomStackAllocator src/ogre_std/ogre_queues/full_sync_queues/full_sync_base.rs:19:5 | 15 | pub struct FullSyncBase src/ogre_std/ogre_queues/full_sync_queues/full_sync_base.rs:171:12 | 171 | pub fn debug_info(&self) -> String { | ^^^^^^^^^^ warning: struct `AsyncBase` is never constructed --> src/ogre_std/ogre_queues/async_queues/async_base.rs:12:12 | 12 | pub struct AsyncBase src/ogre_std/ogre_queues/async_queues/async_base.rs:134:10 | 134 | async fn lock(raw_mutex: &AtomicBool) { | ^^^^ warning: function `unlock` is never used --> src/ogre_std/ogre_queues/async_queues/async_base.rs:163:4 | 163 | fn unlock(raw_mutex: &AtomicBool) { | ^^^^^^ warning: associated function `new` is never used --> src/ogre_std/ogre_queues/async_queues/async_base.rs:39:12 | 39 | pub fn new() -> Self { | ^^^ warning: associated function `enqueue` is never used --> src/ogre_std/ogre_queues/async_queues/async_base.rs:51:18 | 51 | pub async fn enqueue src/ogre_std/ogre_queues/async_queues/async_base.rs:88:18 | 88 | pub async fn dequeue ReportEmptyFnFuture, | ^^^^^^^ warning: associated function `len` is never used --> src/ogre_std/ogre_queues/async_queues/async_base.rs:121:12 | 121 | pub fn len(&self) -> usize { | ^^^ warning: associated function `buffer_size` is never used --> src/ogre_std/ogre_queues/async_queues/async_base.rs:125:12 | 125 | pub fn buffer_size(&self) -> usize { | ^^^^^^^^^^^ warning: struct `NonBlockingQueue` is never constructed --> src/ogre_std/ogre_queues/async_queues/non_blocking_queue.rs:20:12 | 20 | pub struct NonBlockingQueue src/ogre_std/ogre_queues/async_queues/non_blocking_queue.rs:42:8 | 42 | fn new>(queue_name: IntoString) -> Pin> where Self: Sized { | ^^^ warning: associated function `enqueue` is never used --> src/ogre_std/ogre_queues/async_queues/non_blocking_queue.rs:54:18 | 54 | pub async fn enqueue(&self, element: SlotType) -> bool { | ^^^^^^^ warning: associated function `dequeue` is never used --> src/ogre_std/ogre_queues/async_queues/non_blocking_queue.rs:77:18 | 77 | pub async fn dequeue(&self) -> Option { | ^^^^^^^ warning: associated function `len` is never used --> src/ogre_std/ogre_queues/async_queues/non_blocking_queue.rs:97:12 | 97 | pub fn len(&self) -> usize { | ^^^ warning: associated function `buffer_size` is never used --> src/ogre_std/ogre_queues/async_queues/non_blocking_queue.rs:101:12 | 101 | pub fn buffer_size(&self) -> usize { | ^^^^^^^^^^^ warning: associated function `debug_enabled` is never used --> src/ogre_std/ogre_queues/async_queues/non_blocking_queue.rs:105:12 | 105 | pub fn debug_enabled(&self) -> bool { | ^^^^^^^^^^^^^ warning: associated function `metrics_enabled` is never used --> src/ogre_std/ogre_queues/async_queues/non_blocking_queue.rs:109:12 | 109 | pub fn metrics_enabled(&self) -> bool { | ^^^^^^^^^^^^^^^ warning: associated function `queue_name` is never used --> src/ogre_std/ogre_queues/async_queues/non_blocking_queue.rs:113:12 | 113 | pub fn queue_name(&self) -> &str { | ^^^^^^^^^^ warning: associated function `implementation_name` is never used --> src/ogre_std/ogre_queues/async_queues/non_blocking_queue.rs:117:12 | 117 | pub fn implementation_name(&self) -> &str { | ^^^^^^^^^^^^^^^^^^^ warning: associated function `interrupt` is never used --> src/ogre_std/ogre_queues/async_queues/non_blocking_queue.rs:121:8 | 121 | fn interrupt(&self) { | ^^^^^^^^^ warning: associated function `debug` is never used --> src/ogre_std/ogre_queues/blocking_queue.rs:337:12 | 337 | pub fn debug(&self) { | ^^^^^ warning: function `all_in_and_out_benchmark` is never used --> src/ogre_std/benchmarks.rs:21:8 | 21 | pub fn all_in_and_out_benchmark(container: &(dyn BenchmarkableContainer + Sync), threads: usize, deadline: Duration) -> f64 { | ^^^^^^^^^^^^^^^^^^^^^^^^ warning: function `single_in_and_out_benchmark` is never used --> src/ogre_std/benchmarks.rs:49:8 | 49 | pub fn single_in_and_out_benchmark(container: &(dyn BenchmarkableContainer + Sync), threads: usize, deadline: Duration) -> f64 { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: function `single_producer_multiple_consumers_benchmark` is never used --> src/ogre_std/benchmarks.rs:75:8 | 75 | pub fn single_producer_multiple_consumers_benchmark(container: &(dyn BenchmarkableContainer + Sync), threads: usize, deadline: Dur... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: function `multiple_producers_single_consumer_benchmark` is never used --> src/ogre_std/benchmarks.rs:128:8 | 128 | pub fn multiple_producers_single_consumer_benchmark(container: &(dyn BenchmarkableContainer + Sync), threads: usize, deadline: Dur... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: function `keep_looping_or_compute_operations_per_second` is never used --> src/ogre_std/benchmarks.rs:185:4 | 185 | fn keep_looping_or_compute_operations_per_second(benchmark_name: String, start_time: &SystemTime, iterations: &mut u64, deadline: &Durati... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: function `multi_threaded_iterate` is never used --> src/ogre_std/benchmarks.rs:201:8 | 201 | pub fn multi_threaded_iterate(start: usize, finish: usize, threads: usize, callback: impl Fn(u32) -> () + std::marker::Sync) { | ^^^^^^^^^^^^^^^^^^^^^^ warning: function `iterate` is never used --> src/ogre_std/benchmarks.rs:214:4 | 214 | fn iterate(start: usize, finish: usize, step: usize, callback: impl Fn(u32) -> () + std::marker::Sync) { | ^^^^^^^ warning: associated constant `METRICS` is never used --> src/ogre_std/container_instruments.rs:19:11 | 19 | const METRICS: usize = 1; | ^^^^^^^ warning: associated constant `METRICS_DIAGNOSTICS` is never used --> src/ogre_std/container_instruments.rs:20:11 | 20 | const METRICS_DIAGNOSTICS: usize = 2; | ^^^^^^^^^^^^^^^^^^^ warning: associated constant `TRACING` is never used --> src/ogre_std/container_instruments.rs:21:11 | 21 | const TRACING: usize = 4; | ^^^^^^^ warning: associated function `into` is never used --> src/ogre_std/container_instruments.rs:43:18 | 43 | pub const fn into(self) -> usize { | ^^^^ warning: dereferencing a null pointer --> src/ogre_std/ogre_queues/blocking_queue.rs:205:45 | 205 | ... empty_guard_ref: unsafe { &*std::ptr::null() as &RawMutex }, // TODO may changing it by mem init with zeroes solve the war... | ^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed | = note: `#[warn(deref_nullptr)]` on by default warning: method `metricsDiagnostics` should have a snake case name --> src/ogre_std/container_instruments.rs:74:18 | 74 | pub const fn metricsDiagnostics(self) -> bool { | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `metrics_diagnostics` | = note: `#[warn(non_snake_case)]` on by default warning: `reactive-mutiny` (lib) generated 73 warnings warning: unused variable: `i` --> src/ogre_std/ogre_queues/blocking_queue.rs:412:40 | 412 | assert_non_blocking(|| for i in 0..QUEUE_SIZE { | ^ help: if this is intentional, prefix it with an underscore: `_i` warning: unused variable: `result` --> src/ogre_std/ogre_queues/blocking_queue.rs:439:17 | 439 | let result = op(); | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`