Add cargo deb support

This commit is contained in:
Marcus Bitzl 2020-05-13 09:22:17 +02:00
parent 75e49d2f8b
commit b5214bc618
2 changed files with 3 additions and 0 deletions

View file

@ -156,6 +156,7 @@ ENV OPENSSL_DIR=/usr/local/musl/ \
# We include cargo-audit for compatibility with earlier versions of this image,
# but cargo-deny provides a super-set of cargo-audit's features.
RUN cargo install -f cargo-audit && \
cargo install -f cargo-deb && \
cargo install -f mdbook-graphviz && \
rm -rf /home/rust/.cargo/registry/

View file

@ -84,6 +84,7 @@ This image also supports the following extra goodies:
- Basic compilation for `armv7` using `musl-libc`. Not all libraries are supported at the moment, however.
- [`mdbook`][mdbook] and `mdbook-graphviz` for building searchable HTML documentation from Markdown files. Build manuals to use alongside your `cargo doc` output!
- [`cargo audit`][audit] to check your Rust project for known security issues.
- [`cargo deb`][deb] to build Debian packages
## Making OpenSSL work
@ -219,6 +220,7 @@ Either the [Apache 2.0 license](./LICENSE-APACHE.txt), or the
[Alpine Linux container]: https://hub.docker.com/_/alpine/
[audit]: https://github.com/RustSec/cargo-audit
[deb]: https://github.com/mmstick/cargo-deb
[mdbook]: https://github.com/rust-lang-nursery/mdBook
[musl-libc]: http://www.musl-libc.org/
[musl-gcc]: http://www.musl-libc.org/how.html