From b525b8811c8f42d30cafe2f0457849b069735224 Mon Sep 17 00:00:00 2001 From: Further <55025025+ifurther@users.noreply.github.com> Date: Thu, 29 Sep 2022 22:59:27 +0800 Subject: [PATCH] Add support android for lib.rs --- src/lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 1e5d091..bcea994 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -21,11 +21,12 @@ //! * macOS //! * Windows //! * illumos +//! * Android use std::path::PathBuf; -#[cfg(any(target_os = "linux", target_os = "illumos"))] +#[cfg(any(target_os = "linux", target_os = "illumos", target_os = "android"))] mod linux; -#[cfg(any(target_os = "linux", target_os = "illumos"))] +#[cfg(any(target_os = "linux", target_os = "illumos", target_os = "android"))] use linux as os; #[cfg(target_os = "macos")] @@ -44,7 +45,8 @@ use bsd as os; target_os = "dragonfly", target_os = "netbsd", target_os = "macos", - target_os = "illumos" + target_os = "illumos", + target_os = "android" ))] mod nix;