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

Dependencies

For building:

shell $ 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:

shell $ debcargo package clap

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

shell $ debcargo package clap =2.25.0

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

shell $ 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