From 40b3840578653c9e0f029aeb151639dc39dd626e Mon Sep 17 00:00:00 2001 From: ian Date: Tue, 3 Dec 2024 16:05:56 +0800 Subject: [PATCH] chore: add missing tokio::process for notify --- notify/Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/notify/Cargo.toml b/notify/Cargo.toml index 49a3ff5d81..013ea4c282 100644 --- a/notify/Cargo.toml +++ b/notify/Cargo.toml @@ -10,10 +10,15 @@ repository = "https://github.com/nervosnetwork/ckb" [dependencies] ckb-logger = { path = "../util/logger", version = "= 0.120.0-pre" } -ckb-app-config = { path = "../util/app-config", version = "= 0.120.0-pre" } +ckb-app-config = { path = "../util/app-config", version = "= 0.120.0-pre" } ckb-types = { path = "../util/types", version = "= 0.120.0-pre" } ckb-stop-handler = { path = "../util/stop-handler", version = "= 0.120.0-pre" } ckb-async-runtime = { path = "../util/runtime", version = "= 0.120.0-pre" } + +[target.'cfg(target_family = "wasm")'.dependencies] tokio = { version = "1", features = ["sync"] } +[target.'cfg(not(target_family = "wasm"))'.dependencies] +tokio = { version = "1", features = ["sync", "process"] } + [dev-dependencies]