-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCargo.toml
104 lines (75 loc) · 1.9 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
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
94
95
96
97
98
99
100
101
102
103
104
[package]
name = "rs-try"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
################################################################################
# git 操作:
[[bin]]
name = "rs-git"
path = "bin/git.rs"
# 模板引擎(jinja2):
[[bin]]
name = "rs-tpl"
path = "bin/template.rs"
# 目录遍历:
[[bin]]
name = "rs-dir"
path = "bin/dir.rs"
# 文件读写:
[[bin]]
name = "rs-file"
path = "bin/file.rs"
# 进度条:
[[bin]]
name = "rs-progress"
path = "bin/progress.rs"
# 脚手架工具:
[[bin]]
name = "rs-gent"
path = "bin/gent.rs"
# sqlx: CRUD, 自带 cli + migration 工具
[[bin]]
name = "rs-sql"
path = "bin/sql.rs"
[[bin]]
name = "rs-orm"
path = "bin/orm.rs"
################################################################################
#
# TODO X: 注意, 设置成根目录, 避免导入工程就触发 build.
# 本repo 用于测试各种包用法, 属于临时代码.
#
[workspace]
members = [
"migration", # sea-orm
"entity", # sea-orm
]
################################################################################
[dependencies]
git2 = "0.15"
# template engine:
askama = "0.11"
# os directory:
walkdir = "2"
fs_extra = "1.2"
# cli progress bar:
indicatif = "0.17"
# json:
serde_json = "1.0"
log = "0.4.17" # log
pretty_env_logger = "0" # colorful log
################################################################################
# sqlx:
# tokio + rustls
sqlx = { version = "0.6", features = ["sqlite", "runtime-tokio-rustls"] }
tokio = { version = "1", features = ["full"] }
anyhow = "1.0"
futures = "0.3"
structopt = "0.3"
################################################################################
# async orm:
sea-orm = { version = "0.9", features = ["sqlx-all", "runtime-tokio-rustls", "macros", "debug-print"] }
serde = "1"
# local crates:
rs-entity = { path = "./entity" }