[Pkg-rust-maintainers] On rust library packages

Luca Bruno lucab at debian.org
Mon Mar 2 22:41:07 UTC 2015


On Monday 16 February 2015 03:03:47 Angus Lees wrote:

> Re (3):
> This is the easiest and safest option, given that golang has already
> demonstrated this path is acceptable.  In this version, all library
> packages are just a copy of their source code installed into a
> semi-standard place. - libfoo-dev ships library source code.  Has a
> dependency on specific compiler version range, if it has to deal with
> breaking rustc syntax changes - similar but not same as (2) - There is no
> libfoo (and no shlibs files) - same as (2)
> - bar-tool Build-Depends on libfoo-dev but not on libfoo - same as (2)
> 
> The advantage of this approach, is that cargo can be made to work with it by
> a small patch to cargo to look in /our/rust/lib/install/path/* for
> additional toml manifests, a lot like the existing .cargo/config `paths`
> option.
>  
> So I think our options are (2) or (3).  I think we should run these options
> past rust+cargo upstream since they both (presumably) require at least
> small patches to cargo and it would make sense to match what other distros
> might do.

I am not a great fan of this, but I suspect (3) is the simple and best option 
in many way.

Another two notes on this topic:

* Many Cargo.toml specify a == version for dependencies.
  We could end up maintaining so many source packages in parallel, which
  sounds painful. Is there an easy way to do so (preferably without going
  every time through NEW)?

* IIRC cargo has some freeze/package subcommand (can't find the exact name
  now). Which fetches and bundles all dependencies.
  As we are using static linking anyway, what about having each package manage
  its dependency?

Please note that I'm not proposing anything here. just writing down some 
questions I have floating around.

Cheers, Luca

-- 
 .''`.  ** Debian GNU/Linux **  | Luca Bruno (kaeso)
: :'  :   The Universal O.S.    | lucab (AT) debian.org
`. `'`                          | GPG Key ID: 0x4F3BBEBF
  `-     http://www.debian.org 	| Debian GNU/Linux Developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-rust-maintainers/attachments/20150302/63ba0222/attachment.sig>


More information about the Pkg-rust-maintainers mailing list