Bug 2563268 - Review Request: rust-granit-parser - YAML parser with comment and style support, written in pure Rust
Summary: Review Request: rust-granit-parser - YAML parser with comment and style suppo...
Keywords:
Status: RELEASE_PENDING
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Fabio Valentini
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2563269
TreeView+ depends on / blocked
 
Reported: 2026-10-29 04:13 UTC by Aleksei Bavshin
Modified: 2026-11-11 04:12 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
decathorpe: fedora-review+


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.