Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

deb

deb builds a Debian package. It is available only on Linux and needs dpkg-deb. By default it also uses dpkg-shlibdeps to find dependencies. See the format overview for tools and architecture names.

Cargo.toml requirements

FieldRequirement
package.nameConverts to a Debian package name. Use letters, digits, ., + and -. _ becomes -. The first character is a letter or digit. The name needs at least two characters.
package.descriptionRequired and single-line.
package.authors[0]Required. Used as maintainer.
package.repositoryOptional single-line homepage.

Config

Set the shared Linux fields in [linux] as shown in Linux settings, then add options under [formats.deb].

OptionDefaultDescription
extra-depends[]Extra Depends: clauses. Entries are added after the results from dpkg-shlibdeps. Keep entries on one line.
shlibdepstrueRun dpkg-shlibdeps. Set false to supply all dependencies yourself. This also removes the tool from breadbox doctor.
[linux]
identifier = "com.example.myapp"
description-long = "Example desktop application"
categories = "Utility"

[formats.deb]
extra-depends = ["ca-certificates", "libc6 (>= 2.34)"]

Install files with role = "config" are listed in DEBIAN/conffiles. See Install files.

Output

Breadbox converts - in the Cargo version to ~ for Debian. The artifact is named:

<deb-package-name>_<debian-version>_<deb-arch>.deb