diff --git a/Cargo.toml b/Cargo.toml index 8db7a4c..3071c68 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;