@@ -10,19 +10,19 @@ You can learn how to do that
10
10
11
11
## Clone Repository
12
12
13
- First of all, you need to clone the repository and all of its submodules .
13
+ First of all, you need to clone the repository.
14
14
You can do that:
15
15
16
16
through ** HTTPS**
17
17
18
18
```
19
- git clone --recurse-submodules - j8 https://github.com/mozilla/rust-code-analysis.git
19
+ git clone -j8 https://github.com/mozilla/rust-code-analysis.git
20
20
```
21
21
22
22
or through ** SSH**
23
23
24
24
```
25
- git clone --recurse-submodules - j8 [email protected] :mozilla/rust-code-analysis.git
25
+ git clone -j8 [email protected] :mozilla/rust-code-analysis.git
26
26
```
27
27
28
28
## Building
@@ -34,10 +34,22 @@ command:
34
34
cargo build
35
35
```
36
36
37
- If you are also interested in the cli tool :
37
+ If you want to build the ` cli ` :
38
38
39
39
``` console
40
- cargo build --all
40
+ cargo build -p rust-code-analysis-cli
41
+ ```
42
+
43
+ If you want to build the ` web ` server:
44
+
45
+ ``` console
46
+ cargo build -p rust-code-analysis-web
47
+ ```
48
+
49
+ If you want to build everything in one fell swoop:
50
+
51
+ ``` console
52
+ cargo build --workspace
41
53
```
42
54
43
55
## Testing
@@ -46,7 +58,7 @@ After you have finished changing the code, you should **always** verify whether
46
58
all tests pass with the ` cargo test ` command.
47
59
48
60
``` console
49
- cargo test --all --all-features --verbose
61
+ cargo test --workspace --all-features --verbose
50
62
```
51
63
52
64
## Code Formatting
@@ -86,7 +98,7 @@ rustup component add clippy
86
98
To detect errors and warnings:
87
99
88
100
``` console
89
- cargo clippy --all-targets --all --
101
+ cargo clippy --workspace --all-targets --
90
102
```
91
103
92
104
## Code Documentation
@@ -106,7 +118,7 @@ each dependency used by **rust-code-analysis**.
106
118
You can run ** rust-code-analysis-cli** using:
107
119
108
120
``` console
109
- cargo run -- [rust-code-analysis-cli-parameters]
121
+ cargo run -p rust-code-analysis-cli - - [rust-code-analysis-cli-parameters]
110
122
```
111
123
112
124
To know the list of ** rust-code-analysis-cli** parameters, run:
@@ -115,6 +127,18 @@ To know the list of **rust-code-analysis-cli** parameters, run:
115
127
cargo run -p rust-code-analysis-cli -- --help
116
128
```
117
129
130
+ You can run ** rust-code-analysis-web** using:
131
+
132
+ ``` console
133
+ cargo run -p rust-code-analysis-web -- [rust-code-analysis-web-parameters]
134
+ ```
135
+
136
+ To know the list of ** rust-code-analysis-web** parameters, run:
137
+
138
+ ``` console
139
+ cargo run -p rust-code-analysis-web -- --help
140
+ ```
141
+
118
142
## Practical advice
119
143
120
144
- When you add a new feature, add at least one unit or integration test to
0 commit comments