소스 검색

Add bin/map to workspace.

parazyd 4 년 전
부모
커밋
0b87f2f0a9
5개의 변경된 파일36개의 추가작업 그리고 11개의 파일을 삭제
  1. 1 0
      .gitignore
  2. 27 0
      Cargo.lock
  3. 1 1
      Cargo.toml
  4. 6 9
      bin/map/Cargo.toml
  5. 1 1
      bin/map/src/list.rs

+ 1 - 0
.gitignore

@@ -9,3 +9,4 @@ target/*
 /cashierd
 /gatewayd
 /ircd
+/map

+ 27 - 0
Cargo.lock

@@ -827,6 +827,12 @@ dependencies = [
  "tungstenite",
 ]
 
+[[package]]
+name = "cassowary"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df8670b8c7b9dae1793364eafadf7239c40d669904660c5960d74cfd80b46a53"
+
 [[package]]
 name = "cc"
 version = "1.0.72"
@@ -2810,6 +2816,14 @@ dependencies = [
  "value-bag",
 ]
 
+[[package]]
+name = "map"
+version = "0.3.0"
+dependencies = [
+ "termion",
+ "tui",
+]
+
 [[package]]
 name = "matches"
 version = "0.1.9"
@@ -5495,6 +5509,19 @@ version = "0.12.3"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "7ae2f58a822f08abdaf668897e96a5656fe72f5a9ce66422423e8849384872e6"
 
+[[package]]
+name = "tui"
+version = "0.16.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "39c8ce4e27049eed97cfa363a5048b09d995e209994634a0efc26a14ab6c0c23"
+dependencies = [
+ "bitflags",
+ "cassowary",
+ "termion",
+ "unicode-segmentation",
+ "unicode-width",
+]
+
 [[package]]
 name = "tungstenite"
 version = "0.16.0"

+ 1 - 1
Cargo.toml

@@ -18,7 +18,7 @@ members = [
     "bin/drk",
     "bin/gatewayd",
     "bin/ircd",
-    #"bin/map",
+    "bin/map",
 ]
 
 [dependencies]

+ 6 - 9
bin/map/Cargo.toml

@@ -3,14 +3,11 @@ name = "map"
 version = "0.3.0"
 edition = "2021"
 
+# [dependencies.darkfi]
+# path = "../../"
+# features = ["tui"]
+
 [dependencies]
-#darkfi = { path = "../../" , features = ['tui']}
-smol = "1.2.5"
+# Misc
+termion = "1.5.6"
 tui = "0.16.0"
-termion = "1.5"
-async-executor = "1.4.1"
-easy-parallel = "3.1.0"
-async-std = "1.10.0"
-async-channel = "1.6.1"
-num_cpus = "1.13.0"
-rand = "0.8.4"

+ 1 - 1
bin/map/src/list.rs

@@ -11,7 +11,7 @@ pub struct NodeExtra {
 impl NodeExtra {
     pub fn new() -> NodeExtra {
         let mut index = 0;
-        NodeExtra { index, noise: String::new()}
+        NodeExtra { index, noise: String::new() }
     }
 }
 #[derive(Clone)]