-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCargo.toml
More file actions
93 lines (83 loc) · 2.28 KB
/
Cargo.toml
File metadata and controls
93 lines (83 loc) · 2.28 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[package]
name = "rust-shop"
version = "0.1.0"
edition = "2021"
[[bin]]
name ="rust_shop"
path ="src/rust_shop.rs"
[[bin]]
name ="rust_shop_admin"
path ="src/rust_shop_admin.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
hyper = { version = "0.14.20", features = ["full"] }
hyper-tls = "0.5.0"
async-trait = "0.1"
route-recognizer = "0.3.1"
#json
serde = "1.0"
serde_json = "1.0"
serde_urlencoded = "0.7.1"
serde_yaml = "0.9.13"
schemars = "0.8.10"
lazy_static = "1.4.0"
#form
form_urlencoded = "1.1.0"
#jwt
jsonwebtoken = "8.1.1"
#diesel = { version = "2.0.0", features = ["mysql"] }
#dotenvy = "0.15"
#文件上传解析
multer = "2.0.4"
uuid = { version = "1.1.2", features = [
"v4", # Lets you generate random UUIDs
"fast-rng", # Use a faster (but still sufficiently random) RNG
"macro-diagnostics", # Enable better diagnostics for compile-time UUIDs
] }
#orm
sqlx = { version = "0.6", features = ["runtime-tokio-rustls", "mysql", "chrono","bigdecimal"] }
#sqlx-crud = {version = "0.3.2",features = ["runtime-tokio-rustls"]}
tokio = { version = "1.21.1", features = ["full"] }
log4rs = "1.1.1"
log = "0.4.17"
#日期
chrono = { version = "0.4", features = ["serde"] }
time = "0.3.14"
criterion = "0.4.0"
#静态文件
hyper-staticfile = { version = "0.9.1", path = "hyper-staticfile" }
rust-shop-macro = { version = "0.1", path = "rust-shop-macro" }
rust-shop-core = { version = "0.1", path = "rust-shop-core" }
bytes = "1.3.0"
futures-util = "0.3.25"
rs-snowflake = "0.6.0"
anyhow = "1.0.65"
thiserror = "1.0.37"
ahash = "0.8.0"
bcrypt = "0.13.0"
uri-pattern-matcher = "0.1.4"
once_cell = "1.16.0"
syn = { version = "1.0", features = ["full", "extra-traits"] }
#搜索引擎服务
sonic-server = "1.3.5"
#搜索客户端
sonic-channel = "1.1.0"
#验证
validator = {version = "0.16.0",features = ["derive"]}
validator_types = "0.16.0"
validator_derive = "0.16.0"
Inflector = "0.11"
bigdecimal = {version ="0.3.0",features = ["serde"]}
[dev-dependencies]
tokio-test = "*"
[workspace]
members = [
"hyper-staticfile",
"rust-shop-macro",
"rust-shop-core",
]
#rust版本:stable(稳定版),beta(测试版),nightly(每日构建版)
#切换到特定版本
#rustup default 版本单词
#如:
#rustup default nightly