From 532f4ceba2bddb1c84d2e0bdd69808a3ebd5ca4a Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 19 Apr 2026 00:31:05 +0800 Subject: Make async an optional feature --- mingling_core/src/asset/chain.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mingling_core/src/asset/chain.rs') diff --git a/mingling_core/src/asset/chain.rs b/mingling_core/src/asset/chain.rs index 70eda8c..c41b716 100644 --- a/mingling_core/src/asset/chain.rs +++ b/mingling_core/src/asset/chain.rs @@ -14,5 +14,9 @@ where type Previous; /// Process the previous value and return a future that resolves to a [`ChainProcess`](./enum.ChainProcess.html) + #[cfg(feature = "async")] fn proc(p: Self::Previous) -> impl Future> + Send; + + #[cfg(not(feature = "async"))] + fn proc(p: Self::Previous) -> ChainProcess; } -- cgit