Skip to content

Commit 7c0409d

Browse files
authored
Rust: add instructions for codegen in README.md
1 parent 70df1b9 commit 7c0409d

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

rust/README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,17 @@ TODO
4848

4949
### Code Generation
5050

51-
TODO
51+
If you do changes to either
52+
* `ast-generator`, or
53+
* `schema/*.py`
54+
55+
you'll need to regenerate code. You can do so running
56+
```bash
57+
bazel run @codeql//rust/codegen
58+
```
59+
60+
Sometimes, especially if resolving conflicts on generated files, you might need to run
61+
```bash
62+
bazel run @codeql//rust/codegen -- --force
63+
```
64+
for code generation to succeed.

0 commit comments

Comments
 (0)