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.
debian/copyright
.FIXME (hint)
strings where it can't detect full information, so user can
provide an override/overlay or manually fix it.sbuild
assuming the crate doesn't
include anything that breaks it (such as arch-specific build.rs scripts).For building:
shell
$ apt-get build-dep cargo
$ apt-get install libssl-dev libcurl4-gnutls-dev quilt
$ cargo build debcargo
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.
See https://salsa.debian.org/rust-team/debcargo-conf/blob/master/README.rst for an example.
Debcargo is licensed under MIT/Apache-2.0
. It is written by Josh Triplett
and improved by members of Debian Rust Maintainers team