From b91d1b8419fc4860930cf79ccdce798a77c6ecd2 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 8 Oct 2024 06:18:38 +0200 Subject: [PATCH] Fix `cargo vendor` of jiter crates Declare all extension module features in `Cargo.toml`, so they are visible to `cargo vendor`. Otherwise vendoring does not include additional dependencies like `python3-dll-a` and offline build fails. Fixes: #148 Signed-off-by: Christian Heimes --- crates/jiter-python/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/jiter-python/Cargo.toml b/crates/jiter-python/Cargo.toml index ddcceb38..e4962199 100644 --- a/crates/jiter-python/Cargo.toml +++ b/crates/jiter-python/Cargo.toml @@ -13,6 +13,10 @@ repository = {workspace = true} pyo3 = { workspace = true, features = ["num-bigint"] } jiter = { path = "../jiter", features = ["python", "num-bigint"] } +[features] +# make extensions visible to cargo vendor +extension-module = ["pyo3/extension-module", "pyo3/generate-import-lib"] + [lib] name = "jiter_python" crate-type = ["cdylib", "rlib"]