Skip to content

Rust: extract source files of dependencies #19506

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

Merged
merged 32 commits into from
May 24, 2025
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
dd5c487
Rust: extract source files of depdendencies
aibaars May 15, 2025
f05bed6
Rust: remove module data from Crate elements
aibaars May 15, 2025
980cebe
Rust: fix QL code after removing Crate::getModule()
aibaars May 16, 2025
0bb0a70
Rust: add upgrade/downgrade scripts
aibaars May 16, 2025
8996f9e
Rust: Follow-up work to make path resolution and type inference tests…
hvitved May 19, 2025
1269a2e
Rust: fix extractor-tests
aibaars May 19, 2025
456a4b2
Rust: Make `dataflow/modeled` pass by not using `#[derive(Clone)]`
hvitved May 20, 2025
44a4045
Rust: fixes
aibaars May 19, 2025
643059e
Rust: fix type-interence file paths
aibaars May 20, 2025
67846f1
fixup TestUtils
aibaars May 20, 2025
3761099
Rust: drop Param::pat when extracting libraries
aibaars May 20, 2025
5ee7658
Rust: update DataFlowStep.expected
aibaars May 20, 2025
457632e
Rust: update UncontrolledAllocationSize.expected
aibaars May 20, 2025
e90ab7b
Rust: fix diagnostics tests
aibaars May 20, 2025
76da2e4
Rust: drop crate_graph/modules.ql test
aibaars May 20, 2025
81f0e42
Rust: improve ExtractionConsistency.ql
aibaars May 20, 2025
f093c49
Rust: normalize file paths for PathResolutionConsistency.ql
aibaars May 20, 2025
9ee0d2e
Rust: Exclude flow summary nodes from `DataFlowStep.ql`
hvitved May 21, 2025
c69aa22
Rust: restrict to library files
aibaars May 21, 2025
1eaa491
Rust: update integration tests
aibaars May 21, 2025
2a93b2a
Rust: integration-tests: update output
aibaars May 21, 2025
fa1a21b
Rust: reduce log-level of diagnostics when extracting library files
aibaars May 21, 2025
a6cd60f
Rust: address comments
aibaars May 21, 2025
28be208
Rust: drop too noisy log statements
aibaars May 21, 2025
76737cb
Rust: Follow-up changes after rebase
hvitved May 22, 2025
7e5f652
Rust: disable ResolvePaths when extracting library source files
aibaars May 22, 2025
a4788fd
Rust: update expected output
aibaars May 22, 2025
df99e06
Rust: temporarily disable attribute macro expansion in library mode
aibaars May 23, 2025
b62d52e
Rust: prevent source files from being extracted in both source and li…
aibaars May 23, 2025
23b4e50
Rust: update expected output
aibaars May 23, 2025
c8ff69a
Rust: Fix bad join
hvitved May 23, 2025
5b28ff1
Merge branch 'main' into aibaars/rust-extract-libs
aibaars May 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rust/ast-generator/templates/extractor.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ impl Translator<'_> {
{{#nodes}}

pub(crate) fn emit_{{snake_case_name}}(&mut self, node: &ast::{{ast_name}}) -> Option<Label<generated::{{name}}>> {
{{#has_attrs}}
if self.should_be_excluded(node) { return None; }
{{#has_attrs}}
if self.should_be_excluded_attrs(node) { return None; }
{{/has_attrs}}
{{#fields}}
{{#predicate}}
Expand Down
Loading