From 65cde35b1ddf14b419185be5116bb1995abc4cb4 Mon Sep 17 00:00:00 2001 From: banditopazzo Date: Wed, 11 Oct 2023 21:24:29 +0200 Subject: [PATCH] feat: add fetch and --offline to build flags --- classes/cargo_bin.bbclass | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/classes/cargo_bin.bbclass b/classes/cargo_bin.bbclass index 7d55388..193b1db 100644 --- a/classes/cargo_bin.bbclass +++ b/classes/cargo_bin.bbclass @@ -43,6 +43,7 @@ CARGO_MANIFEST_PATH ?= "${S}/Cargo.toml" FILES:${PN}-dev += "${libdir}/*.rlib" CARGO_BUILD_FLAGS = "\ + --offline \ --verbose \ --manifest-path ${CARGO_MANIFEST_PATH} \ --target=${RUST_TARGET} \ @@ -51,6 +52,10 @@ CARGO_BUILD_FLAGS = "\ ${EXTRA_CARGO_FLAGS} \ " +cargo_bin_do_fetch() { + cargo fetch +} + cargo_bin_do_configure() { mkdir -p "${B}" mkdir -p "${CARGO_HOME}"