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

Re: Being easy to package for Debian



On 2024-05-30 03:16, Matthias Geiger wrote:
> 30.05.2024 13:21:46 Lars Wirzenius <liw@liw.fi>:

> > As upstream, my question is, what can I do to make it as easy as
> > possible for Debian to package software written in Rust?

> - Not relying on crates pinned at a certain commit in Cargo.toml

As far as I could see in my sporadic packaging of Rust crates, one
recurring problem is when versioned dependencies are bumped in
Cargo.toml for no specific reason other than "use the latest crates".

When that happens, one would have to update the relevant Debian packages
to the latest upstream version just to satisfy the versioned deps in
Cargo.toml -- madness. The workaround is "relaxing" the versioned deps
and see if earlier versions still work (usually they do). If you look in
the debcargo-conf repo you'll find lots of commits along those lines,
eg: https://salsa.debian.org/rust-team/debcargo-conf/-/commit/a546e313cf3d22cf871d8d9839bae476f4dfda47

So I think not bumping versioned deps unless actually needed is a big
one.


Reply to: