-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.toml
67 lines (55 loc) · 1.59 KB
/
Makefile.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
[env]
RUST_BACKTRACE = "full"
[tasks.clean]
description = "Clean target directory"
command = "cargo"
args = ["clean"]
[tasks.build]
description = "Run cargo build"
command = "cargo"
args = ["build", "--workspace", "@@split(FEATURES_FLAG, )"]
[tasks.fmt]
condition = { channels = ["nightly"] }
description = "Check whether rust code is properly formatted or not"
command = "cargo"
args = ["fmt", "--", "--check"]
[tasks.clippy]
condition = { channels = ["nightly"] }
description = "Check if clippy return any warnings or error"
command = "cargo"
args = [
"clippy",
"--workspace",
"@@split(FEATURES_FLAG, )",
"--",
"-D",
"warnings",
]
[tasks.test]
description = "Run test"
command = "cargo"
args = ["test", "--workspace", "@@split(FEATURES_FLAG, )"]
[tasks.doc]
description = "Run doc"
command = "cargo"
args = ["doc", "--workspace", "--no-deps", "@@split(FEATURES_FLAG, )"]
[tasks.rustdoc]
description = "Run rustdoc"
command = "cargo"
args = ["rustdoc", "--all-features", "--", "--cfg", "docsrs"]
[tasks.local]
dependencies = ["fmt", "build", "clippy", "doc", "test"]
[tasks.full]
dependencies = ["clean", "local"]
[tasks.run_postgres_example]
description = "run postgres example"
command = "cargo"
args = ["run", "--example", "postgres", "--features", "postgres", "--", "${@}"]
[tasks.run_sqlite_example]
description = "run postgres example"
command = "cargo"
args = ["run", "--example", "sqlite", "--features", "sqlite", "--", "${@}"]
[tasks.run_mysql_example]
description = "run postgres example"
command = "cargo"
args = ["run", "--example", "mysql", "--features", "mysql", "--", "${@}"]