github / github/codeql

[Rust] Including dependencies in the analysis

Open
#20,534 4 comments 0 reactions 0 assignees View on GitHub
question Rust
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

Hi, is there any way to include cargo dependencies within the generated dbs? Right now im generating it like this

```bash
codeql database create rust-db \
--language=rust \
--source-root . \
--command "cargo build --all-targets --all-features" \
--extractor-option rust.cargo_all_targets=true \
--extractor-option rust.extract_dependencies_as_source=true \
--overwrite
```

But my queries still dont seem to go down into my dependecies

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.