Skip to content

feat: ManifestPackage evaluation - #28

Merged
Mr-Leshiy merged 9 commits into
mainfrom
feat/analyzer-2
May 8, 2026
Merged

feat: ManifestPackage evaluation#28
Mr-Leshiy merged 9 commits into
mainfrom
feat/analyzer-2

Conversation

@Mr-Leshiy

Copy link
Copy Markdown
Collaborator

Description

Thanks for contributing to the project!
Please fill out this template to help us review your changes.

Related Issue(s) (Optional)

N/A

Changes

  • osv-types: Added IntoStaticStr derive to Ecosystem and as_str(self) -> &'static str — returns a &'static str without allocating.
  • osv-analyzer: Added ManifestType enum (Cargo, Uv) with strum derives (Display, EnumString, IntoStaticStr) and as_str. Manifest::extract now takes ManifestType instead of Ecosystem.
  • Tests: Fixed version.rs and manifest.rs test cases to use typed enum variants instead of raw string literals. Added evaluate.rs integration tests that run against real OSV JSON records from testdata/osv_records/, with a comment showing how to fetch new records via scripts/fetch_osv_record.sh.
  • Examples: Added manifest_extraction.rs and evaluate.rs examples.
  • osv-analyzer/Cargo.toml: Added serde_json as a dev-dependency.

@Mr-Leshiy Mr-Leshiy changed the title feat: add ManifestType enum, as_str for Ecosystem, evaluate tests and examples feat: add ManifestType enum, as_str for Ecosystem, evaluate tests and examples May 8, 2026
@Mr-Leshiy Mr-Leshiy changed the title feat: add ManifestType enum, as_str for Ecosystem, evaluate tests and examples feat: ManifestPackage evaluation May 8, 2026
@Mr-Leshiy
Mr-Leshiy merged commit 80b9d2a into main May 8, 2026
5 checks passed
@Mr-Leshiy
Mr-Leshiy deleted the feat/analyzer-2 branch May 8, 2026 09:27
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