From 96070ec50db7346b0628f264c3ef851969978672 Mon Sep 17 00:00:00 2001 From: Orfeas Kourkakis Date: Thu, 5 Dec 2024 13:50:43 +0200 Subject: [PATCH] build: Enable building rust dependencies Ref canonical/bundle-kubeflow#1178 --- charmcraft.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/charmcraft.yaml b/charmcraft.yaml index 41250d8..f0e61bd 100644 --- a/charmcraft.yaml +++ b/charmcraft.yaml @@ -12,3 +12,9 @@ parts: charm-python-packages: [setuptools, pip] # prime: # - ./files/manifests/*.yaml + # Following lines are needed due to https://github.com/canonical/charmcraft/issues/1722 + build-snaps: [rustup] + build-packages: [pkg-config, libffi-dev, libssl-dev] + override-build: | + rustup default stable + craftctl default