}
if ($this->{binpkg}) {
my $target = $this->get_sourcepath("debian/" . $this->{binpkg} . "/usr");
+ # set CARGO_TARGET_DIR so build products are saved in target/
+ # normally `cargo install` deletes them when it exits
+ $ENV{'CARGO_TARGET_DIR'} = Cwd::abs_path($this->get_sourcepath("target"));
doit("cargo", "install", "--verbose", "--verbose", @{$this->{j}},
"--target", deb_host_rust_type,
$this->{crate},
* Be more verbose, as recommended by Policy.
* Update to latest Standards-Version.
+ * Set CARGO_TARGET_DIR so build products are saved.
-- Ximin Luo <infinity0@debian.org> Sat, 04 Aug 2018 11:33:36 -0700