forked from surrealdb/surrealdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.local.toml
More file actions
127 lines (118 loc) · 2.39 KB
/
Copy pathMakefile.local.toml
File metadata and controls
127 lines (118 loc) · 2.39 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
[env]
RUSTFLAGS = { value = "-D warnings --cfg tokio_unstable", condition = { env_not_set = [
"RUSTFLAGS",
] } }
# Default
[tasks.default]
category = "LOCAL USAGE"
description = "List all available tasks"
clear = true
command = "cargo"
args = ["make", "--list-all-steps"]
# Docs
[tasks.docs]
category = "LOCAL USAGE"
description = "Generate and open the SurrealDB documentation"
command = "cargo"
args = [
"doc",
"--open",
"--no-deps",
"--package",
"surrealdb",
"--features",
"rustls,native-tls,protocol-ws,protocol-http,kv-mem,kv-rocksdb,kv-tikv,http,scripting,jwks",
]
# Format
[tasks.fmt]
category = "LOCAL USAGE"
description = "Format the SurrealDB source code according to the project rules"
toolchain = "${SURREAL_NIGHTLY_RUST_TOOLCHAIN}"
command = "cargo"
args = ["fmt", "--all"]
# Check
[tasks.check]
category = "LOCAL USAGE"
description = "Run the SurrealDB code quality checks"
dependencies = ["ci-fmt", "ci-check", "ci-clippy"]
# Serve
[tasks.serve]
category = "LOCAL USAGE"
description = "Start the SurrealDB database server in debug mode"
command = "cargo"
args = [
"run",
"--profile",
"make",
"--no-default-features",
"--features",
"${DEV_FEATURES}",
"--",
"start",
"--allow-all",
"--deny-guests",
"${@}",
]
# SQL
[tasks.sql]
category = "LOCAL USAGE"
description = "Run the SurrealDB SQL shell with pretty printing"
command = "cargo"
env = { SURREAL_LOG = "error" }
args = [
"run",
"--profile",
"make",
"--no-default-features",
"--features",
"${DEV_FEATURES}",
"--",
"sql",
"--pretty",
"${@}",
]
# REPL
[tasks.repl]
category = "LOCAL USAGE"
description = "Run the SurrealDB SQL REPL with a default namespace and database"
command = "cargo"
env = { SURREAL_LOG = "error" }
args = [
"run",
"--profile",
"make",
"--no-default-features",
"--features",
"${DEV_FEATURES}",
"--",
"sql",
"--pretty",
"--endpoint",
"memory",
"--ns",
"main",
"--db",
"main",
"${@}",
]
# Build
[tasks.build]
category = "LOCAL USAGE"
description = "Build the SurrealDB database server in debug mode"
command = "cargo"
args = [
"build",
"--profile",
"make",
"${@}",
]
# Release
[tasks.release]
category = "LOCAL USAGE"
description = "Build the SurrealDB database server in release mode"
command = "cargo"
args = [
"build",
"--release",
"${@}",
]