27 stable releases

2.4.4 Dec 20, 2020
2.4.3 Apr 18, 2020
2.4.2 Jan 3, 2020
2.4.0 Jul 17, 2019
1.3.0 Dec 9, 2016
Download history 9/week @ 2021-01-07 10/week @ 2021-01-14 6/week @ 2021-01-21 8/week @ 2021-01-28 4/week @ 2021-02-04 101/week @ 2021-02-11 66/week @ 2021-02-18 8/week @ 2021-02-25 7/week @ 2021-03-04 2/week @ 2021-03-11 16/week @ 2021-03-18 138/week @ 2021-03-25 4/week @ 2021-04-01 70/week @ 2021-04-08 47/week @ 2021-04-15 54/week @ 2021-04-22

92 downloads per month

MIT/Apache

130KB
3K SLoC

Crates.io to Debian

debcargo creates Debian source package from the provided Rust crate. Create Debian source package from the downloaded crate which follows Rust teams crate packaging policy.

Features

  • Package specific versions of crates from crates.io.
  • Easy to customize, using config files and overlay directories.
  • Tries to auto-detect copyright information from metadata and actual crate source, used to guess appropriate values for debian/copyright.
  • Put FIXME (hint) strings where it can't detect full information, so user can provide an override/overlay or manually fix it.
  • Results in a lintian-clean Debian package in most cases.
  • Packages can be cross-compiled by sbuild assuming the crate doesn't include anything that breaks it (such as arch-specific build.rs scripts).

Dependencies

For building:

$ apt-get build-dep cargo
$ apt-get install libssl-dev libcurl4-gnutls-dev quilt
$ cargo build debcargo

Examples

To download and unpack the latest clap crate and prepare the source package:

$ debcargo package clap

To download and unpack version 2.25.0 of clap crate and prepare the source package:

$ debcargo package clap =2.25.0

To provide additional packaging-specific config for downloading and packaging latest clap crate from crates.io:

$ debcargo package --config clap-2/debian/debcargo.toml clap

See debcargo.toml.example for a sample TOML file.

Long-term maintenance workflow

See https://salsa.debian.org/rust-team/debcargo-conf/blob/master/README.rst for an example.

License

Debcargo is licensed under MIT/Apache-2.0. It is written by Josh Triplett and improved by members of Debian Rust Maintainers team

Dependencies

~36MB
~837K SLoC