Depending on what the use case is, https://github.com/kornelski/cargo-deb by @kornel might be something to try, no idea if it runs on arch directly. If you want to package for Debian proper, you'll probably not get around spinning up some kind of environment (docker, chroot, vm) and run https://crates.io/crates/debcargo inside, I don't think you can do everything on an arch system that is required for building such a packages. cc @alexanderkjall
A cargo subcommand that generates Debian packages from information in Cargo.toml - GitHub - kornelski/cargo-deb: A cargo subcommand that generates Debian packages from information in Cargo.toml
silwol
•GitHub - kornelski/cargo-deb: A cargo subcommand that generates Debian packages from information in Cargo.toml
GitHub