Bug 2563268

Summary: Review Request: rust-granit-parser - YAML parser with comment and style support, written in pure Rust
Product: [Fedora] Fedora Reporter: Aleksei Bavshin <alebastr89>
Component: Package ReviewAssignee: Fabio Valentini <decathorpe>
Status: RELEASE_PENDING --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: decathorpe, package-review
Target Milestone: ---Flags: decathorpe: fedora-review+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2563269    

Description Aleksei Bavshin 2026-10-29 04:13:10 UTC
Spec URL: https://alebastr.fedorapeople.org/review/bear/rust-granit-parser/rust-granit-parser.spec
SRPM URL: https://alebastr.fedorapeople.org/review/bear/rust-granit-parser/rust-granit-parser-1.3.0-1.fc45.src.rpm
Description:
A YAML parser with comment and style support, written in pure Rust.
Fedora Account System Username: alebastr

Comment 2 Fabio Valentini 2026-11-10 21:42:24 UTC
Package looks good to me.

There are a few minor things that I'll leave up to you if or how you want to address them:

- Some license texts are in a hidden directory (.licenses) which is rather strange. They're correctly included and marked as %license though, so it is handled correctly - but the directory layout used by the upstream project here is odd.
- There is a bunch of files that could be excluded from the built package (or from the published .crate archive, for that matter), like the ".cargo/" and ".github/" folders, and the codecov.yml file. They are all small unproblematic files though, so it's up to you whether you want to exclude them or not.

===

Package was generated with rust2rpm, simplifying the review.

✅❌❓🫤

✅ package contains only permissible content
✅ package builds and installs without errors on rawhide
✅ test suite is run and all unit tests pass:
   The YAML test suite is skipped since the required files are not included in the published sources. This is OK.
✅ latest version of the crate is packaged
✅ license matches upstream specification and is acceptable for Fedora
✅ license files are included with %license in %files
✅ package complies with Rust Packaging Guidelines

Package APPROVED.

===

Recommended post-import rust-sig tasks:

- set up package on release-monitoring.org:
  project: $crate
  homepage: https://crates.io/crates/$crate
  backend: crates.io
  version scheme: semantic
  version filter (*NOT* pre-release filter): alpha;beta;rc;pre
  distro: Fedora
  Package: rust-$crate

- set bugzilla assignee overrides to @rust-sig (optional)

Comment 3 Fabio Valentini 2026-11-10 21:48:55 UTC
> ✅❌❓🫤

Disregard this line, it's just a copy-paste aid that I use for my review "template" that I forgot to delete before hitting the "Save Changes" button. :)

Comment 4 Fedora Admin user for bugzilla script actions 2026-11-11 03:45:02 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-granit-parser
Monitoring:
Wasn't able to create project in Anitya. You can create it manually on: `https://release-monitoring.org`

Comment 5 Aleksei Bavshin 2026-11-11 04:12:32 UTC
Thanks for the review!

> - Some license texts are in a hidden directory (.licenses) which is rather strange. They're correctly included and marked as %license though, so it is handled correctly - but the directory layout used by the upstream project here is odd.

The hidden directory appeared somewhere between yaml-rust and yaml-rust2 and contains historical licenses and copyrights of previous incarnations of the parser. It's definitely unorthodox and confuses cargo greatly (note how `cargo publish` picks it up, but %cargo_install does not), but in the end there's nothing wrong with this layout.

> - There is a bunch of files that could be excluded from the built package

Addressed during import. I'll try to send the change upstream if time permits.