1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277
|
# Whether to generate a package for the binary crate. If omitted, defaults to
# true unless semver_suffix (see below) is also true.
#bin = true
# Name for the binary crate. Defaults to "<default>" which means the crate
# name, with no "rust-" prefix and with underscores replaced by hyphens.
#bin_name = "<default>"
# Add the semver to the package name, to allow co-installation with other
# versions of the same crate. This should only be true for crates older than
# the most up-to-date version in Debian, and only if they are needed as a
# (direct or indirect) build dependency of another binary crate.
#
# If you set this to true, you should either omit "bin" or set it to false,
# unless you are sure the old and new packages are co-installable.
#semver_suffix = false
# Overlay directory to copy on top of the generated one, given relative to the
# directory that contains this config file. If any files conflict with the ones
# generated by debcargo, the latter are moved to <file>.debcargo.hint instead.
#
# For the special case of debian/changelog, generated entries will be prepended
# to the top of the existing d/changelog (from the overlay), rather than stored
# in debian/changelog.debcargo.hint. A further exception: if the distribution
# of the top entry in the existing d/changelog is
# UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO then that whole entry will be
# *replaced* with the generated entry, not prepended.
#
# Normally, any "hints" generated are written back to the overlay directory,
# overwriting any hints that may have previously been stored there. For the
# special case of debian/changelog, that is written-back as-is. Therefore, it
# is strongly recommended that you keep the overlay directory tracked in
# version control. To disable this behaviour, give --no-overlay-write-back on
# the debcargo command line.
#
#overlay = "."
# Local directory where crate can be found, instead of crates.io. Resolved
# relative to the directory that contains this config file. Note: this is
# currently experimental and only works for crates whose dependencies are all
# published on crates.io. For example, not rustup. This limitation will
# hopefully be fixed in the future.
#
#crate_src_path = "../.."
# Paths from the crate tarball, to exclude from the orig tarball.
# See https://docs.rs/glob/latest/glob/struct.Pattern.html for syntax
#excludes = ["libgit2/**"]
# Paths from the crate tarball, that have been manually reviewed to adhere to
# Debian policy. debcargo has a crude method for detecting files that might not
# fit within policy, and will give a fatal error if any are detected. In the
# exceptional cases where the method gives a false-positive, add them here.
#whitelist = ["libgit2/**"]
# Whether to allow prerelease deps, by rewriting these to the released version.
# This should only be enabled for certain crates if really necessary, and first
# you should check that they can actually build when this is enabled.
#allow_prerelease_deps = false
# This is the stem of the short description for each binary package. By default
# `debcargo` will try to auto-extract a description from `Cargo.toml` but
# sometimes this may lead to a meaningless, weird short description.
#
# The full short description of each binary package is constructed using this
# string plus an auto-generated suffix. The full string can be overridden by
# the [packages.KEY].summary config key, see below.
#summary = "PLACEHOLDER"
# This is the stem of the long description for each binary package. By default
# this is empty.
#
# The full long description of each binary package is constructed using this
# string plus an auto-generated suffix. The full string can be overridden by
# the [packages.KEY].description config key, see below.
#description = """
#PLACEHOLDER
#"""
# Maintainer
#
# Defaults to pkg-rust-team, should only be overriden with care. If overridden,
# vcs_* in [source] should also be overridden, otherwise they point the Rust
# Team's salsa project.
#
#maintainer = "PLACEHOLDER"
# Uploaders. This affects the Uploaders: field in debian/control as well as the
# additional maintainers listed in debian/copyright. The naming is historical;
# in Debian today for team-maintained packages, this is generally taken to mean
# "the main individuals" responsible for the package - anyone on the team is
# "morally allowed" to perform the upload as long as they specify "Team upload"
# in debian/changelog; this is done automatically by debcargo.
uploaders = [ "foo bar <foo@debian.org>" ]
# This is a temporary work-around in order to address situations where certain
# Debian infrastructure people claim (without supplying concrete evidence) that
# rust crate metadata is "too large". This flag addresses this, effectively by
# forcing all crate features together into a single feature. This increases the
# dependency footprint of the generated packages and therefore should not be
# enabled unless absolutely necessary. It can also cause cyclic dependencies in
# some cases, and in these cases it simply cannot be enabled, as packages in
# the cycle become uninstallable. Most crates should not need this, and you
# should not enable this just because "somebody told you so".
#collapse_features = false
# Set the Rules-Requires-Root field in debian/control; by default, this unset.
#requires_root = "yes"
[source]
# Debian Standards-Version to use. By default debcargo uses latest policy version.
#policy = "4.0.0"
# Override or provide missing homepage for crate
#homepage = "https://clap.rs"
# Override the VCS entries.
# By default this points to a relevant subdirectory underneath the main
# repository for debcargo config files, owned by the Debian Rust Maintainers:
# https://salsa.debian.org/rust-team/debcargo-conf/
# Please only override this if your package is truly special, e.g. it combines
# lots of languages and/or there is not a crate at the top-level directory. In
# most cases you should prefer packaging as part of the Debian Rust Team, see
# https://wiki.debian.org/Teams/RustPackaging/Policy
#
#vcs_git = "https://salsa.debian.org/special_package/rust-special-0.1.git"
#vcs_browser = "https://salsa.debian.org/special_package/rust-special-0.1"
# Section override for the source package. Unless overridden here, library
# crates get "rust" and non-library crates get a "FIXME".
#section = "rust"
# Extra Build-Depends on top of those generated by debcargo.
# If you defined a custom d/rules that does extra stuff on top of dh-cargo,
# then you may need to use this.
#
# OTOH, if your crate needs external development headers to build, these should
# probably instead go in the [packages.lib] depends key rather than this key.
# debcargo will then automatically add those into the package Build-Depends if
# needed by dh-cargo; you don't have to add them here as well. Unless the extra
# dependency is needed for the clean target of debian/rules, the _indep variant
# is probably the right choice.
#build_depends = ["PLACEHOLDER", "PLACEHOLDER"]
#build_depends_arch = ["PLACEHOLDER", "PLACEHOLDER"]
#build_depends_indep = ["PLACEHOLDER", "PLACEHOLDER"]
# If set to `true`, do not add <!nocheck> annotations to build dependencies.
# This should only be needed if your librust-* packages actually require some
# build step, or your package does something else custom.
#skip_nocheck = false
# Build-Depends to subtract from those generated by debcargo. This should be
# used when our default generated Build-Depends results in a cycle. For
# example, this might happen if:
#
# - crate A's default-feature depends on crate B's no-default-features (which has no dependencies)
# - crate B's default-feature depends on crate A's no-default-features (which has no dependencies)
#
# In these cases, you'll need to (for example) add "librustA+B-dev <!nocheck>"
# to build_depends_excludes in A's debcargo.toml to break the cycle, and also
# add override_dh_auto_test to A's d/rules to avoid selecting the B feature
# when running the test build. Depending on the exact situation, it should be
# sufficient to do this override only for one of the packages in the cycle.
#
# Note that binary package Depends must be left alone in order to correctly
# express the dependencies; these ought not to have cycles in anyway, even in
# a case like the above example.
#
# This field should *not* be used to exclude arch-specific dependencies. We
# want to include them to support cross-compiling, and they should cause no
# problems since they are just source code. If our test "cargo build" fails for
# one of those dependencies, it should be handled in that package by disabling
# the failing test on the architectures that they are expected to fail on. This
# field applies to all three categories of build dependencies (Build-Depends,
# Build-Depends-Arch and Build-Depends-Indep)
#build_depends_excludes = ["PLACEHOLDER", "PLACEHOLDER"]
# Binary package overrides.
#
# Different values for KEY selects different binary packages:
# lib - the package for the library crate
# "lib+FEATURE" - the metapackage for feature FEATURE
# bin - the package for the binary crate
#
[packages.KEY]
# Section override for the binary package. Use this if your crate is both a
# library and a binary crate; in this case, omit source.section which will
# default to "rust" and override this value for your binary package.
#section = "PLACEHOLDER"
# Short description for the package. If omitted, debcargo autogenerates this
# using the top-level "summary" key plus a suffix describing the feature.
#summary = "PLACEHOLDER"
# Long description for the package. If omitted, debcargo autogenerates this
# using the top-level "description" key plus a suffix describing the feature.
#description = """
#PLACEHOLDER
#"""
# Value for the Architecture field of the package. If omitted, debcargo will
# set "any" for both 'bin' and 'lib' packages.
# Note that 'lib' packages should not be "Architecture: all". For reference,
# see https://rust-team.pages.debian.net/book/policy.html#why-architecture-any
#architecture = ["PLACEHOLDER", "PLACEHOLDER"]
# Value for the Multi-Arch field of the package. If omitted, debcargo will
# automatically set 'foreign' for 'bin', and 'same' for all 'lib' packages.
#multi_arch = "no|same|foreign|allowed"
# Additional Depends on top of the ones generated by debcargo. This should be
# used to pull in system libraries for crates that need them to build. You'll
# want the -dev versions of the library packages, since our crate packages are
# development packages and not runtime packages. These will be automatically
# added to the source packages `Build-Depends-Arch` field as well.
#depends = ["PLACEHOLDER", "PLACEHOLDER"]
# We generate an autopkgtest (post-install test) for every feature, and also
# run `cargo test` for the default feature set during build-time if there are
# no additional dev-dependencies.
#
# However sometimes this may not work, e.g. if the crate is part of a larger
# workspace and its tests require files from the workspace directory. Or if
# the crate author is simply negligent and didn't ensure the test passes for
# all features. In these cases, you can use this setting to mark the test as
# "flaky" to ignore failures. Special cases for packages.KEY:
#
# packages."lib+@" - disables the test for the --all-features autopkgtest
#
# The effect is transitive to its reverse-dependencies, so e.g. if you specify
# this for feature A, and feature B depends on feature A, then feature B also
# implicitly has this set. To unset it on feature B (and its transitive rdeps),
# explicit set this to false for feature B as well.
#
# So for example if the test breaks for the bare library (when running with
# --no-default-features) but works when the std feature is enabled, set this to
# true for [packages.lib] and false for [packages."lib+std"].
#
# Note: debcargo will error if you set these in an inconsistent way. For
# example if feature A depends on {B, C}, B says true and C says false, of
# course we cannot determine what A should be. You can suppress the error by
# explicitly giving A a value, either true or false.
#
#test_is_broken = false
# Some tests depend on extra system tools or libraries, which need to be given
# to autopkgtest. Like test_is_broken, the effect is transitive to its rdeps.
#test_depends = []
# Some tests might be broken on certain architectures, or just take too long.
# This allows to (transitively) set Architecture restrictions (either positive
# or negative) for autopkgtests. Use an explicit empty list ([]) to reset an
# inherited restriction. The "@" (all features) test will default to a
# combination of all individual restrictions.
#test_architecture = []
# Note: we do not (currently) support unsetting of this in indirect rdeps. This
# would result in similar conflict issues as documented for test_is_broken. It
# is possible to work around it similarly, by requiring manual resolution - but
# cancelling dependencies is harder to implement than true/false so we avoid it
# for now. Please file an issue if you have a real use-case for it.
# More additional fields. This is mostly useful for binary packages that might
# relate to other external programs, e.g. debcargo Recommends cargo.
# The values here will extend those set by debcargo automatically.
#recommends = ["PLACEHOLDER", "PLACEHOLDER"]
#suggests = ["PLACEHOLDER", "PLACEHOLDER"]
#provides = ["PLACEHOLDER", "PLACEHOLDER"]
#breaks = ["PLACEHOLDER", "PLACEHOLDER"]
#replaces = ["PLACEHOLDER", "PLACEHOLDER"]
#conflicts = ["PLACEHOLDER", "PLACEHOLDER"]
# Extra lines to include in the stanza, freeform. Use this to include things
# that debcargo doesn't handle, such as Breaks, Conflicts, Replaces.
#extra_lines = ["PLACEHOLDER", "PLACEHOLDER"]
|