From 20c5343cd8498d9b0d4b53c1aa568bb6e3272f91 Mon Sep 17 00:00:00 2001 From: Alex Lowe Date: Mon, 15 Jul 2024 19:02:54 -0400 Subject: [PATCH] fix(flask): include cargo build-dep --- charmcraft/extensions/gunicorn.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/charmcraft/extensions/gunicorn.py b/charmcraft/extensions/gunicorn.py index a1e3f7101..b8a43299c 100644 --- a/charmcraft/extensions/gunicorn.py +++ b/charmcraft/extensions/gunicorn.py @@ -223,6 +223,12 @@ def is_experimental(base: tuple[str, ...] | None) -> bool: # noqa: ARG004 """Check if the extension is in an experimental state.""" return False + @override + def get_parts_snippet(self) -> dict[str, Any]: + """Return the parts to add to parts.""" + # rust is needed to build pydantic-core, a dependency of flask. + return {"rust-deps": {"build-packages": ["cargo"]}} + class DjangoFramework(_GunicornBase): """Extension for 12-factor Django applications."""