Prechádzať zdrojové kódy

各模块(层级)初始化

skyfffire 2 rokov pred
rodič
commit
afd41a0e67

+ 17 - 0
README.md

@@ -0,0 +1,17 @@
+## 声明
+
+
+## 项目结构解析
+
+```
+├─ src
+│   └─ main.rs                          // 系统入口
+│
+├─ tests                                // 测试文件夹
+│
+├─ exchanges                            // 交易所层(网络层)
+│
+├─ standard                             // 标准化层(中间件)
+│
+└─ strategy                             // 策略层(主逻辑、风控等)
+```

+ 2 - 0
exchanges/.gitignore

@@ -0,0 +1,2 @@
+/target
+/.idea

+ 7 - 0
exchanges/Cargo.lock

@@ -0,0 +1,7 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "exchanges"
+version = "0.1.0"

+ 8 - 0
exchanges/Cargo.toml

@@ -0,0 +1,8 @@
+[package]
+name = "exchanges"
+version = "0.1.0"
+edition = "2021"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]

+ 3 - 0
exchanges/src/main.rs

@@ -0,0 +1,3 @@
+fn main() {
+    println!("Hello, world!");
+}

+ 2 - 0
standard/.gitignore

@@ -0,0 +1,2 @@
+/target
+/.idea

+ 7 - 0
standard/Cargo.lock

@@ -0,0 +1,7 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "standard"
+version = "0.1.0"

+ 8 - 0
standard/Cargo.toml

@@ -0,0 +1,8 @@
+[package]
+name = "standard"
+version = "0.1.0"
+edition = "2021"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]

+ 3 - 0
standard/src/main.rs

@@ -0,0 +1,3 @@
+fn main() {
+    println!("Hello, world!");
+}

+ 2 - 0
strategy/.gitignore

@@ -0,0 +1,2 @@
+/target
+/.idea

+ 7 - 0
strategy/Cargo.lock

@@ -0,0 +1,7 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "strategy"
+version = "0.1.0"

+ 8 - 0
strategy/Cargo.toml

@@ -0,0 +1,8 @@
+[package]
+name = "strategy"
+version = "0.1.0"
+edition = "2021"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]

+ 3 - 0
strategy/src/main.rs

@@ -0,0 +1,3 @@
+fn main() {
+    println!("Hello, world!");
+}