Skip to content

feat(api-dependency): fix API dependency crash, improve availability#232

Merged
hxuhack merged 2 commits intosafer-rust:mainfrom
WIZeaz:lifesonar-sync
Mar 15, 2026
Merged

feat(api-dependency): fix API dependency crash, improve availability#232
hxuhack merged 2 commits intosafer-rust:mainfrom
WIZeaz:lifesonar-sync

Conversation

@WIZeaz
Copy link
Contributor

@WIZeaz WIZeaz commented Mar 15, 2026

This PR significantly improves the availability of API dependency graph generation, as well as fix bugs:

  • Add API dependency graph serialization. Now API graph can dump as dot, json, yml(yaml) format
  • Introduced a PathResolver utility to resolve paths for re-exported items, improving API graph generation.
  • Updated the CLI to support new options for API dependency graph generation.
  • Refactored the architecture of api_dep module, removed some redundant extern crate.
  • Added regression tests for API dependency graph construction to ensure stability and correctness.
  • Improved error handling and logging throughout the analysis process.
  • Fixed bugs for generic API resolving phase, improve stability.

WIZeaz added 2 commits March 15, 2026 10:36
…ties

- Added a new `visit.rs` file to encapsulate the `FnVisitor` logic for API dependency analysis.
- Removed the old `visitor.rs` file and migrated relevant functionality to the new structure.
- Enhanced the `ScanAnalysis` to provide better logging for crate information and API statistics.
- Introduced a `PathResolver` utility to resolve paths for re-exported items, improving API graph generation.
- Updated the CLI to support new analysis commands and options for API dependency graph generation.
- Added regression tests for API dependency graph construction to ensure stability and correctness.
- Improved error handling and logging throughout the analysis process.
@WIZeaz WIZeaz changed the title feat(api-dependency): refactor FnVisitor and introduce new path utilities feat(api-dependency): fix API dependency crash, improve availability Mar 15, 2026
@hxuhack hxuhack merged commit 77345ab into safer-rust:main Mar 15, 2026
1 check passed
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.

2 participants