Bug 2583538 - Review Request: rust-bitfields - Procedural macro for defining bitfields and bit flags
Summary: Review Request: rust-bitfields - Procedural macro for defining bitfields and ...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2583537
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-24 17:30 UTC by Larvitz
Modified: 2026-11-24 17:32 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Larvitz 2026-11-24 17:30:31 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/larvitz/openpgp-card-review/srpm-builds/11386605/rust-bitfields.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/larvitz/openpgp-card-review/srpm-builds/11386605/rust-bitfields-3.2.4-1.fc45.src.rpm

Description:
Procedural macro for generating bitfields from Rust structures and bit
flags from enumerations, for defining packed binary layouts in low-level
code.

This is part of packaging openpgp-card-tools (oct) for Fedora, coordinated
with the Rust SIG (Fabio Valentini packages the card backend crates,
I package the rPGP side). Dependency chain for oct:
bitfields-impl -> bitfields, buffer-redux, crc24 (approved, rhbz#2569806),
replace_with, ... -> pgp -> rpgpie, openpgp-card-rpgp -> openpgp-card-tools;
sshkeys and clap_allgen are direct dependencies of openpgp-card-tools.

Depends on rust-bitfields-impl (separate review request, see Depends On). The dummy-alloc dev-dependency (not packaged) is dropped, and the trybuild compile-fail tests are skipped since they compare rustc error output. Version 3.x as agreed in the Rust SIG room: pgp will carry a small patch to move from bitfields 1 to 3 until upstream releases it (https://github.com/rpgp/rpgp/pull/888, queued for the next semver-breaking release).

Builds cleanly in mock for fedora-rawhide-x86_64, all tests pass.
fedora-review: the only reported issue is the usual "File listed twice"
for %license/%doc files, which comes from the standard rust2rpm template.

Reproducible: Always


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