Skip to content

[Rust] Including dependencies in the analysis #20534

@drank40

Description

@drank40

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    RustPull requests that update Rust codequestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions