Skip to content

fix(scanner): Track Rust embedded file dependencies - #142

Open
reneleonhardt wants to merge 1 commit into
JordanCoin:mainfrom
reneleonhardt:fix/rust-embedded-file-dependencies
Open

fix(scanner): Track Rust embedded file dependencies#142
reneleonhardt wants to merge 1 commit into
JordanCoin:mainfrom
reneleonhardt:fix/rust-embedded-file-dependencies

Conversation

@reneleonhardt

Copy link
Copy Markdown
Contributor

What does this PR do?

Record dependencies from literal Rust include_str! and include_bytes! calls. Resolve relative paths only when the exact target is uniquely indexed in the repository; leave dynamic, missing, external, excluded, ambiguous, self, and include! targets unresolved.

Type of change

  • Bug fix

Verification

  • Focused tests cover literal and raw strings, dynamic, missing, external, excluded, ambiguous, and self targets.
  • go vet ./...
  • go test ./...

Resolve literal include_str! and include_bytes! targets through the configured exact-file index while preserving conservative include! behavior.

Co-Authored-By: GPT-5.6 Sol <codex@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant