Install rust. Install also some Cargo extensions:

cargo install cargo-generate-rpm
cargo install cargo-deb

Then run one of these:

To get a simple executable in target/release/topnfiles
  cargo build --release

Then, to get a Red Hat/Fedora family rpm file in target/generate-rpm:
  cargo generate-rpm

To get a Debian family deb file in target/release/debian:
  cargo deb


Building in a podman container
------------------------------

To build in a very clean environment, you may build in a container using
podman (docker may also work).

Having installed podman, from this directory, you may run the
following:
cd packaging
./build_in_podman_container.sh DESTINATIONDIRECTORY

The resulting .deb/.rpm files should work well on just about any
Debian or Red Hat derived Linux system, even rather old ones.
