소스 검색

各模块(层级)初始化

skyfffire 2 년 전
부모
커밋
afd41a0e67
13개의 변경된 파일77개의 추가작업 그리고 0개의 파일을 삭제
  1. 17 0
      README.md
  2. 2 0
      exchanges/.gitignore
  3. 7 0
      exchanges/Cargo.lock
  4. 8 0
      exchanges/Cargo.toml
  5. 3 0
      exchanges/src/main.rs
  6. 2 0
      standard/.gitignore
  7. 7 0
      standard/Cargo.lock
  8. 8 0
      standard/Cargo.toml
  9. 3 0
      standard/src/main.rs
  10. 2 0
      strategy/.gitignore
  11. 7 0
      strategy/Cargo.lock
  12. 8 0
      strategy/Cargo.toml
  13. 3 0
      strategy/src/main.rs

+ 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!");
+}