A parser for RPM archives, written in Rust, using the nom parser library.
BEWARE: This code is incomplete and probably terrible. I'm using it as a way to teach myself Rust.
For edutainment purposes only. Causes cancer in laboratory animals. Contains 0% fruit juice. Not intended for production use. Not intended for experimental use. Not intended for children. Not intended for adults either. Do not feed to infants under one year of age. Light fuse, get away. ALL-ONE! OK!
The RPM file format was designed 20+ years ago, when CPUs were 200MHz and packages needed to fit on floppy disks. It has... quirks.
Here are the references I've used in writing this code: