## The `rust` template: a vendored Cargo build (see the module docs of ## src/new/templates/rust.rs for the vendoring strategy). The logic half — ## the cargo vendor post-write hook, the Cargo.toml/src skeletons with ## their crate-name sanitizing, and the `{locked}` / `{artifact}` values of ## rules.extra.tpl — lives in that module. ## ## Schema: see src/new/templates/mod.rs. id: rust label: Rust (Cargo.toml) detect: files: [Cargo.toml] build_depends: - cargo:native - rustc:native architecture: any rules_dh_line: "dh $@" # The vendored-build overrides appended to debian/rules; `--locked` is only # used when the packaged tree already carries a Cargo.lock (the vendoring # hook patches it in once it creates the lockfile), and the built artifact # of a fresh skeleton is named after its crate. rules_extra_file: rules.extra.tpl gitignore_entries: - vendor/ - .cargo/config.toml files: []