Parcourir la source

evgrd: enable build-daemon feature which adds missing deps when compiling the daemon

darkfi il y a 1 an
Parent
commit
131d18588b
2 fichiers modifiés avec 31 ajouts et 0 suppressions
  1. 28 0
      script/evgrd/Cargo.toml
  2. 3 0
      script/evgrd/Makefile

+ 28 - 0
script/evgrd/Cargo.toml

@@ -11,6 +11,7 @@ repository = "https://codeberg.org/darkrenaissance/darkfi"
 [[bin]]
 name = "evgrd"
 path = "bin/evgrd.rs"
+required-features = ["build-daemon"]
 
 [[bin]]
 name = "test"
@@ -33,6 +34,33 @@ url = "2.5.2"
 # Daemon
 smol = "2.0.1"
 
+# evgrd deps
+async-trait = {version = "0.1.81", optional = true}
+futures = {version = "0.3.30", optional = true}
+semver = {version = "1.0.23", optional = true}
+easy-parallel = {version = "3.3.1", optional = true}
+signal-hook-async-std = {version = "0.2.2", optional = true}
+signal-hook = {version = "0.3.17", optional = true}
+simplelog = {version = "0.12.2", optional = true}
+serde = {version = "1.0.209", features = ["derive"], optional = true}
+structopt = {version = "0.3.26", optional = true}
+structopt-toml = {version = "0.5.1", optional = true}
+
+[features]
+build-daemon = [
+    "darkfi/async-daemonize",
+    "async-trait",
+    "futures",
+    "semver",
+    "easy-parallel",
+    "signal-hook-async-std",
+    "signal-hook",
+    "simplelog",
+    "serde",
+    "structopt",
+    "structopt-toml",
+]
+
 #[lints]
 #workspace = true
 

+ 3 - 0
script/evgrd/Makefile

@@ -0,0 +1,3 @@
+evgrd:
+	cargo run --bin evgrd --features=build-daemon
+