You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: rust/README.md
+23-2
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,18 @@ If you don't have the `semmle-code` repo you may need to install Bazel manually,
11
11
12
12
### Building the Rust Extractor
13
13
14
-
This approach uses a released `codeql` version and is simpler to use for QL development. From your `semmle-code` directory run:
14
+
This approach uses a released `codeql` version and is simpler to use for QL development. From anywhere under your `semmle-code`or `codeql`directory you can run:
15
15
```bash
16
16
bazel run @codeql//rust:install
17
17
```
18
+
19
+
You can use shorter versions of the above command:
20
+
```bash
21
+
bazel run //rust:install # if under the `codeql` checkout
22
+
bazel run rust:install # if at the root of the `codeql` checkout
23
+
bazel run :install # if at the `rust` directory of the `codeql` checkout
24
+
```
25
+
18
26
You now need to create a [per-user CodeQL configuration file](https://docs.github.com/en/code-security/codeql-cli/using-the-advanced-functionality-of-the-codeql-cli/specifying-command-options-in-a-codeql-configuration-file#using-a-codeql-configuration-file) and specify the option:
19
27
```
20
28
--search-path PATH/TO/semmle-code/ql
@@ -40,4 +48,17 @@ TODO
40
48
41
49
### Code Generation
42
50
43
-
TODO
51
+
If you make changes to either
52
+
*`ast-generator/`, or
53
+
*`schema/*.py`
54
+
55
+
you'll need to regenerate code. You can do so running
56
+
```sh
57
+
bazel run @codeql//rust/codegen
58
+
```
59
+
60
+
Sometimes, especially if resolving conflicts on generated files, you might need to run
0 commit comments