Termux/Android target support for v0.60.0 (#4956)

* Add android as target os for procfs-based ps

* Turn off code for dealing with trash on platforms which are known to not support a standard trash protocol

* Update lib.rs

* Update lib.rs

Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
This commit is contained in:
Scott Boggs
2022-03-26 14:21:19 -04:00
committed by GitHub
parent 7a789d68a2
commit 71dd857926
5 changed files with 67 additions and 24 deletions

View File

@@ -15,7 +15,7 @@ path = "src/main.rs"
[dependencies]
[target.'cfg(target_os = "linux")'.dependencies]
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
procfs = "0.12.0"
users = "0.11"
which = "4"
@@ -32,4 +32,4 @@ winapi = { version = "0.3.9", features = ["tlhelp32", "fileapi", "handleapi", "i
chrono = "0.4"
libc = "0.2"
ntapi = "0.3"
once_cell = "1.0"
once_cell = "1.0"

View File

@@ -1,11 +1,11 @@
#[cfg(target_os = "linux")]
#[cfg(any(target_os = "android", target_os = "linux"))]
mod linux;
#[cfg(target_os = "macos")]
mod macos;
#[cfg(target_os = "windows")]
mod windows;
#[cfg(target_os = "linux")]
#[cfg(any(target_os = "android", target_os = "linux"))]
pub use self::linux::*;
#[cfg(target_os = "macos")]
pub use self::macos::*;