parazyd 4 лет назад
Родитель
Сommit
5dba6f6368
2 измененных файлов с 6 добавлено и 4 удалено
  1. 3 1
      Cargo.toml
  2. 3 3
      src/lib.rs

+ 3 - 1
Cargo.toml

@@ -18,6 +18,7 @@ thiserror = "1.0.30"
 
 # async-runtime
 async-std = {version = "1.10.0", optional = true}
+async-channel = {version = "1.6.1", optional = true}
 async-executor = {version = "1.4.1", optional = true}
 async-trait = {version = "0.1.52", optional = true}
 futures = {version = "0.3.19", optional = true}
@@ -54,13 +55,14 @@ features = ["zstd"]
 optional = true
 
 [features]
-async-runtime = ["async-std", "async-executor", "async-trait", "futures", "smol"]
+async-runtime = ["async-std", "async-channel", "async-executor", "async-trait", "futures", "smol"]
 async-net = ["async-native-tls", "native-tls"]
 websockets = ["tungstenite", "async-tungstenite"]
 util = ["async-runtime", "hex", "serde", "serde_json", "dirs", "num-bigint"]
 rpc = ["async-net", "util", "websockets", "url"]
 chain = ["rocksdb", "util"]
 tui = ["async-std", "termion"]
+system = ["async-runtime"]
 
 # [dependencies.halo2_gadgets]
 # git = "https://github.com/parazyd/halo2_gadgets.git"

+ 3 - 3
src/lib.rs

@@ -19,15 +19,15 @@ pub mod chain;
 #[cfg(feature = "net")]
 pub mod net;
 
-#[cfg(feature = "system")]
-pub mod system;
-
 #[cfg(feature = "node")]
 pub mod node;
 
 #[cfg(feature = "node")]
 pub mod tx;
 
+#[cfg(feature = "system")]
+pub mod system;
+
 #[cfg(feature = "tui")]
 pub mod tui;