-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
38 lines (30 loc) · 1.2 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[package]
name = "ctp"
version = "0.1.0"
edition = "2021"
repository = "https://github.com/daedalus2022/ctp"
keywords = ["stock", "quantization", "futures", "ctp"]
categories = ["quantization"]
rust-version = "1.73.0"
readme = "README.md"
description = "ctp rust api"
license = "Apache-2.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bytes = "1" # 高效处理网络 buffer 的库
dashmap = "4" # 并发 HashMap
http = "0.2" # 我们使用 HTTP status code 所以引入这个类型库,// 不能升级版本,升级后找不到steam的next方法
prost = "0.9" # 处理 protobuf 的代码
thiserror = "1" # 错误定义和处理
tracing = "0.1" # 日志处理
ctp-sys = "0.1.3" # ctp sys binding
chrono = "0.4.19"
env_logger = "0.8.1"
# [dev-dependencies]
anyhow = "1" # 错误处理
async-prost = "0.3" # 支持把 protobuf 封装成 TCP frame // 不能升级版本,升级后找不到send方法
futures = "0.3" # 提供 Stream trait
tokio = { version = "1", features = ["rt", "rt-multi-thread", "io-util", "macros", "net" ] } # 异步网络库
tracing-subscriber = "0.3" # 日志处理
[build-dependencies]
prost-build = "0.12" # 编译 protobuf