-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
43 lines (37 loc) · 1.36 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
38
39
40
41
42
43
[package]
name = "ilearn"
version = "0.1.0"
edition = "2021"
default-run = "ilearn"
[[bin]]
name = "server"
path = "bin/server.rs"
[[example]]
name = "redis-server-test"
path = "examples/redis-server-test.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
num = "0.4.0"
rand = "0.8.5"
num-traits = "0.2.18"
num-derive = "0.4.2"
num_enum = "0.7.2"
thread_local = "1.1.8"
tokio = { version = "1.38.0", features = ["full"] }
lazy_static = "1.4.0"
thiserror = "1.0.61"
anyhow = "1.0.86"
error-chain = "0.12.4"
futures = "0.3"
mini-redis = "0.4.1"
bytes = "1.6.1"
[dependencies.async-std]
version = "1.6"
features = ["attributes"]
# futures = "0.3":在 [dependencies] 部分中定义一个标准依赖项,表示项目依赖于 futures 库的 0.3 版本范围。Cargo 会尝试获取兼容 0.3.x 版本的最新版本。
#
# [dependencies.async-std]:这是一种扩展语法,用于为依赖项指定更多的属性。
# - version = "1.6":指定 async-std 库的版本为 1.6。Cargo 会尝试获取这个确切的版本。
# - features = ["attributes"]:为 async-std 启用名为 attributes 的特性。特性是 Rust 的依赖管理系统中的一个功能,允许用户启用或禁用库的某些可选部分。
#
# [dependencies.async-std] 也可以改写成 `async-std = { version = "", features = {} }`