Skip to content

Commit 70df1b9

Browse files
authored
Rust: give more options for building in README.md
1 parent a35dc7e commit 70df1b9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

rust/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,18 @@ If you don't have the `semmle-code` repo you may need to install Bazel manually,
1111

1212
### Building the Rust Extractor
1313

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:
1515
```bash
1616
bazel run @codeql//rust:install
1717
```
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+
1826
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:
1927
```
2028
--search-path PATH/TO/semmle-code/ql

0 commit comments

Comments
 (0)