mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Rust: Take depdency renaming into account when extracting the crate graph
This commit is contained in:
@@ -122,6 +122,7 @@ locatable_locations(
|
||||
@element =
|
||||
@extractor_step
|
||||
| @locatable
|
||||
| @named_crate
|
||||
| @unextracted
|
||||
;
|
||||
|
||||
@@ -142,6 +143,17 @@ extractor_step_files(
|
||||
| @crate
|
||||
;
|
||||
|
||||
named_crates(
|
||||
unique int id: @named_crate,
|
||||
int crate: @crate ref
|
||||
);
|
||||
|
||||
#keyset[id]
|
||||
named_crate_names(
|
||||
int id: @named_crate ref,
|
||||
string name: string ref
|
||||
);
|
||||
|
||||
@unextracted =
|
||||
@missing
|
||||
| @unimplemented
|
||||
@@ -245,10 +257,10 @@ crate_cfg_options(
|
||||
);
|
||||
|
||||
#keyset[id, index]
|
||||
crate_dependencies(
|
||||
crate_named_dependencies(
|
||||
int id: @crate ref,
|
||||
int index: int ref,
|
||||
int dependency: @crate ref
|
||||
int named_dependency: @named_crate ref
|
||||
);
|
||||
|
||||
missings(
|
||||
|
||||
Reference in New Issue
Block a user