From 5d51de0bd50a55a2d45cd759236fc84d72b0123f Mon Sep 17 00:00:00 2001 From: imarkov Date: Wed, 22 Sep 2021 14:02:58 +0300 Subject: [PATCH] Support for the ESP-IDF framework --- Cargo.toml | 4 +++- src/lib.rs | 9 +++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f860ac6..21fb8c5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,10 +21,12 @@ async-fs = "1.3.0" async-io = "1.12.0" async-lock = "2.6.0" async-net = "1.4.3" -async-process = "1.6.0" blocking = "1.3.0" futures-lite = "1.11.0" +[target.'cfg(not(target_os = "espidf"))'.dependencies] +async-process = "1.6.0" + [dev-dependencies] anyhow = "1" async-dup = "1" diff --git a/src/lib.rs b/src/lib.rs index 3513eb3..3aa58f0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -52,10 +52,11 @@ pub use { }; #[doc(inline)] -pub use { - async_channel as channel, async_fs as fs, async_lock as lock, async_net as net, - async_process as process, -}; +pub use {async_channel as channel, async_fs as fs, async_lock as lock, async_net as net}; + +#[cfg(not(target_os = "espidf"))] +#[doc(inline)] +pub use async_process as process; mod spawn; pub use spawn::spawn;