Bug 2583538

Summary: Review Request: rust-bitfields - Procedural macro for defining bitfields and bit flags
Product: [Fedora] Fedora Reporter: Larvitz <fedora>
Component: Package ReviewAssignee: Nobody's working on this, feel free to take it <nobody>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: decathorpe, package-review
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
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: 2583537    
Bug Blocks:    

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