From e01a2bb02c010b9314d1b0b617ac36a6452a27e3 Mon Sep 17 00:00:00 2001 From: Orfeas Kourkakis Date: Thu, 5 Dec 2024 13:52:47 +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 24d0fec..e65ab06 100644 --- a/charmcraft.yaml +++ b/charmcraft.yaml @@ -11,3 +11,9 @@ bases: parts: charm: charm-python-packages: [setuptools, pip] # Fixes install of some packages + # 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