Commit Graph

12 Commits

Author SHA1 Message Date
Jan Christian Grünhage ca8c4fb08f build-style/cargo: produce auditable binaries 2022-11-03 03:50:11 -04:00
0x5c 52729f37f5 common/build-style/cargo.sh: use offline install
This prevents `cargo install` from wasting time fetching the crate registry.
2022-06-11 03:57:14 -03:00
Michal Vasilek 71b11fdbdb xbps-src: add make_check_pre
$make_check_pre can be used for wrapper commands like xvfb-run or
dbus-run-session which are common ways to make tests work. This way many
templates can avoid defining their own do_check function.
2022-05-04 10:46:53 +02:00
Érico Rolim 2be5dd6156 build-style/cargo: use configure_args in do_check.
Cargo rebuilds the package if the command line arguments aren't the
same, which makes it test the wrong binary.
2020-07-06 09:01:06 +02:00
Daniel Eyßer ef4596b546 build-style/cargo.sh: don't use post_install() for leftover removal 2020-04-12 18:43:18 +02:00
travankor 3610a35271 cargo.sh: don't hardcode the path.
Clean up the cargo remnants in the post install phase.
2020-04-07 21:25:12 +02:00
Alexander Gehrke a28a777a95 build-style/cargo.sh: also delete /usr/.crates2.json 2020-02-25 12:23:45 +01:00
travankor 3842294972 build-style/cargo.sh: append configure_args to cargo install
Cargo will only activate the default features for a package.
Instead, pass the correct features to cargo install.
2020-02-22 19:09:05 +01:00
Johannes a2be11a086 build-style/cargo.sh: run cargo install with --locked
Without --locked, cargo ignores the Cargo.lock file during install
and rebuilds the crate with updated dependencies.
This wastes time and makes builds unreproducable.
2019-09-26 15:11:46 +02:00
maxice8 8ddc68306e build-style/cargo: don't manually configure with cargo, use the
environment.
2019-01-20 15:33:10 -02:00
Johannes 3aa797cb3a build-style cargo: move cargo config from wrksrc to home
since cargo 0.31.0 ${wrksrc}/.cargo/config is ignored for cargo install
fixes: https://github.com/void-linux/void-packages/issues/4328
2018-11-02 13:39:53 +01:00
Rasmus Thomsen 0318d0385a build-style/cargo.sh: add 2018-10-15 20:58:51 +02:00