-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust: extract crate graph #18228
Open
aibaars
wants to merge
11
commits into
main
Choose a base branch
from
aibaars/crate-graph
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Rust: extract crate graph #18228
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48783f3
to
e0ecf47
Compare
9f083b9
to
7419e77
Compare
4c9e103
to
83111f3
Compare
4782bc1
to
b3ed09d
Compare
redsun82
reviewed
Feb 12, 2025
redsun82
reviewed
Feb 12, 2025
redsun82
reviewed
Feb 12, 2025
c651fee
to
ed57708
Compare
private import codeql.rust.elements.internal.generated.Raw | ||
import codeql.rust.elements.Crate | ||
import codeql.rust.elements.internal.ElementImpl::Impl as ElementImpl | ||
import codeql.rust.elements.Module |
Check warning
Code scanning / CodeQL
Redundant import Warning generated
Redundant import, the module is already imported inside .
codeql.rust.elements.Crate
Error loading related location
Loading 95cbd9b
to
7d08551
Compare
7d08551
to
e97b971
Compare
…ion checks These elements depend on the version of the standard libraries and platform, and in addition no location information is extracted for them at the moment. f
1c88806
to
e97fe89
Compare
e97fe89
to
2de8165
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request changes the Rust extractor to emit information about the crate graph, and the public modules, types, traits and function signatures contained in each crate. This should give our analyses information about names and types provided by the dependencies of a project. The information in the crate graph is represented as AST nodes without macro calls; type paths should be fully qualified and methods/functions have no bodies.
This PR currently does not extract generic type arguments ,
where
clauses, and associated types and aliases. These should be added in a follow-up pull request.