[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Packaging a rust package available with `cargo install`?



Hello Thomas,

Le dim. 7 déc. 2025 à 06:34, Thomas Ward <teward@ubuntu.com> a écrit :

Is there any good documentation on getting started working with Rust packages that are already available in crates.io and can be installed with `cargo install ...` as Debian packages? I'm a little confused by the Rust team's explanations of what to do and would like some extra guidance.

(The package i'm looking to see if we can get is called 'ican-rdap-cli' which provides an RDAP client that is written by ICANN which is the primary implementation of the Registry Data Access Protocol (RDAP) which is slated to replace whois in the 'soonish' future.)

Start with:
https://wiki.debian.org/Teams/RustPackaging
which prompts to read the very nicely documented
https://rust-team.pages.debian.net/book/

In particular, you need to know there are two ways to package:
- rust team mono repository and automated tools, which is somewhat unusual, yet probably very efficient. Uses dh-cargo.
- for more complex cases, one can switch to a more usual approach. See for example python3-cryptography, or projects using dh-rust.

Jérémy

Reply to: