mirror of
https://github.com/bootandy/dust.git
synced 2025-12-12 07:40:40 -08:00
@@ -44,6 +44,9 @@ sysinfo = "0.27"
|
|||||||
ctrlc = "3.4"
|
ctrlc = "3.4"
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
|
|
||||||
|
[target.'cfg(not(target_has_atomic = "64"))'.dependencies]
|
||||||
|
portable-atomic = "1.4"
|
||||||
|
|
||||||
[target.'cfg(windows)'.dependencies]
|
[target.'cfg(windows)'.dependencies]
|
||||||
winapi-util = "0.1"
|
winapi-util = "0.1"
|
||||||
filesize = "0.2.0"
|
filesize = "0.2.0"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ use std::{
|
|||||||
io::Write,
|
io::Write,
|
||||||
path::Path,
|
path::Path,
|
||||||
sync::{
|
sync::{
|
||||||
atomic::{AtomicU64, AtomicU8, AtomicUsize, Ordering},
|
atomic::{AtomicU8, AtomicUsize, Ordering},
|
||||||
mpsc::{self, RecvTimeoutError, Sender},
|
mpsc::{self, RecvTimeoutError, Sender},
|
||||||
Arc, RwLock,
|
Arc, RwLock,
|
||||||
},
|
},
|
||||||
@@ -11,6 +11,11 @@ use std::{
|
|||||||
time::Duration,
|
time::Duration,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#[cfg(not(target_has_atomic = "64"))]
|
||||||
|
use portable_atomic::AtomicU64;
|
||||||
|
#[cfg(target_has_atomic = "64")]
|
||||||
|
use std::sync::atomic::AtomicU64;
|
||||||
|
|
||||||
use crate::display::human_readable_number;
|
use crate::display::human_readable_number;
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|||||||
Reference in New Issue
Block a user